Instructions to use Akari/albert-base-v2-finetuned-squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Akari/albert-base-v2-finetuned-squad 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="Akari/albert-base-v2-finetuned-squad")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("Akari/albert-base-v2-finetuned-squad") model = AutoModelForQuestionAnswering.from_pretrained("Akari/albert-base-v2-finetuned-squad", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add evaluation results on the squad_v2 config and validation split of squad_v2
Browse filesBeep boop, I am a bot from Hugging Face's automatic model evaluator 馃憢!\
Your model has been evaluated on the squad_v2 config and validation split of the [squad_v2](https://huggingface.co/datasets/squad_v2) dataset by @lewtun , using the predictions stored [here](https://huggingface.co/datasets/autoevaluate/autoeval-staging-eval-squad_v2-squad_v2-c76793-16626246).\
Accept this pull request to see the results displayed on the [Hub leaderboard](https://huggingface.co/spaces/autoevaluate/leaderboards?dataset=squad_v2).\
Evaluate your model on more datasets [here](https://huggingface.co/spaces/autoevaluate/model-evaluator?dataset=squad_v2).
README.md
CHANGED
|
@@ -6,7 +6,24 @@ datasets:
|
|
| 6 |
- squad_v2
|
| 7 |
model-index:
|
| 8 |
- name: albert-base-v2-finetuned-squad
|
| 9 |
-
results:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 6 |
- squad_v2
|
| 7 |
model-index:
|
| 8 |
- name: albert-base-v2-finetuned-squad
|
| 9 |
+
results:
|
| 10 |
+
- task:
|
| 11 |
+
type: question-answering
|
| 12 |
+
name: Question Answering
|
| 13 |
+
dataset:
|
| 14 |
+
name: squad_v2
|
| 15 |
+
type: squad_v2
|
| 16 |
+
config: squad_v2
|
| 17 |
+
split: validation
|
| 18 |
+
metrics:
|
| 19 |
+
- name: Exact Match
|
| 20 |
+
type: exact_match
|
| 21 |
+
value: 5.7287
|
| 22 |
+
verified: true
|
| 23 |
+
- name: F1
|
| 24 |
+
type: f1
|
| 25 |
+
value: 6.0359
|
| 26 |
+
verified: true
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|