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

GPT2ForLatentConnector #20

Closed
Bila12 opened this issue Feb 2, 2022 · 2 comments
Closed

GPT2ForLatentConnector #20

Bila12 opened this issue Feb 2, 2022 · 2 comments

Comments

@Bila12
Copy link

Bila12 commented Feb 2, 2022

Hello, great work there !

Everything is fine with the docker env, and the code works amazingly. However I would like to compute the code in my own conda environement, and it seems that the version of pytorch-transformers (1.2.0) in your requirement file doesn't have GPT2ForLatentConnector and BertForLatentConnector, and I couldn't find it in other versions.

Could you give me the actual version that is used in your code ? Or even the source code for these classes.

Thanks a lot !
Romain

@Bila12
Copy link
Author

Bila12 commented Feb 2, 2022

Oh actually that was provided sorry ! I just shouldn't have worried about the requirement.txt file provided in the repository where pytorch-transformers version 1.2.0 is installed and use the custom model. Then run everything from the folder code.

@Bila12 Bila12 closed this as completed Feb 2, 2022
@kevinfd
Copy link

kevinfd commented Oct 15, 2022

Thanks Bila, this helped me solve a similar issue. In case it's helpful for anyone else (or me in the future when I inevitably forget), modifying my PYTHONPATH variable fixed the issue. (line 1 in fine-tuning script):

export PYTHONPATH="${PYTHONPATH}:/workspace/code"

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