hsseinmz/arcd
Viewer • Updated • 1.4k • 482 • 12
How to use Echiguerkh/rinna-arabert22-qa-ar2 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="Echiguerkh/rinna-arabert22-qa-ar2") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("Echiguerkh/rinna-arabert22-qa-ar2")
model = AutoModelForQuestionAnswering.from_pretrained("Echiguerkh/rinna-arabert22-qa-ar2", device_map="auto")This model is a fine-tuned version of aubmindlab/araelectra-base-discriminator on the arcd 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 |
|---|---|---|---|
| 4.412 | 6.92 | 150 | 5.9506 |
| 5.9523 | 13.83 | 300 | 5.9506 |
| 5.9551 | 20.75 | 450 | 5.9506 |
| 5.952 | 27.67 | 600 | 5.9506 |
| 5.9518 | 34.58 | 750 | 5.9506 |
| 5.9501 | 41.5 | 900 | 5.9506 |
| 5.9526 | 48.41 | 1050 | 5.9506 |
| 5.9538 | 55.33 | 1200 | 5.9506 |
| 5.9517 | 62.25 | 1350 | 5.9506 |
| 5.9529 | 69.16 | 1500 | 5.9506 |
| 5.9518 | 76.08 | 1650 | 5.9506 |
| 5.9532 | 83.0 | 1800 | 5.9506 |
| 5.9518 | 89.91 | 1950 | 5.9506 |
| 5.9515 | 96.83 | 2100 | 5.9506 |
Base model
aubmindlab/araelectra-base-discriminator