End of training
Browse files- README.md +74 -0
- config.json +51 -0
- model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: openai-community/gpt2-large
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
datasets:
|
| 7 |
+
- stanfordnlp/snli
|
| 8 |
+
metrics:
|
| 9 |
+
- accuracy
|
| 10 |
+
model-index:
|
| 11 |
+
- name: gpt2-large-lora-2.95M-snli-model1
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
name: Text Classification
|
| 15 |
+
type: text-classification
|
| 16 |
+
dataset:
|
| 17 |
+
name: snli
|
| 18 |
+
type: stanfordnlp/snli
|
| 19 |
+
metrics:
|
| 20 |
+
- name: Accuracy
|
| 21 |
+
type: accuracy
|
| 22 |
+
value: 0.8795976427555375
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 26 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 27 |
+
|
| 28 |
+
# gpt2-large-lora-2.95M-snli-model1
|
| 29 |
+
|
| 30 |
+
This model is a fine-tuned version of [openai-community/gpt2-large](https://huggingface.co/openai-community/gpt2-large) on the snli dataset.
|
| 31 |
+
It achieves the following results on the evaluation set:
|
| 32 |
+
- Loss: 0.3222
|
| 33 |
+
- Accuracy: 0.8796
|
| 34 |
+
|
| 35 |
+
## Model description
|
| 36 |
+
|
| 37 |
+
More information needed
|
| 38 |
+
|
| 39 |
+
## Intended uses & limitations
|
| 40 |
+
|
| 41 |
+
More information needed
|
| 42 |
+
|
| 43 |
+
## Training and evaluation data
|
| 44 |
+
|
| 45 |
+
More information needed
|
| 46 |
+
|
| 47 |
+
## Training procedure
|
| 48 |
+
|
| 49 |
+
### Training hyperparameters
|
| 50 |
+
|
| 51 |
+
The following hyperparameters were used during training:
|
| 52 |
+
- learning_rate: 2e-05
|
| 53 |
+
- train_batch_size: 128
|
| 54 |
+
- eval_batch_size: 128
|
| 55 |
+
- seed: 66
|
| 56 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 57 |
+
- lr_scheduler_type: linear
|
| 58 |
+
- num_epochs: 3
|
| 59 |
+
|
| 60 |
+
### Training results
|
| 61 |
+
|
| 62 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 63 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
| 64 |
+
| 0.442 | 1.0 | 4292 | 0.3550 | 0.8650 |
|
| 65 |
+
| 0.3973 | 2.0 | 8584 | 0.3296 | 0.8755 |
|
| 66 |
+
| 0.3926 | 3.0 | 12876 | 0.3222 | 0.8796 |
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
### Framework versions
|
| 70 |
+
|
| 71 |
+
- Transformers 4.35.2
|
| 72 |
+
- Pytorch 2.1.1+cu121
|
| 73 |
+
- Datasets 2.15.0
|
| 74 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "openai-community/gpt2-large",
|
| 3 |
+
"activation_function": "gelu_new",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"GPT2ForSequenceClassification"
|
| 6 |
+
],
|
| 7 |
+
"attn_pdrop": 0.1,
|
| 8 |
+
"bos_token_id": 50256,
|
| 9 |
+
"embd_pdrop": 0.1,
|
| 10 |
+
"eos_token_id": 50256,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "LABEL_0",
|
| 13 |
+
"1": "LABEL_1",
|
| 14 |
+
"2": "LABEL_2"
|
| 15 |
+
},
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"label2id": {
|
| 18 |
+
"LABEL_0": 0,
|
| 19 |
+
"LABEL_1": 1,
|
| 20 |
+
"LABEL_2": 2
|
| 21 |
+
},
|
| 22 |
+
"layer_norm_epsilon": 1e-05,
|
| 23 |
+
"model_type": "gpt2",
|
| 24 |
+
"n_ctx": 1024,
|
| 25 |
+
"n_embd": 1280,
|
| 26 |
+
"n_head": 20,
|
| 27 |
+
"n_inner": null,
|
| 28 |
+
"n_layer": 36,
|
| 29 |
+
"n_positions": 1024,
|
| 30 |
+
"pad_token_id": 50256,
|
| 31 |
+
"problem_type": "single_label_classification",
|
| 32 |
+
"reorder_and_upcast_attn": false,
|
| 33 |
+
"resid_pdrop": 0.1,
|
| 34 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 35 |
+
"scale_attn_weights": true,
|
| 36 |
+
"summary_activation": null,
|
| 37 |
+
"summary_first_dropout": 0.1,
|
| 38 |
+
"summary_proj_to_labels": true,
|
| 39 |
+
"summary_type": "cls_index",
|
| 40 |
+
"summary_use_proj": true,
|
| 41 |
+
"task_specific_params": {
|
| 42 |
+
"text-generation": {
|
| 43 |
+
"do_sample": true,
|
| 44 |
+
"max_length": 50
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
+
"torch_dtype": "float32",
|
| 48 |
+
"transformers_version": "4.35.2",
|
| 49 |
+
"use_cache": true,
|
| 50 |
+
"vocab_size": 50257
|
| 51 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d962bec3eaa44850606994b13bd3c5eb77467a34ffc2415ab4b5e5b8f4b43e1b
|
| 3 |
+
size 3096181368
|