rajpurkar/squad
Viewer • Updated • 98.2k • 160k • 364
How to use vuiseng9/bert-l-squadv1.1-sl256 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="vuiseng9/bert-l-squadv1.1-sl256") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("vuiseng9/bert-l-squadv1.1-sl256")
model = AutoModelForQuestionAnswering.from_pretrained("vuiseng9/bert-l-squadv1.1-sl256")This model is a fine-tuned version of bert-large-uncased-whole-word-masking on the squad dataset. ONNX and OpenVINO IR are enclosed here.
More information needed
More information needed
More information needed
NEPOCH=2
TBS=16
EBS=64
SL=256
DS=128
cmd="
python run_qa.py \
--model_name_or_path ${BASEM} \
--dataset_name squad \
--do_eval \
--do_train \
--evaluation_strategy steps \
--eval_steps 500 \
--learning_rate 3e-5 \
--fp16 \
--num_train_epochs $NEPOCH \
--per_device_eval_batch_size $EBS \
--per_device_train_batch_size $TBS \
--max_seq_length $SL \
--doc_stride $DS \
--save_steps 1000 \
--logging_steps 1 \
--overwrite_output_dir \
--run_name $RUNID \
--output_dir $OUTDIR
"
The following hyperparameters were used during training:
Best checkpoint was at step 11500 but it was not saved. This is final checkpoint (12K+).
eval_exact_match = 86.9347
eval_f1 = 93.1359
eval_samples = 12097