You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just solved this problem.
You have to set an additional flag: --do_lower_case.
I wonder why the run_squad.py behaves differently than run_glue.py, etc. Is there is a code improve on the way?
📚 Migration
Information
Model I am using (Bert, XLNet ...):
Language I am using the model on (English...):
The problem arises when using:
examples/question-answering/run_squad.py
'''
CUDA_VISIBLE_DEVICES=5 python examples/question-answering//run_squad.py
--model_type bert
--model_name_or_path bert-large-uncased-whole-word-masking
--do_train
--do_eval
--data_dir EKMRC/data/squad1.1
--train_file train-v1.1.json
--predict_file dev-v1.1.json
--per_gpu_eval_batch_size=4
--per_gpu_train_batch_size=4
--gradient_accumulation_steps=6
--save_steps 3682
--learning_rate 3e-5
--num_train_epochs 2
--max_seq_length 384
--doc_stride 128
--output_dir result/debug_squad/wwm_uncased_bert_large_finetuned_squad/
--overwrite_output_dir
'''
The tasks I am working on is:
Details
But I did not reproduce the result reported, the repository say get result bellow:
my result is below:
Environment info
transformers
version:pytorch-transformers
orpytorch-pretrained-bert
version (or branch):current version of transformers.
Checklist
(pytorch-transformers;
The text was updated successfully, but these errors were encountered: