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=orthogonal/events.out.tfevents.1724351876.f383272e719b +3 -0
- logs/attn_loss_fn=cos, attn_weight=5, layer_mapper=all, projector=orthogonal/completed.flag +0 -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 |
|
55 |
-
| 20000 | 0.3232 |
|
56 |
-
| 22500 | 0.3636 |
|
57 |
-
| 25000 | 0.4040 | 63.75 |
|
58 |
-
| 27500 | 0.4444 |
|
59 |
-
| 30000 | 0.4848 |
|
60 |
-
| 32500 | 0.5253 | 58.
|
61 |
-
| 35000 | 0.5657 |
|
62 |
-
| 37500 | 0.6061 |
|
63 |
-
| 40000 | 0.6465 | 55.
|
64 |
-
| 42500 | 0.6869 | 55.0 |
|
65 |
-
| 45000 | 0.7273 |
|
66 |
-
| 47500 | 0.7677 |
|
67 |
-
| 50000 | 0.8081 | 50.
|
68 |
-
| 52500 | 0.8485 | 49.5 |
|
69 |
-
| 55000 | 0.8889 |
|
70 |
-
| 57500 | 0.9293 |
|
71 |
-
| 60000 | 0.9697 |
|
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,744,973 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 | 1829656068096.0 | 79714593013760.0 | 26.8020 | 30.2396 | 82.673 | 10.351 | 4898947072.0 | 21715354648576.0 |
|
48 |
+
| 2500 | 0.0404 | 908.0 | 7264.0 | 6.0454 | 30.2047 | 82.769 | 10.363 | 608.0 | 13888.0 |
|
49 |
+
| 5000 | 0.0808 | 376.0 | 1888.0 | 4.9904 | 30.154 | 82.908 | 10.38 | 294.0 | 250.0 |
|
50 |
+
| 7500 | 0.1212 | 227.0 | 904.0 | 4.4958 | 30.2026 | 82.774 | 10.363 | 199.0 | 183.0 |
|
51 |
+
| 10000 | 0.1616 | 170.0 | 692.0 | 4.2057 | 30.1547 | 82.906 | 10.38 | 160.0 | 172.0 |
|
52 |
+
| 12500 | 0.2020 | 129.0 | 458.0 | 3.8235 | 30.3035 | 82.499 | 10.329 | 107.0 | 127.0 |
|
53 |
+
| 15000 | 0.2424 | 108.5 | 404.0 | 3.6530 | 30.2712 | 82.587 | 10.34 | 88.0 | 179.0 |
|
54 |
+
| 17500 | 0.2828 | 94.0 | 362.0 | 3.5036 | 30.2085 | 82.758 | 10.361 | 75.0 | 125.0 |
|
55 |
+
| 20000 | 0.3232 | 77.5 | 264.0 | 3.3187 | 30.1387 | 82.95 | 10.385 | 62.0 | 128.0 |
|
56 |
+
| 22500 | 0.3636 | 66.0 | 219.0 | 3.1312 | 30.1887 | 82.812 | 10.368 | 51.0 | 95.0 |
|
57 |
+
| 25000 | 0.4040 | 63.75 | 191.0 | 3.0365 | 30.175 | 82.85 | 10.373 | 47.0 | 69.5 |
|
58 |
+
| 27500 | 0.4444 | 60.25 | 193.0 | 2.9840 | 30.2256 | 82.711 | 10.355 | 41.5 | 63.75 |
|
59 |
+
| 30000 | 0.4848 | 61.0 | 196.0 | 2.9776 | 30.1558 | 82.903 | 10.379 | 41.75 | 132.0 |
|
60 |
+
| 32500 | 0.5253 | 58.5 | 189.0 | 2.9520 | 30.1884 | 82.813 | 10.368 | 42.25 | 121.5 |
|
61 |
+
| 35000 | 0.5657 | 56.5 | 175.0 | 2.8863 | 30.1265 | 82.983 | 10.39 | 38.5 | 59.75 |
|
62 |
+
| 37500 | 0.6061 | 57.0 | 168.0 | 2.8672 | 30.1704 | 82.863 | 10.374 | 37.75 | 72.0 |
|
63 |
+
| 40000 | 0.6465 | 55.0 | 173.0 | 2.8404 | 30.1803 | 82.836 | 10.371 | 35.75 | 45.75 |
|
64 |
+
| 42500 | 0.6869 | 55.0 | 160.0 | 2.8200 | 30.1856 | 82.821 | 10.369 | 36.0 | 64.5 |
|
65 |
+
| 45000 | 0.7273 | 50.0 | 136.0 | 2.7104 | 30.1734 | 82.854 | 10.373 | 31.25 | 42.75 |
|
66 |
+
| 47500 | 0.7677 | 49.5 | 129.0 | 2.6868 | 30.192 | 82.803 | 10.367 | 29.75 | 37.0 |
|
67 |
+
| 50000 | 0.8081 | 50.0 | 131.0 | 2.6746 | 30.1592 | 82.893 | 10.378 | 29.5 | 39.0 |
|
68 |
+
| 52500 | 0.8485 | 49.5 | 126.0 | 2.6637 | 30.1577 | 82.898 | 10.379 | 28.75 | 39.25 |
|
69 |
+
| 55000 | 0.8889 | 48.5 | 121.5 | 2.6448 | 30.156 | 82.902 | 10.379 | 28.375 | 35.5 |
|
70 |
+
| 57500 | 0.9293 | 48.25 | 120.5 | 2.6397 | 30.2088 | 82.757 | 10.361 | 28.125 | 33.5 |
|
71 |
+
| 60000 | 0.9697 | 48.0 | 121.0 | 2.6370 | 30.1788 | 82.84 | 10.372 | 28.0 | 33.5 |
|
72 |
+
| 61875 | 1.0 | 48.0 | 121.0 | 2.6364 | 30.261 | 82.615 | 10.343 | 28.0 | 33.75 |
|
73 |
|
74 |
# Resource Usage Comparison
|
75 |
|
76 |
+
- VRAM Use: 7.7831 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)**: 124439808 -> torch.bfloat16
|
83 |
- **Model Size**: 0.24 GB -> 0.24 GB
|
84 |
|
85 |
<details>
|
|
|
93 |
<br/>
|
94 |
|
95 |
# Train Dataset
|
96 |
+
Trained on 145,702,102 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=5, 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=5, loss_fn=cos, layer_mapper=layer-2))`
|
124 |
- train_embeddings: `True`
|
125 |
+
- lr_scheduler: `<torch.optim.lr_scheduler.LambdaLR object at 0x7fbd706f6920>`
|
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.0
|
158 |
+
- Pytorch 2.3.0
|
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.0",
|
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.0"
|
6 |
}
|
logs/attn_loss_fn=cos, attn_weight=25.0, layer_mapper=all, projector=orthogonal/events.out.tfevents.1724351876.f383272e719b
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a7bc86998640ec5b798dfe816446b875380701d9abb0e3f52a6c14e9a6939932
|
3 |
+
size 29632525
|
logs/attn_loss_fn=cos, attn_weight=5, layer_mapper=all, projector=orthogonal/completed.flag
ADDED
File without changes
|
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:59d4121c9f70cccc00f776d22cbf70436b5c4a9f9753999f27ad2e448722cf74
|
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:7007df0e0a0b428f7d975882630978ec373f8bd4ad859d99b572d3904b66f782
|
3 |
size 1017899144
|