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

Training the model #386

Open
REEMALIK94 opened this issue Mar 24, 2023 · 3 comments
Open

Training the model #386

REEMALIK94 opened this issue Mar 24, 2023 · 3 comments

Comments

@REEMALIK94
Copy link

Hey,

I am trying to train model on my dataset, everything goes well, but at the end I am getting this error everytime. Not able to figure out what's wrong. Any help would be great.
Screenshot from 2023-03-24 15-00-41(1)

@JohnGiorgi
Copy link
Owner

Hi @REEMALIK94,

Just reading the error, seems AllenNLP expected a folder /content/drive/MyDrive/DOCRED/model to exist, and it didn't. Could you manually create this directory, and then try re-training?

If that doesn't work, it would be helpful to know

  • your full config
  • possibly some training/validation data if you are ok sharing
  • version of allennlp installed (pip freeze | grep "allennlp")

@REEMALIK94
Copy link
Author

Hey, I tried this. It didn't work. But since the training was done, I created tar.gz file by myself. The issue at present is,I am trying to use load_archive method to load the saved model. But it is giving me this error. I have tried using the docred.tar.gz, still getting the same error.
Screenshot from 2023-03-28 15-14-29

@JohnGiorgi
Copy link
Owner

JohnGiorgi commented Mar 28, 2023

This is likely because seq2rel is an AllenNLP 'module' you must import like this:

common_util.import_module_and_submodules("seq2rel")

I recommend checking out that script to see how to load trained models^

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