Instructions to use Matheusmatos2916/my_awesome_qa_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Matheusmatos2916/my_awesome_qa_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="Matheusmatos2916/my_awesome_qa_model")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("Matheusmatos2916/my_awesome_qa_model") model = AutoModelForQuestionAnswering.from_pretrained("Matheusmatos2916/my_awesome_qa_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit 路
e63905c
1
Parent(s): b224cc5
Model save
Browse files- README.md +59 -0
- config.json +1 -1
- pytorch_model.bin +3 -0
- tokenizer_config.json +55 -48
- training_args.bin +2 -2
README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
base_model: deepset/roberta-base-squad2
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
model-index:
|
| 7 |
+
- name: my_awesome_qa_model
|
| 8 |
+
results: []
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 12 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 13 |
+
|
| 14 |
+
# my_awesome_qa_model
|
| 15 |
+
|
| 16 |
+
This model is a fine-tuned version of [deepset/roberta-base-squad2](https://huggingface.co/deepset/roberta-base-squad2) on the None dataset.
|
| 17 |
+
It achieves the following results on the evaluation set:
|
| 18 |
+
- Loss: 7.1498
|
| 19 |
+
|
| 20 |
+
## Model description
|
| 21 |
+
|
| 22 |
+
More information needed
|
| 23 |
+
|
| 24 |
+
## Intended uses & limitations
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Training and evaluation data
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training procedure
|
| 33 |
+
|
| 34 |
+
### Training hyperparameters
|
| 35 |
+
|
| 36 |
+
The following hyperparameters were used during training:
|
| 37 |
+
- learning_rate: 2e-05
|
| 38 |
+
- train_batch_size: 8
|
| 39 |
+
- eval_batch_size: 8
|
| 40 |
+
- seed: 42
|
| 41 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 42 |
+
- lr_scheduler_type: linear
|
| 43 |
+
- num_epochs: 3
|
| 44 |
+
|
| 45 |
+
### Training results
|
| 46 |
+
|
| 47 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 48 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
| 49 |
+
| No log | 1.0 | 148 | 5.9618 |
|
| 50 |
+
| No log | 2.0 | 296 | 7.1965 |
|
| 51 |
+
| No log | 3.0 | 444 | 7.1498 |
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
### Framework versions
|
| 55 |
+
|
| 56 |
+
- Transformers 4.32.1
|
| 57 |
+
- Pytorch 2.1.0
|
| 58 |
+
- Datasets 2.12.0
|
| 59 |
+
- Tokenizers 0.13.3
|
config.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
"pad_token_id": 1,
|
| 24 |
"position_embedding_type": "absolute",
|
| 25 |
"torch_dtype": "float32",
|
| 26 |
-
"transformers_version": "4.
|
| 27 |
"type_vocab_size": 1,
|
| 28 |
"use_cache": true,
|
| 29 |
"vocab_size": 50265
|
|
|
|
| 23 |
"pad_token_id": 1,
|
| 24 |
"position_embedding_type": "absolute",
|
| 25 |
"torch_dtype": "float32",
|
| 26 |
+
"transformers_version": "4.32.1",
|
| 27 |
"type_vocab_size": 1,
|
| 28 |
"use_cache": true,
|
| 29 |
"vocab_size": 50265
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6ff65f0fe4d32388a3836ef92ed07ddeef369ae7a7edbf299abfd9cb2f85b92
|
| 3 |
+
size 496292326
|
tokenizer_config.json
CHANGED
|
@@ -1,59 +1,66 @@
|
|
| 1 |
{
|
| 2 |
"add_prefix_space": false,
|
| 3 |
-
"
|
| 4 |
-
"
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
"special": true
|
| 11 |
-
},
|
| 12 |
-
"1": {
|
| 13 |
-
"content": "<pad>",
|
| 14 |
-
"lstrip": false,
|
| 15 |
-
"normalized": true,
|
| 16 |
-
"rstrip": false,
|
| 17 |
-
"single_word": false,
|
| 18 |
-
"special": true
|
| 19 |
-
},
|
| 20 |
-
"2": {
|
| 21 |
-
"content": "</s>",
|
| 22 |
-
"lstrip": false,
|
| 23 |
-
"normalized": true,
|
| 24 |
-
"rstrip": false,
|
| 25 |
-
"single_word": false,
|
| 26 |
-
"special": true
|
| 27 |
-
},
|
| 28 |
-
"3": {
|
| 29 |
-
"content": "<unk>",
|
| 30 |
-
"lstrip": false,
|
| 31 |
-
"normalized": true,
|
| 32 |
-
"rstrip": false,
|
| 33 |
-
"single_word": false,
|
| 34 |
-
"special": true
|
| 35 |
-
},
|
| 36 |
-
"50264": {
|
| 37 |
-
"content": "<mask>",
|
| 38 |
-
"lstrip": true,
|
| 39 |
-
"normalized": true,
|
| 40 |
-
"rstrip": false,
|
| 41 |
-
"single_word": false,
|
| 42 |
-
"special": true
|
| 43 |
-
}
|
| 44 |
},
|
| 45 |
-
"bos_token": "<s>",
|
| 46 |
"clean_up_tokenization_spaces": true,
|
| 47 |
-
"cls_token":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
"do_lower_case": false,
|
| 49 |
-
"eos_token":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
"errors": "replace",
|
| 51 |
"full_tokenizer_file": null,
|
| 52 |
-
"mask_token":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
"model_max_length": 512,
|
| 54 |
-
"pad_token":
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
"tokenizer_class": "RobertaTokenizer",
|
| 57 |
"trim_offsets": true,
|
| 58 |
-
"unk_token":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"add_prefix_space": false,
|
| 3 |
+
"bos_token": {
|
| 4 |
+
"__type": "AddedToken",
|
| 5 |
+
"content": "<s>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
},
|
|
|
|
| 11 |
"clean_up_tokenization_spaces": true,
|
| 12 |
+
"cls_token": {
|
| 13 |
+
"__type": "AddedToken",
|
| 14 |
+
"content": "<s>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": true,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false
|
| 19 |
+
},
|
| 20 |
"do_lower_case": false,
|
| 21 |
+
"eos_token": {
|
| 22 |
+
"__type": "AddedToken",
|
| 23 |
+
"content": "</s>",
|
| 24 |
+
"lstrip": false,
|
| 25 |
+
"normalized": true,
|
| 26 |
+
"rstrip": false,
|
| 27 |
+
"single_word": false
|
| 28 |
+
},
|
| 29 |
"errors": "replace",
|
| 30 |
"full_tokenizer_file": null,
|
| 31 |
+
"mask_token": {
|
| 32 |
+
"__type": "AddedToken",
|
| 33 |
+
"content": "<mask>",
|
| 34 |
+
"lstrip": true,
|
| 35 |
+
"normalized": true,
|
| 36 |
+
"rstrip": false,
|
| 37 |
+
"single_word": false
|
| 38 |
+
},
|
| 39 |
"model_max_length": 512,
|
| 40 |
+
"pad_token": {
|
| 41 |
+
"__type": "AddedToken",
|
| 42 |
+
"content": "<pad>",
|
| 43 |
+
"lstrip": false,
|
| 44 |
+
"normalized": true,
|
| 45 |
+
"rstrip": false,
|
| 46 |
+
"single_word": false
|
| 47 |
+
},
|
| 48 |
+
"sep_token": {
|
| 49 |
+
"__type": "AddedToken",
|
| 50 |
+
"content": "</s>",
|
| 51 |
+
"lstrip": false,
|
| 52 |
+
"normalized": true,
|
| 53 |
+
"rstrip": false,
|
| 54 |
+
"single_word": false
|
| 55 |
+
},
|
| 56 |
"tokenizer_class": "RobertaTokenizer",
|
| 57 |
"trim_offsets": true,
|
| 58 |
+
"unk_token": {
|
| 59 |
+
"__type": "AddedToken",
|
| 60 |
+
"content": "<unk>",
|
| 61 |
+
"lstrip": false,
|
| 62 |
+
"normalized": true,
|
| 63 |
+
"rstrip": false,
|
| 64 |
+
"single_word": false
|
| 65 |
+
}
|
| 66 |
}
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13749780e587dab17034046928734c48e046a3b76ade9dac433fb95f5417bae2
|
| 3 |
+
size 4472
|