GU-DataLab/stance-detection-KE-MLM

Unable to load the model

tuotuoZ opened this issue ยท 8 comments

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

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

@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. ๐Ÿ‘

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.

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

@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.

thanks! Removing the tensorflow libaray solved the problem!

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.

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!