Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory: 'checkpoints/yelp/neg/blm/lightning_logs/version_0/hparams.yaml' when testing the model on negative yelp. #5

Open
TalitaGroetzinger opened this issue May 3, 2021 · 1 comment

Comments

@TalitaGroetzinger
Copy link

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'
@Varal7
Copy link
Owner

Varal7 commented May 5, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants