Instructions to use ptran74/DSPFirst-Finetuning-5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ptran74/DSPFirst-Finetuning-5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="ptran74/DSPFirst-Finetuning-5")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("ptran74/DSPFirst-Finetuning-5") model = AutoModelForQuestionAnswering.from_pretrained("ptran74/DSPFirst-Finetuning-5") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -12,7 +12,7 @@ model-index:
|
|
| 12 |
should probably proofread and complete it, then remove this comment. -->
|
| 13 |
|
| 14 |
# Important Note:
|
| 15 |
-
I created the `combined` metric (55% F1 score + 45% exact match score)
|
| 16 |
```
|
| 17 |
load_best_model_at_end=True,
|
| 18 |
metric_for_best_model='combined',
|
|
|
|
| 12 |
should probably proofread and complete it, then remove this comment. -->
|
| 13 |
|
| 14 |
# Important Note:
|
| 15 |
+
I created the `combined` metric (55% F1 score + 45% exact match score) and load the state with the best result at the end. Here is the setting in the `TrainingArguments`:
|
| 16 |
```
|
| 17 |
load_best_model_at_end=True,
|
| 18 |
metric_for_best_model='combined',
|