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
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 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:
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: