Test a fine-tuned BERT-QA model
See original GitHub issueI have fine-tuned a BERT-QA model on SQuAD and it produced a pytorch_model.bin
file. Now, I want to load this fine-tuned model and evaluate on SQuAD. How can I do that? I am using the run_squad.py
script.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Question Answering with a Fine-Tuned BERT - Chris McCormick
In the example code below, we'll be downloading a model that's already been fine-tuned for question answering, and try it out on our...
Read more >Question Answering with a fine-tuned BERT | Chetna | Medium
Not bad at all. In fact, our BERT model gave a more detailed response. Here, is a small function to test out how...
Read more >Question answering - Hugging Face Course
We will fine-tune a BERT model on the SQuAD dataset, which consists of questions posed by ... You can find it and double-check...
Read more >Bert Fine Tune for Question Answering | by mustafac - Medium
Now I will try to show how we can fine tune Bert for QA. I found an open health set ... Just check...
Read more >Step #1: Train the Bert QA Model — chatbot 1.0 documentation
Fine-Tune the BERT QA Model¶ ... structure inside the triton directory, which you can check inside the same Jupyter notebook terminal.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I noticed the following snippet in the code. (which I have edited to solve my problem)
So, if we want to load the fine-tuned model only for prediction, need to load it from
args.output_dir
. But the current code loads fromargs.bert_model
when we usesquad.py
only for prediction.thx for your sharing, and there is inference on bert-squad model by tensorflow? 3Q~