lapp0 commited on
Commit
19e8304
1 Parent(s): a137d80

Training in progress, step 61875

Browse files
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 | 2473901162496.0 | 170424302305280.0 | 45.7764 | 30.605 | 81.686 | 10.227 | 4060086272.0 | 71468255805440.0 |
48
- | 2500 | 0.0404 | 2096.0 | 18560.0 | 20.7820 | 30.3978 | 82.243 | 10.297 | 1352.0 | 77312.0 |
49
- | 5000 | 0.0808 | 486.0 | 3120.0 | 18.4128 | 30.5404 | 81.859 | 10.249 | 338.0 | 1144.0 |
50
- | 7500 | 0.1212 | 276.0 | 1296.0 | 17.0012 | 30.2492 | 82.647 | 10.347 | 255.0 | 250.0 |
51
- | 10000 | 0.1616 | 202.0 | 760.0 | 16.2091 | 30.3937 | 82.254 | 10.298 | 188.0 | 306.0 |
52
- | 12500 | 0.2020 | 145.0 | 536.0 | 15.0998 | 30.5518 | 81.828 | 10.245 | 131.0 | 177.0 |
53
- | 15000 | 0.2424 | 124.0 | 488.0 | 14.5293 | 30.3974 | 82.244 | 10.297 | 93.0 | 147.0 |
54
- | 17500 | 0.2828 | 94.5 | 376.0 | 14.1505 | 30.3113 | 82.477 | 10.326 | 76.0 | 137.0 |
55
- | 20000 | 0.3232 | 78.5 | 308.0 | 13.6441 | 30.3336 | 82.417 | 10.319 | 63.25 | 129.0 |
56
- | 22500 | 0.3636 | 66.5 | 217.0 | 13.1484 | 30.4175 | 82.189 | 10.29 | 49.25 | 84.0 |
57
- | 25000 | 0.4040 | 63.25 | 200.0 | 12.9620 | 30.3475 | 82.379 | 10.314 | 44.25 | 82.0 |
58
- | 27500 | 0.4444 | 59.5 | 202.0 | 12.8450 | 30.6172 | 81.653 | 10.223 | 40.0 | 86.5 |
59
- | 30000 | 0.4848 | 59.25 | 201.0 | 12.8301 | 30.3687 | 82.322 | 10.307 | 42.25 | 67.0 |
60
- | 32500 | 0.5253 | 58.5 | 175.0 | 12.7672 | 30.3752 | 82.304 | 10.304 | 38.75 | 67.5 |
61
- | 35000 | 0.5657 | 57.75 | 171.0 | 12.6596 | 30.4274 | 82.163 | 10.287 | 36.5 | 51.5 |
62
- | 37500 | 0.6061 | 56.25 | 158.0 | 12.5992 | 30.4042 | 82.226 | 10.295 | 37.25 | 47.25 |
63
- | 40000 | 0.6465 | 56.25 | 157.0 | 12.5809 | 30.4949 | 81.981 | 10.264 | 34.0 | 65.5 |
64
- | 42500 | 0.6869 | 55.25 | 149.0 | 12.5176 | 30.4213 | 82.179 | 10.289 | 34.25 | 50.25 |
65
- | 45000 | 0.7273 | 51.0 | 135.0 | 12.2865 | 30.4957 | 81.979 | 10.264 | 30.375 | 42.75 |
66
- | 47500 | 0.7677 | 50.75 | 126.5 | 12.2402 | 30.2924 | 82.529 | 10.333 | 29.375 | 35.5 |
67
- | 50000 | 0.8081 | 50.25 | 124.5 | 12.2185 | 30.3557 | 82.357 | 10.311 | 28.875 | 39.25 |
68
- | 52500 | 0.8485 | 49.25 | 122.0 | 12.1911 | 30.3408 | 82.397 | 10.316 | 28.625 | 35.5 |
69
- | 55000 | 0.8889 | 49.25 | 120.5 | 12.1575 | 30.4254 | 82.168 | 10.287 | 28.0 | 35.0 |
70
- | 57500 | 0.9293 | 48.75 | 119.5 | 12.1461 | 30.4084 | 82.214 | 10.293 | 28.0 | 33.75 |
71
- | 60000 | 0.9697 | 48.75 | 119.5 | 12.1392 | 30.3285 | 82.431 | 10.32 | 27.875 | 33.5 |
72
- | 61875 | 1.0 | 48.75 | 119.5 | 12.1389 | 30.3428 | 82.392 | 10.315 | 27.75 | 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)**: 124439808 -> torch.bfloat16
83
  - **Model Size**: 0.24 GB -> 0.24 GB
84
 
85
  <details>
