Hello,
I have loaded the already finetune model  for squad 'twmkn9/bert-base-uncased-squad2'
I would like to now evaluate it on the SQuAD2 dataset, how would I do that?
This is my code currently;
from transformers import AutoTokenizer, AutoModelForQuestionAnswering, AutoConfig

model_name = 'twmkn9/bert-base-uncased-squad2'

config = AutoConfig.from_pretrained(model_name, num_hidden_layers=10)
tokenizer = AutoTokenizer.from_pretrained(model_name)  
model = AutoModelForQuestionAnswering.from_config(config)

Now I am just unsure what to do next?
UPDATE
`i am trying to follow the instructions from here 15. Yet I am unsure how to use my own model. This is what I have:
# Grab the run_squad.py script

!curl -L -O https://raw.githubusercontent.com/huggingface/transformers/master/examples/pytorch/question-answering/run_qa.py

!curl -L -O https://raw.githubusercontent.com/huggingface/transformers/master/examples/pytorch/question-answering/trainer_qa.py

!curl -L -O https://raw.githubusercontent.com/huggingface/transformers/master/examples/pytorch/question-answering/utils_qa.py 


!python run_qa.py  \
    --model_type bert   \
    --model_name_or_path model  \
    --output_dir models/distilbert/twmkn9_distilbert-base-uncased-squad2 \
    --data_dir data/squad   \
    --predict_file dev-v2.0.json   \
    --do_eval   \
    --version_2_with_negative \
    --do_lower_case  \
    --per_gpu_eval_batch_size 12   \
    --max_seq_length 384   \
    --doc_stride 128

But I am getting an error
2021-05-04 11:14:04.086537: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Traceback (most recent call last):
  File "run_qa.py", line 613, in <module>
    main()
  File "run_qa.py", line 208, in main
    model_args, data_args, training_args = parser.parse_args_into_dataclasses()
  File "/usr/local/lib/python3.7/dist-packages/transformers/hf_argparser.py", line 187, in parse_args_into_dataclasses
    obj = dtype(**inputs)
  File "<string>", line 20, in __init__
  File "run_qa.py", line 184, in __post_init__
    raise ValueError("Need either a dataset name or a training/validation file/test_file.")
ValueError: Need either a dataset name or a training/validation file/test_file.

I imagine because --model_name_or_path model  \ is no good, but then how do I call my own configured model?
Thank you