blank_language_model icon indicating copy to clipboard operation
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.

Open TalitaGroetzinger opened this issue 4 years ago • 1 comments

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'

TalitaGroetzinger avatar May 03 '21 13:05 TalitaGroetzinger

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

Varal7 avatar May 05 '21 23:05 Varal7