megagonlabs/subjqa
Updated • 498 • 16
How to use itsamitkumar/qamodel2 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="itsamitkumar/qamodel2") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("itsamitkumar/qamodel2")
model = AutoModelForQuestionAnswering.from_pretrained("itsamitkumar/qamodel2", device_map="auto")This model is a fine-tuned version of deepset/roberta-base-squad2 on the subjqa 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.9544 | 1.0 | 81 | 2.0493 |
| 1.7079 | 2.0 | 162 | 1.8907 |
| 1.6135 | 3.0 | 243 | 1.8236 |
| 1.5829 | 4.0 | 324 | 1.7984 |
| 1.5381 | 5.0 | 405 | 1.7900 |
| 1.515 | 6.0 | 486 | 1.7827 |
| 1.5079 | 7.0 | 567 | 1.7827 |
| 1.4952 | 8.0 | 648 | 1.7777 |