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

Getting exception model doesn't exist #27

Open
deeptigoyal opened this issue Dec 22, 2021 · 0 comments
Open

Getting exception model doesn't exist #27

deeptigoyal opened this issue Dec 22, 2021 · 0 comments

Comments

@deeptigoyal
Copy link

Hi Team,

While training JoinBERT on my dataset using command:

!python main.py --task ss
--model_dir ss_model
--do_train --do_eval
--use_crf

I am getting exception:

raise Exception("Model doesn't exists! Train first!")
Exception: Model doesn't exists! Train first!

To resolve this issue, I made a change in trainer.py wherein I commented

if self.args.save_steps > 0 and global_step % self.args.save_steps == 0:

and replaced it with only

if self.args.save_steps > 0: #dip

Have I done right? hoping for reply
.

Thanks

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

1 participant