@@ -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=25.0, loss_fn=cos, layer_mapper=layer-2))
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=25.0, loss_fn=cos, layer_mapper=layer-2))`
124
  - train_embeddings: `True`
125
- - lr_scheduler: `<torch.optim.lr_scheduler.LambdaLR object at 0x7fb5886aa170>`
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.0
158
- - Pytorch 2.3.0
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 | 21.1784 | 25.4629 | 98.182 | 12.292 | 4060086272.0 | 71468255805440.0 |
48
+ | 2500 | 0.0404 | 764.0 | 5376.0 | 2.3601 | 25.4683 | 98.161 | 12.29 | 470.0 | 2080.0 |
49
+ | 5000 | 0.0808 | 312.0 | 1344.0 | 1.6575 | 25.5021 | 98.031 | 12.274 | 232.0 | 241.0 |
50
+ | 7500 | 0.1212 | 210.0 | 744.0 | 1.3794 | 25.4757 | 98.133 | 12.286 | 171.0 | 154.0 |
51
+ | 10000 | 0.1616 | 158.0 | 560.0 | 1.1833 | 25.5064 | 98.015 | 12.271 | 129.0 | 155.0 |
52
+ | 12500 | 0.2020 | 117.0 | 456.0 | 0.9690 | 25.4693 | 98.157 | 12.289 | 98.5 | 140.0 |
53
+ | 15000 | 0.2424 | 103.5 | 420.0 | 0.8624 | 25.4707 | 98.152 | 12.289 | 84.0 | 110.5 |
54
+ | 17500 | 0.2828 | 91.5 | 338.0 | 0.7747 | 25.4792 | 98.119 | 12.285 | 74.5 | 108.0 |
55
+ | 20000 | 0.3232 | 78.0 | 292.0 | 0.7217 | 25.5053 | 98.019 | 12.272 | 64.5 | 173.0 |
56
+ | 22500 | 0.3636 | 70.0 | 240.0 | 0.6259 | 25.4943 | 98.061 | 12.277 | 57.0 | 84.0 |
57
+ | 25000 | 0.4040 | 68.0 | 201.0 | 0.5935 | 25.4853 | 98.096 | 12.282 | 53.25 | 143.0 |
58
+ | 27500 | 0.4444 | 66.0 | 205.0 | 0.5698 | 25.4724 | 98.146 | 12.288 | 48.75 | 141.0 |
59
+ | 30000 | 0.4848 | 65.5 | 231.0 | 0.5773 | 25.4348 | 98.29 | 12.306 | 50.0 | 76.0 |
60
+ | 32500 | 0.5253 | 65.5 | 194.0 | 0.5631 | 25.4793 | 98.119 | 12.284 | 48.25 | 70.0 |
61
+ | 35000 | 0.5657 | 61.0 | 192.0 | 0.5233 | 25.4774 | 98.126 | 12.285 | 42.5 | 91.5 |
62
+ | 37500 | 0.6061 | 61.5 | 174.0 | 0.5094 | 25.4635 | 98.18 | 12.292 | 45.5 | 87.0 |
63
+ | 40000 | 0.6465 | 60.0 | 188.0 | 0.4995 | 25.4422 | 98.262 | 12.302 | 41.75 | 105.5 |
64
+ | 42500 | 0.6869 | 59.0 | 173.0 | 0.4839 | 25.5034 | 98.026 | 12.273 | 42.0 | 189.0 |
65
+ | 45000 | 0.7273 | 54.5 | 153.0 | 0.4090 | 25.504 | 98.024 | 12.273 | 35.5 | 58.25 |
66
+ | 47500 | 0.7677 | 53.75 | 137.0 | 0.3895 | 25.5041 | 98.023 | 12.273 | 35.0 | 42.5 |
67
+ | 50000 | 0.8081 | 53.25 | 139.0 | 0.3769 | 25.4755 | 98.133 | 12.286 | 33.75 | 41.25 |
68
+ | 52500 | 0.8485 | 51.25 | 131.0 | 0.3691 | 25.4887 | 98.083 | 12.28 | 33.75 | 46.25 |
69
+ | 55000 | 0.8889 | 50.75 | 126.5 | 0.3558 | 25.4369 | 98.282 | 12.305 | 32.75 | 38.25 |
70
+ | 57500 | 0.9293 | 50.0 | 126.5 | 0.3515 | 25.4349 | 98.29 | 12.306 | 32.25 | 35.5 |
71
+ | 60000 | 0.9697 | 50.0 | 126.0 | 0.3490 | 25.4964 | 98.053 | 12.276 | 32.0 | 35.25 |
72
+ | 61875 | 1.0 | 49.75 | 126.0 | 0.3487 | 25.4844 | 98.099 | 12.282 | 32.0 | 35.5 |
73
 
74
  # Resource Usage Comparison
75
 
76
+ - VRAM Use: 7.7851 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>
 
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=kl, 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=kl, layer_mapper=layer-2))`
124
  - train_embeddings: `True`
125
+ - lr_scheduler: `<torch.optim.lr_scheduler.LambdaLR object at 0x7f040858e4a0>`
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.0",
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.0"
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=kl, attn_weight=25.0, layer_mapper=last_k_2, projector=linear/events.out.tfevents.1724428098.e3f806ea38c9 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16fbb362d14c94d3a3cb13cedfe887c8b74e3dd39f6d391a657e9740da20de10
3
+ size 29632525
logs/attn_loss_fn=kl, attn_weight=5, layer_mapper=last_k_2, projector=linear/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:033fe84f0bd0bba5bf9dd45ff2eee03ac4adfe41a5f982b5f3af0fac6c6a4733
3
  size 248894656
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fdc1478adecd4d0f345e4cb21aa8e410e0baa46fc83d2f568bb1a5faa3c7e0e
3
  size 248894656
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7878ce5e7937b22714760a9a4020f4ab482e7dae2b151ebfb1f220757f4d9dad
3
  size 1017899144
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c89a4760d8dfb0ab2cf68fb999f033a0711f837c29e9a593e16fb5eb523bb9e
3
  size 1017899144