AdamCodd / distilroberta-squad2

huggingface.co
Total runs: 16
24-hour runs: -2
7-day runs: -2
30-day runs: 1
Model's Last Updated: November 11 2023
question-answering

Introduction of distilroberta-squad2

Model Details of distilroberta-squad2

Distilroberta-squad2

This model is Distilroberta base which was fine-tuned for context-based question answering on the SQuAD v2 dataset, a dataset of English-language context-question-answer triples designed for extractive question answering training and benchmarking. Version 2 of SQuAD (Stanford Question Answering Dataset) contains the 100,000 examples from SQuAD Version 1.1, along with 50,000 additional "unanswerable" questions, i.e. questions whose answer cannot be found in the provided context.

Model description

This fine-tuned model prioritizes inference speed; DistilRoBERTa operates at a pace twice as fast as the RoBERTa-base model, with only a marginal compromise in quality.

Intended uses & limitations
from transformers import pipeline
QA_pipeline = pipeline("question-answering", model="AdamCodd/distilroberta-squad2", handle_impossible_answer=True)
input = {
  'question': "Which name is also used to describe the Amazon rainforest in English?",
  'context': '''The Amazon rainforest (Portuguese: Floresta Amazônica or Amazônia; Spanish: Selva Amazónica, Amazonía or usually Amazonia; French: Forêt amazonienne; Dutch: Amazoneregenwoud), also known in English as Amazonia or the Amazon Jungle, is a moist broadleaf forest that covers most of the Amazon basin of South America. This basin encompasses 7,000,000 square kilometres (2,700,000 sq mi), of which 5,500,000 square kilometres (2,100,000 sq mi) are covered by the rainforest. This region includes territory belonging to nine nations. The majority of the forest is contained within Brazil, with 60% of the rainforest, followed by Peru with 13%, Colombia with 10%, and with minor amounts in Venezuela, Ecuador, Bolivia, Guyana, Suriname and French Guiana. States or departments in four nations contain "Amazonas" in their names. The Amazon represents over half of the planet's remaining rainforests, and comprises the largest and most biodiverse tract of tropical rainforest in the world, with an estimated 390 billion individual trees divided into 16,000 species.'''
}
response = QA_pipeline(**input)
print(response)
Training and evaluation data

More information needed

Training procedure
Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 3e-05
  • train_batch_size: 16
  • eval_batch_size: 16
  • seed: 42
  • mixed_precision = "fp16"
  • max_seq_len = 384
  • doc_stride = 128
  • optimizer: AdamW with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • lr_scheduler_warmup_steps: 150
  • num_epochs: 3
Training results

Evaluated on the SQuAD 2.0 dev set with the official eval script .

Results:

'exact': 72.9470226564474, 
'f1': 76.03522762032603, 
'total': 11873, 
'HasAns_exact': 72.4527665317139, 
'HasAns_f1': 78.63803264779528, 
'HasAns_total': 5928, 
'NoAns_exact': 73.43986543313709, 
'NoAns_f1': 73.43986543313709, 
'NoAns_total': 5945, 
'best_exact': 72.95544512760044, 
'best_exact_thresh': 0.0, 
'best_f1': 76.04365009147917, 
'best_f1_thresh': 0.0
Framework versions
  • Transformers 4.34.0
  • Torch 2.0.1
  • Accelerate 0.23.0
  • Tokenizers 0.14.1

If you want to support me, you can here .

Runs of AdamCodd distilroberta-squad2 on huggingface.co

16
Total runs
-2
24-hour runs
1
3-day runs
-2
7-day runs
1
30-day runs

More Information About distilroberta-squad2 huggingface.co Model

distilroberta-squad2 huggingface.co

distilroberta-squad2 huggingface.co is an AI model on huggingface.co that provides distilroberta-squad2's model effect (), which can be used instantly with this AdamCodd distilroberta-squad2 model. huggingface.co supports a free trial of the distilroberta-squad2 model, and also provides paid use of the distilroberta-squad2. Support call distilroberta-squad2 model through api, including Node.js, Python, http.

distilroberta-squad2 huggingface.co Url

https://huggingface.co/AdamCodd/distilroberta-squad2

AdamCodd distilroberta-squad2 online free

distilroberta-squad2 huggingface.co is an online trial and call api platform, which integrates distilroberta-squad2's modeling effects, including api services, and provides a free online trial of distilroberta-squad2, you can try distilroberta-squad2 online for free by clicking the link below.

AdamCodd distilroberta-squad2 online free url in huggingface.co:

https://huggingface.co/AdamCodd/distilroberta-squad2

distilroberta-squad2 install

distilroberta-squad2 is an open source model from GitHub that offers a free installation service, and any user can find distilroberta-squad2 on GitHub to install. At the same time, huggingface.co provides the effect of distilroberta-squad2 install, users can directly use distilroberta-squad2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

distilroberta-squad2 install url in huggingface.co:

https://huggingface.co/AdamCodd/distilroberta-squad2

Url of distilroberta-squad2

distilroberta-squad2 huggingface.co Url

Provider of distilroberta-squad2 huggingface.co

AdamCodd
ORGANIZATIONS

Other API from AdamCodd