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

Unable to load the model #1

Closed
tuotuoZ opened this issue May 6, 2021 · 8 comments · Fixed by #2
Closed

Unable to load the model #1

tuotuoZ opened this issue May 6, 2021 · 8 comments · Fixed by #2
Labels
good first issue Good for newcomers

Comments

@tuotuoZ
Copy link

tuotuoZ commented May 6, 2021

Hi, I am facing an issue when trying to load the model in Colab. I used the git clone to download all the files.
image

Also, the download by model name is not working for your model from my testing. Here is a screenshot when trying using the model name instead of the file path.
image

@tuotuoZ
Copy link
Author

tuotuoZ commented May 6, 2021

I am also very interested in reading your paper. Is it available now?

@kornosk
Copy link
Collaborator

kornosk commented May 7, 2021

@tuotuoZ Hi. I think the first image, you need to put kornosk/ as the prefix for the model path. For the second image, you need to set from_tf=False or just remove the param since the default is false. Our models were trained with PyTorch, the param from_tf is used when the model is trained with TensorFlow.

Let us know if you have any other issues. 👍

@kornosk
Copy link
Collaborator

kornosk commented May 7, 2021

I am also very interested in reading your paper. Is it available now?

@tuotuoZ We will inform you once it is available. Probably next week.

@tuotuoZ
Copy link
Author

tuotuoZ commented May 8, 2021

Hi Kornosk, thanks for your reply. I copied the exact code from Github. Here is what I got:
image

@kornosk
Copy link
Collaborator

kornosk commented May 9, 2021

@tuotuoZ Can you check the dependencies pytorch==1.8.1 and transformers==4.5.1? I checked my code with these dependencies.

If it still doesn't work, try removing tensorflow. I think this issue happened to me before.

@tuotuoZ
Copy link
Author

tuotuoZ commented May 10, 2021

thanks! Removing the tensorflow libaray solved the problem!

@kornosk kornosk pinned this issue May 11, 2021
@kornosk kornosk added the good first issue Good for newcomers label May 11, 2021
@kornosk kornosk linked a pull request May 12, 2021 that will close this issue
@kornosk kornosk mentioned this issue May 12, 2021
kornosk added a commit that referenced this issue May 12, 2021
@kornosk
Copy link
Collaborator

kornosk commented May 23, 2021

I am also very interested in reading your paper. Is it available now?

@tuotuoZ The paper is available online now at https://www.aclweb.org/anthology/2021.naacl-main.376.

@tuotuoZ
Copy link
Author

tuotuoZ commented May 23, 2021

I am also very interested in reading your paper. Is it available now?

@tuotuoZ The paper is available online now at https://www.aclweb.org/anthology/2021.naacl-main.376.

Yeah, I can see it. THanks!

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

Successfully merging a pull request may close this issue.

2 participants