Training in progress, step 61875
Browse files- README.md +35 -35
- config.json +1 -1
- generation_config.json +1 -1
- logs/attn_loss_fn=cos, attn_weight=25.0, layer_mapper=all, projector=linear/completed.flag +0 -0
- logs/attn_loss_fn=cos, attn_weight=5, layer_mapper=last_k_2, projector=linear/events.out.tfevents.1724344470.e3f806ea38c9 +3 -0
- model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
@@ -44,42 +44,42 @@ More information needed
|
|
44 |
| step | epoch | enwikippl | frwikippl | loss | runtime | samples_per_second | steps_per_second | tinystoriesppl | zhwikippl |
|
45 |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
46 |
| **teacher eval** | | 43.25 | 61.25 | | | | | 11.6875 | 19.125 |
|
47 |
-
| 0 | 0 |
|
48 |
-
| 2500 | 0.0404 |
|
49 |
-
| 5000 | 0.0808 |
|
50 |
-
| 7500 | 0.1212 |
|
51 |
-
| 10000 | 0.1616 |
|
52 |
-
| 12500 | 0.2020 |
|
53 |
-
| 15000 | 0.2424 |
|
54 |
-
| 17500 | 0.2828 | 94.
|
55 |
-
| 20000 | 0.3232 |
|
56 |
-
| 22500 | 0.3636 | 66.0 |
|
57 |
-
| 25000 | 0.4040 | 63.
|
58 |
-
| 27500 | 0.4444 |
|
59 |
-
| 30000 | 0.4848 |
|
60 |
-
| 32500 | 0.5253 |
|
61 |
-
| 35000 | 0.5657 |
|
62 |
-
| 37500 | 0.6061 | 57.0 |
|
63 |
-
| 40000 | 0.6465 | 55.
|
64 |
-
| 42500 | 0.6869 | 55.0 |
|
65 |
-
| 45000 | 0.7273 | 50.
|
66 |
-
| 47500 | 0.7677 |
|
67 |
-
| 50000 | 0.8081 | 50.
|
68 |
-
| 52500 | 0.8485 | 49.
|
69 |
-
| 55000 | 0.8889 |
|
70 |
-
| 57500 | 0.9293 | 48.
|
71 |
-
| 60000 | 0.9697 | 48.
|
72 |
-
| 61875 | 1.0 | 48.
|
73 |
|
74 |
# Resource Usage Comparison
|
75 |
|
76 |
-
- VRAM Use: 7.
|
77 |
|
78 |
-
|
79 |
|
80 |
- **Architecture**: `GPT2LMHeadModel` -> `GPT2LMHeadModel`
|
81 |
- **Total Parameters**: 124,439,808 -> 124,439,808
|
82 |
-
- **Data Type (dtype)**:
|
83 |
- **Model Size**: 0.24 GB -> 0.24 GB
|
84 |
|
85 |
<details>
|
@@ -93,7 +93,7 @@ More information needed
|
|
93 |
<br/>
|
94 |
|
95 |
# Train Dataset
|
96 |
-
Trained on 145,
|
97 |
|
98 |
- Num Samples: `247,500`
|
99 |
- Subset: `20231101.en`
|
@@ -103,7 +103,7 @@ Trained on 145,702,102 tokens from the [wikimedia/wikipedia](https://huggingface
|
|
103 |
# Training Objective
|
104 |
|
105 |
```
|
106 |
-
DistillationObjective(logits_loss_component=LossComponent(label=logits, weight=1, loss_fn=kl), attn_loss_component=LossComponent(label=attn, weight=
|
107 |
```
|
108 |
|
109 |
# Hyperparameters
|
@@ -120,9 +120,9 @@ The following hyperparameters were used during training:
|
|
120 |
- lr_scheduler_type: `linear`
|
121 |
- lr_scheduler_warmup_ratio: `0.5`
|
122 |
- num_epochs: `1.0`
|
123 |
-
- distillation_objective: `DistillationObjective(logits_loss_component=LossComponent(label=logits, weight=1, loss_fn=kl), attn_loss_component=LossComponent(label=attn, weight=
|
124 |
- train_embeddings: `True`
|
125 |
-
- lr_scheduler: `<torch.optim.lr_scheduler.LambdaLR object at
|
126 |
- student_model_name_or_path: `None`
|
127 |
- student_config_name_or_path: `None`
|
128 |
- student_model_config: `None`
|
@@ -154,6 +154,6 @@ The following hyperparameters were used during training:
|
|
154 |
|
155 |
# Framework Versions
|
156 |
- Distily 0.2.0
|
157 |
-
- Transformers 4.44.
|
158 |
-
- Pytorch 2.
|
159 |
- Datasets 2.21.0
|
|
|
44 |
| step | epoch | enwikippl | frwikippl | loss | runtime | samples_per_second | steps_per_second | tinystoriesppl | zhwikippl |
|
45 |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
46 |
| **teacher eval** | | 43.25 | 61.25 | | | | | 11.6875 | 19.125 |
|
47 |
+
| 0 | 0 | 2473901162496.0 | 170424302305280.0 | 45.7764 | 25.2689 | 98.936 | 12.387 | 4060086272.0 | 71468255805440.0 |
|
48 |
+
| 2500 | 0.0404 | 2256.0 | 19712.0 | 20.8732 | 25.2001 | 99.206 | 12.421 | 1480.0 | 77312.0 |
|
49 |
+
| 5000 | 0.0808 | 486.0 | 3104.0 | 18.4096 | 25.2957 | 98.831 | 12.374 | 338.0 | 1128.0 |
|
50 |
+
| 7500 | 0.1212 | 276.0 | 1296.0 | 17.0014 | 25.2794 | 98.895 | 12.382 | 255.0 | 249.0 |
|
51 |
+
| 10000 | 0.1616 | 202.0 | 756.0 | 16.2107 | 25.3199 | 98.736 | 12.362 | 187.0 | 296.0 |
|
52 |
+
| 12500 | 0.2020 | 145.0 | 540.0 | 15.1004 | 25.2816 | 98.886 | 12.381 | 131.0 | 176.0 |
|
53 |
+
| 15000 | 0.2424 | 123.5 | 488.0 | 14.5287 | 25.2154 | 99.146 | 12.413 | 93.5 | 146.0 |
|
54 |
+
| 17500 | 0.2828 | 94.5 | 374.0 | 14.1501 | 25.2965 | 98.828 | 12.373 | 76.0 | 134.0 |
|
55 |
+
| 20000 | 0.3232 | 78.5 | 306.0 | 13.6428 | 25.2525 | 99.0 | 12.395 | 63.25 | 149.0 |
|
56 |
+
| 22500 | 0.3636 | 66.0 | 218.0 | 13.1496 | 25.2593 | 98.973 | 12.391 | 50.0 | 82.0 |
|
57 |
+
| 25000 | 0.4040 | 63.5 | 202.0 | 12.9562 | 25.3101 | 98.775 | 12.367 | 44.0 | 74.0 |
|
58 |
+
| 27500 | 0.4444 | 59.0 | 200.0 | 12.8429 | 25.2626 | 98.96 | 12.39 | 40.25 | 65.0 |
|
59 |
+
| 30000 | 0.4848 | 58.25 | 198.0 | 12.8220 | 25.2928 | 98.843 | 12.375 | 39.75 | 61.25 |
|
60 |
+
| 32500 | 0.5253 | 59.25 | 171.0 | 12.7662 | 25.3006 | 98.812 | 12.371 | 39.25 | 55.25 |
|
61 |
+
| 35000 | 0.5657 | 58.25 | 171.0 | 12.6525 | 25.3008 | 98.811 | 12.371 | 36.5 | 47.25 |
|
62 |
+
| 37500 | 0.6061 | 57.0 | 158.0 | 12.6054 | 25.3065 | 98.789 | 12.368 | 36.5 | 49.5 |
|
63 |
+
| 40000 | 0.6465 | 55.5 | 159.0 | 12.5787 | 25.1987 | 99.212 | 12.421 | 33.5 | 64.5 |
|
64 |
+
| 42500 | 0.6869 | 55.0 | 151.0 | 12.5195 | 25.2996 | 98.816 | 12.372 | 34.75 | 48.25 |
|
65 |
+
| 45000 | 0.7273 | 50.75 | 135.0 | 12.2859 | 25.2872 | 98.864 | 12.378 | 29.25 | 43.5 |
|
66 |
+
| 47500 | 0.7677 | 50.75 | 125.5 | 12.2428 | 25.1481 | 99.411 | 12.446 | 28.75 | 38.25 |
|
67 |
+
| 50000 | 0.8081 | 50.25 | 123.5 | 12.2168 | 25.2928 | 98.842 | 12.375 | 28.375 | 37.25 |
|
68 |
+
| 52500 | 0.8485 | 49.0 | 121.0 | 12.1935 | 25.3029 | 98.803 | 12.37 | 28.125 | 36.0 |
|
69 |
+
| 55000 | 0.8889 | 49.0 | 121.0 | 12.1614 | 25.271 | 98.927 | 12.386 | 27.5 | 35.75 |
|
70 |
+
| 57500 | 0.9293 | 48.75 | 119.5 | 12.1483 | 25.2276 | 99.098 | 12.407 | 27.5 | 34.25 |
|
71 |
+
| 60000 | 0.9697 | 48.75 | 118.5 | 12.1410 | 25.3014 | 98.809 | 12.371 | 27.375 | 33.75 |
|
72 |
+
| 61875 | 1.0 | 48.5 | 119.0 | 12.1404 | 25.2551 | 98.99 | 12.394 | 27.25 | 33.75 |
|
73 |
|
74 |
# Resource Usage Comparison
|
75 |
|
76 |
+
- VRAM Use: 7.7830 GB
|
77 |
|
78 |
+
# Distillation (Teacher -> Student) Architecture Difference:
|
79 |
|
80 |
- **Architecture**: `GPT2LMHeadModel` -> `GPT2LMHeadModel`
|
81 |
- **Total Parameters**: 124,439,808 -> 124,439,808
|
82 |
+
- **Data Type (dtype)**: torch.bfloat16 -> torch.bfloat16
|
83 |
- **Model Size**: 0.24 GB -> 0.24 GB
|
84 |
|
85 |
<details>
|
|
|
93 |
<br/>
|
94 |
|
95 |
# Train Dataset
|
96 |
+
Trained on 145,744,973 tokens from the [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) dataset.
|
97 |
|
98 |
- Num Samples: `247,500`
|
99 |
- Subset: `20231101.en`
|
|
|
103 |
# Training Objective
|
104 |
|
105 |
```
|
106 |
+
DistillationObjective(logits_loss_component=LossComponent(label=logits, weight=1, loss_fn=kl), attn_loss_component=LossComponent(label=attn, weight=25.0, loss_fn=cos, layer_mapper=layer-2))
|
107 |
```
|
108 |
|
109 |
# Hyperparameters
|
|
|
120 |
- lr_scheduler_type: `linear`
|
121 |
- lr_scheduler_warmup_ratio: `0.5`
|
122 |
- num_epochs: `1.0`
|
123 |
+
- distillation_objective: `DistillationObjective(logits_loss_component=LossComponent(label=logits, weight=1, loss_fn=kl), attn_loss_component=LossComponent(label=attn, weight=25.0, loss_fn=cos, layer_mapper=layer-2))`
|
124 |
- train_embeddings: `True`
|
125 |
+
- lr_scheduler: `<torch.optim.lr_scheduler.LambdaLR object at 0x7f148c79de10>`
|
126 |
- student_model_name_or_path: `None`
|
127 |
- student_config_name_or_path: `None`
|
128 |
- student_model_config: `None`
|
|
|
154 |
|
155 |
# Framework Versions
|
156 |
- Distily 0.2.0
|
157 |
+
- Transformers 4.44.1
|
158 |
+
- Pytorch 2.5.0.dev20240821+cu121
|
159 |
- Datasets 2.21.0
|
config.json
CHANGED
@@ -33,7 +33,7 @@
|
|
33 |
}
|
34 |
},
|
35 |
"torch_dtype": "bfloat16",
|
36 |
-
"transformers_version": "4.44.
|
37 |
"use_cache": true,
|
38 |
"vocab_size": 50257
|
39 |
}
|
|
|
33 |
}
|
34 |
},
|
35 |
"torch_dtype": "bfloat16",
|
36 |
+
"transformers_version": "4.44.1",
|
37 |
"use_cache": true,
|
38 |
"vocab_size": 50257
|
39 |
}
|
generation_config.json
CHANGED
@@ -2,5 +2,5 @@
|
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 50256,
|
4 |
"eos_token_id": 50256,
|
5 |
-
"transformers_version": "4.44.
|
6 |
}
|
|
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 50256,
|
4 |
"eos_token_id": 50256,
|
5 |
+
"transformers_version": "4.44.1"
|
6 |
}
|
logs/attn_loss_fn=cos, attn_weight=25.0, layer_mapper=all, projector=linear/completed.flag
ADDED
File without changes
|
logs/attn_loss_fn=cos, attn_weight=5, layer_mapper=last_k_2, projector=linear/events.out.tfevents.1724344470.e3f806ea38c9
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:315d30fa56c56c4c8ae5cfd6c8178a7bc13e42b992b98a67215fdbfb64588aa5
|
3 |
+
size 29632523
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 248894656
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:09117d75b8f644dfbdb8cc656b60a48c7bf8589a28a0d29a835e997d1857c28d
|
3 |
size 248894656
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1017899144
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dcfa22236009122c9bd40e3f0770c3e117278288906cf51f053b9adc2d3ca98a
|
3 |
size 1017899144
|