-
Notifications
You must be signed in to change notification settings - Fork 0
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
Issue running BERT #19
Comments
Hi @facundosuenzo, could you share your entire code (notebook) through GitHub or email? Also, what is the version of torch (run |
Yeah,
Whoops! That function is defined in Homework 7, but I forgot to copy it into Homework 8 during recent edits. I've added it now, and here is the code. I will test it asap.
|
Thank you both @jacyanthis and @JunsolKim! I'm using colab with this torch version So if it's deprecated, does it mean that I won't be able to run BERT, or is there any workaround to this? Re: |
For others reading this, the notebook should now work with the latest torch version (which Colab loads automatically) because we have split |
Hi,
I'm having issues running the script of RoBERTa (for the US dataset)
I ran this line
!python run_language_modeling.py --output_dir=output_roberta_US --model_type=roberta --model_name_or_path=roberta-base --do_train --train_data_file=us_blog_train --do_eval --eval_data_file=us_blog_test --mlm
And I've got the following error. There is an issue with one of the arguments.
(cut output) Traceback (most recent call last): File "run_language_modeling.py", line 545, in <module> main() File "run_language_modeling.py", line 497, in main global_step, tr_loss = train(args, train_dataset, model, tokenizer) File "run_language_modeling.py", line 228, in train outputs = model(inputs, masked_lm_labels=labels) if args.mlm else model(inputs, labels=labels) File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) TypeError: forward() got an unexpected keyword argument 'masked_lm_labels'
Then, after exercise 3, when visualizations are introduced, the following function
word_vector
does not seem to be defined (and it is used within thevisualise_diffs
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: