File size: 1,820 Bytes
5ae376d 90f5ebe 5ae376d 9416ba5 5ae376d 90f5ebe 5ae376d 90f5ebe 5ae376d 90f5ebe 9416ba5 90f5ebe 5ae376d 9416ba5 90f5ebe 5ae376d 9416ba5 90f5ebe 9416ba5 90f5ebe 9416ba5 b8a0a1d 5ae376d b8a0a1d 5ae376d b8a0a1d 5ae376d b8a0a1d 5ae376d b8a0a1d 5ae376d 012e6e5 5ae376d b8a0a1d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
---
library_name: transformers
license: mit
base_model: distilbert-base-uncased
tags:
- question-answering
- distilbert
- squad
- fine-tuning
datasets:
- squad
model-index:
- name: my_awesome_qa_model
results:
- task:
type: question-answering
name: Question Answering
dataset:
name: SQuAD v1.1
type: squad
split: validation
metrics:
- name: Exact Match
type: exact_match
value: Please fill in your EM score
- name: F1 Score
type: f1
value: Please fill in your F1 score
language:
- en
---
# my_awesome_qa_model
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased), trained on the [SQuAD v1.1 dataset](https://huggingface.co/datasets/squad).
It achieved the following results on the validation set:
- **Loss**: 1.7489
## How to Use
```python
from transformers import pipeline
# Load the model
question_answerer = pipeline(
"question-answering",
model="real-jiakai/my_awesome_qa_model",
tokenizer="real-jiakai/my_awesome_qa_model"
)
# English example
context_en = """
Donald Trump was the 45th president of the United States, serving from 2017 to 2021.
"""
question_en = "Who was the 45th president of the United States?"
result_en = question_answerer(question=question_en, context=context_en)
print("Answer:", result_en['answer'])
```
## License
This model is licensed under the [MIT](https://opensource.org/license/mit) License.
## Citation
If you use this model in your work, please cite:
```
@misc{my_awesome_qa_model,
author = {real-jiakai},
title = {my_awesome_qa_model},
year = {2024},
url = {https://huggingface.co/real-jiakai/my_awesome_qa_model},
publisher = {Hugging Face}
}
``` |