rajpurkar/squad
Viewer • Updated • 98.2k • 177k • 878
How to use haurajahra/idT5finetunesquad 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="haurajahra/idT5finetunesquad") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("haurajahra/idT5finetunesquad")
model = AutoModelForSeq2SeqLM.from_pretrained("haurajahra/idT5finetunesquad", device_map="auto")This model is a fine-tuned version of muchad/idt5-base on on translated Indonesian SQUAD dataset. It achieves the following results on the evaluation set:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.5682 | 1.1 | 36000 | 0.7753 |
| 0.5153 | 1.93 | 63000 | 0.7490 |