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

Error when finetuning my model : ValueError: Variable model/wpe already exists #286

Open
Fqlox opened this issue Jan 17, 2022 · 0 comments

Comments

@Fqlox
Copy link

Fqlox commented Jan 17, 2022

Hi, I got issues when I want to finetune over my own model: I got ValueError: Variable model/wpe already exists as mentioned in #167 I reset the session, but still got the issues.

I trained it from a google colab: here are the code blocks

Load model and run from drive

gpt2.download_gpt2(model_name="124M")

gpt2.copy_checkpoint_from_gdrive(run_name='my_model1')

reset session and load the run

sess = gpt2.reset_session(sess=sess)
sess = gpt2.start_tf_sess()

gpt2.load_gpt2(sess, run_name='my_model1')

finetune the model

gpt2.finetune(sess,
              dataset="source.txt",
              model_name='124M',
              steps=1000, 
              #restore_from='fresh',
              restore_from='latest',
              run_name='my_model2',
              print_every=10,
              sample_every=200,
              save_every=500
              )

Thanks in advance

@Fqlox Fqlox changed the title Error when finetuning my model Error when finetuning my model : ValueError: Variable model/wpe already exists Jan 17, 2022
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