Downloads · 30 days
42
0% of all-time downloads
squirro/distilroberta-base-squad_v2
distilroberta-base-squad_v2 is a question answering model from squirro. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of distilroberta-base on the squadv2 dataset.
Downloads · 30 days
42
0% of all-time downloads
All-time downloads
9.3K
Public
Repo size
1 GB
Likes
1
Public
Click a slice to open those files.
.h5326 MB · 33%
From the Hugging Face model README
This model is a fine-tuned version of distilroberta-base on the squad_v2 dataset.
This model is fine-tuned on the extractive question answering task -- The Stanford Question Answering Dataset -- SQuAD2.0.
For convenience this model is prepared to be used with the frameworks PyTorch, Tensorflow and ONNX.
This model can handle mismatched question-context pairs. Make sure to specify handle_impossible_answer=True when using QuestionAnsweringPipeline.
Example usage:
>>> from transformers import AutoModelForQuestionAnswering, AutoTokenizer, QuestionAnsweringPipeline
>>> model = AutoModelForQuestionAnswering.from_pretrained("squirro/distilroberta-base-squad_v2")
>>> tokenizer = AutoTokenizer.from_pretrained("squirro/distilroberta-base-squad_v2")
>>> qa_model = QuestionAnsweringPipeline(model, tokenizer)
>>> qa_model(
>>> question="What's your name?",
>>> context="My name is Clara and I live in Berkeley.",
>>> handle_impossible_answer=True # important!
>>> )
{'score': 0.9498472809791565, 'start': 11, 'end': 16, 'answer': 'Clara'}
Training and evaluation was done on SQuAD2.0.
The following hyperparameters were used during training:
| Metric | Value |
|---|---|
| epoch | 3 |
| eval_HasAns_exact | 67.5776 |
| eval_HasAns_f1 | 74.3594 |
| eval_HasAns_total | 5928 |
| eval_NoAns_exact | 62.91 |
| eval_NoAns_f1 | 62.91 |
| eval_NoAns_total | 5945 |
| eval_best_exact | 65.2489 |
| eval_best_exact_thresh | 0 |
| eval_best_f1 | 68.6349 |
| eval_best_f1_thresh | 0 |
| eval_exact | 65.2405 |
| eval_f1 | 68.6265 |
| eval_samples | 12165 |
| eval_total | 11873 |
| train_loss | 1.40336 |
| train_runtime | 1365.28 |
| train_samples | 131823 |
| train_samples_per_second | 289.662 |
| train_steps_per_second | 0.567 |
Squirro marries data from any source with your intent, and your context to intelligently augment decision-making - right when you need it!
An Insight Engine at its core, Squirro works with global organizations, primarily in financial services, public sector, professional services, and manufacturing, among others. Customers include Bank of England, European Central Bank (ECB), Deutsche Bundesbank, Standard Chartered, Henkel, Armacell, Candriam, and many other world-leading firms.
Founded in 2012, Squirro is currently present in Zürich, London, New York, and Singapore. Further information about AI-driven business insights can be found at http://squirro.com.