allenai/quoref
Updated • 1.71k • 10
How to use damapika/roberta-base_mod_quoref with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "question-answering" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# pip install "transformers<5.0.0"
from transformers import pipeline
pipe = pipeline("question-answering", model="damapika/roberta-base_mod_quoref") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("damapika/roberta-base_mod_quoref")
model = AutoModelForQuestionAnswering.from_pretrained("damapika/roberta-base_mod_quoref", device_map="auto")# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("damapika/roberta-base_mod_quoref")
model = AutoModelForQuestionAnswering.from_pretrained("damapika/roberta-base_mod_quoref", device_map="auto")This model is a fine-tuned version of damapika/roberta-base_mod_squad on the quoref dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.1263 | 1.0 | 1213 | 1.2665 |
| 0.7404 | 2.0 | 2426 | 1.3567 |
| 0.5172 | 3.0 | 3639 | 1.5566 |
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="damapika/roberta-base_mod_quoref")