blank_language_model
blank_language_model copied to clipboard
No such file or directory: 'checkpoints/yelp/neg/blm/lightning_logs/version_0/hparams.yaml' when testing the model on negative yelp.
Hi,
I have sucessfully trained the model using:
python train.py --train data/yelp/train.0 --valid data/yelp/valid.0 --root_dir checkpoints/yelp/neg/blm/ \
--vocab_size 10000 --max_len 20 --model_type blm --share_emb_prj_weight --gpus 1 --max_steps 10
But testing the model
python test.py --checkpoint checkpoints/yelp/neg/blm/lightning_logs/version_0/checkpoints/epoch\=???.ckpt \
--fill data/yelp/blank/test.1.blank --output test.1.tsf
results to an error:
No such file or directory: 'checkpoints/yelp/neg/blm/lightning_logs/version_0/hparams.yaml'
What pytorch lightning version did you use? If different from 1.0.7, you might need to adapt the loading code to make it work