Model save
Browse files- README.md +91 -0
- config.json +18 -0
- generation_config.json +4 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- generated_from_trainer
|
| 5 |
+
metrics:
|
| 6 |
+
- accuracy
|
| 7 |
+
model-index:
|
| 8 |
+
- name: gpt2_cfg_add_8
|
| 9 |
+
results: []
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
+
|
| 15 |
+
# gpt2_cfg_add_8
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 18 |
+
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 0.0000
|
| 20 |
+
- Accuracy: 1.0
|
| 21 |
+
|
| 22 |
+
## Model description
|
| 23 |
+
|
| 24 |
+
More information needed
|
| 25 |
+
|
| 26 |
+
## Intended uses & limitations
|
| 27 |
+
|
| 28 |
+
More information needed
|
| 29 |
+
|
| 30 |
+
## Training and evaluation data
|
| 31 |
+
|
| 32 |
+
More information needed
|
| 33 |
+
|
| 34 |
+
## Training procedure
|
| 35 |
+
|
| 36 |
+
### Training hyperparameters
|
| 37 |
+
|
| 38 |
+
The following hyperparameters were used during training:
|
| 39 |
+
- learning_rate: 0.001
|
| 40 |
+
- train_batch_size: 64
|
| 41 |
+
- eval_batch_size: 64
|
| 42 |
+
- seed: 42
|
| 43 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 44 |
+
- lr_scheduler_type: cosine
|
| 45 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 46 |
+
- num_epochs: 1
|
| 47 |
+
|
| 48 |
+
### Training results
|
| 49 |
+
|
| 50 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 51 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
| 52 |
+
| No log | 0 | 0 | 2.7379 | 0.0 |
|
| 53 |
+
| 1.9725 | 0.0320 | 100 | 1.9286 | 0.0 |
|
| 54 |
+
| 1.0948 | 0.0641 | 200 | 0.9757 | 0.02 |
|
| 55 |
+
| 0.6137 | 0.0961 | 300 | 0.6562 | 0.09 |
|
| 56 |
+
| 0.3684 | 0.1281 | 400 | 0.3644 | 0.35 |
|
| 57 |
+
| 0.2853 | 0.1602 | 500 | 0.2482 | 0.61 |
|
| 58 |
+
| 0.0578 | 0.1922 | 600 | 0.0728 | 0.84 |
|
| 59 |
+
| 0.0081 | 0.2242 | 700 | 0.0669 | 0.88 |
|
| 60 |
+
| 0.0033 | 0.2562 | 800 | 0.0264 | 0.93 |
|
| 61 |
+
| 2.4737 | 0.2883 | 900 | 1.5848 | 0.005 |
|
| 62 |
+
| 0.0482 | 0.3203 | 1000 | 0.0470 | 0.89 |
|
| 63 |
+
| 0.0009 | 0.3523 | 1100 | 0.0078 | 0.985 |
|
| 64 |
+
| 0.0125 | 0.3844 | 1200 | 0.0068 | 0.98 |
|
| 65 |
+
| 0.005 | 0.4164 | 1300 | 0.0116 | 0.975 |
|
| 66 |
+
| 0.0256 | 0.4484 | 1400 | 0.0035 | 0.995 |
|
| 67 |
+
| 0.0003 | 0.4805 | 1500 | 0.0005 | 1.0 |
|
| 68 |
+
| 0.0001 | 0.5125 | 1600 | 0.0001 | 1.0 |
|
| 69 |
+
| 0.0 | 0.5445 | 1700 | 0.0000 | 1.0 |
|
| 70 |
+
| 0.0 | 0.5766 | 1800 | 0.0000 | 1.0 |
|
| 71 |
+
| 0.0001 | 0.6086 | 1900 | 0.0002 | 1.0 |
|
| 72 |
+
| 0.0 | 0.6406 | 2000 | 0.0000 | 1.0 |
|
| 73 |
+
| 0.0 | 0.6726 | 2100 | 0.0000 | 1.0 |
|
| 74 |
+
| 0.0 | 0.7047 | 2200 | 0.0000 | 1.0 |
|
| 75 |
+
| 0.0 | 0.7367 | 2300 | 0.0000 | 1.0 |
|
| 76 |
+
| 0.0 | 0.7687 | 2400 | 0.0000 | 1.0 |
|
| 77 |
+
| 0.0 | 0.8008 | 2500 | 0.0000 | 1.0 |
|
| 78 |
+
| 0.0 | 0.8328 | 2600 | 0.0000 | 1.0 |
|
| 79 |
+
| 0.0 | 0.8648 | 2700 | 0.0000 | 1.0 |
|
| 80 |
+
| 0.0 | 0.8969 | 2800 | 0.0000 | 1.0 |
|
| 81 |
+
| 0.0 | 0.9289 | 2900 | 0.0000 | 1.0 |
|
| 82 |
+
| 0.0 | 0.9609 | 3000 | 0.0000 | 1.0 |
|
| 83 |
+
| 0.0 | 0.9930 | 3100 | 0.0000 | 1.0 |
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
### Framework versions
|
| 87 |
+
|
| 88 |
+
- Transformers 4.46.0
|
| 89 |
+
- Pytorch 2.5.1
|
| 90 |
+
- Datasets 3.1.0
|
| 91 |
+
- Tokenizers 0.20.1
|
config.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"NanoGPT"
|
| 4 |
+
],
|
| 5 |
+
"bias": true,
|
| 6 |
+
"block_size": 256,
|
| 7 |
+
"dropout": 0.0,
|
| 8 |
+
"model_type": "nanogpt",
|
| 9 |
+
"n_embd": 384,
|
| 10 |
+
"n_head": 6,
|
| 11 |
+
"n_layer": 6,
|
| 12 |
+
"nonlinearity": "RELU",
|
| 13 |
+
"torch_dtype": "float32",
|
| 14 |
+
"transformers_version": "4.46.0",
|
| 15 |
+
"use_NoPE": true,
|
| 16 |
+
"use_layernorm": true,
|
| 17 |
+
"vocab_size": 14
|
| 18 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"transformers_version": "4.46.0"
|
| 4 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f90ea81987635cfe3db95050c2810dc318722b05b429be12d7439c8f0b974018
|
| 3 |
+
size 42640744
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9cf2427c9da03e58124d55de2bd74f3b1e6618a0e32595560014fe30aad05a1f
|
| 3 |
+
size 5176
|