lapp0 commited on
Commit
2095cb5
·
verified ·
1 Parent(s): 9a6e8b3

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 | 25.7744 | 25.131 | 99.479 | 12.455 | 4060086272.0 | 71468255805440.0 |
48
- | 2500 | 0.0404 | 960.0 | 8064.0 | 6.1231 | 25.2285 | 99.094 | 12.407 | 652.0 | 6816.0 |
49
- | 5000 | 0.0808 | 380.0 | 1896.0 | 5.0307 | 25.2563 | 98.985 | 12.393 | 270.0 | 286.0 |
50
- | 7500 | 0.1212 | 230.0 | 824.0 | 4.5129 | 25.128 | 99.491 | 12.456 | 202.0 | 174.0 |
51
- | 10000 | 0.1616 | 171.0 | 628.0 | 4.2261 | 25.2755 | 98.91 | 12.384 | 151.0 | 173.0 |
52
- | 12500 | 0.2020 | 126.5 | 482.0 | 3.8533 | 25.2021 | 99.198 | 12.42 | 106.0 | 156.0 |
53
- | 15000 | 0.2424 | 109.5 | 430.0 | 3.6650 | 25.2487 | 99.015 | 12.397 | 88.0 | 155.0 |
54
- | 17500 | 0.2828 | 93.0 | 350.0 | 3.5198 | 25.1751 | 99.305 | 12.433 | 73.5 | 119.0 |
55
- | 20000 | 0.3232 | 77.5 | 282.0 | 3.3352 | 25.2573 | 98.981 | 12.392 | 63.25 | 135.0 |
56
- | 22500 | 0.3636 | 66.5 | 213.0 | 3.1511 | 25.1782 | 99.292 | 12.431 | 50.75 | 80.0 |
57
- | 25000 | 0.4040 | 63.25 | 197.0 | 3.0803 | 25.2258 | 99.105 | 12.408 | 44.5 | 80.5 |
58
- | 27500 | 0.4444 | 58.5 | 212.0 | 3.0299 | 25.2357 | 99.066 | 12.403 | 41.75 | 68.5 |
59
- | 30000 | 0.4848 | 58.5 | 202.0 | 3.0169 | 25.2481 | 99.017 | 12.397 | 43.25 | 91.5 |
60
- | 32500 | 0.5253 | 58.75 | 173.0 | 3.0014 | 25.2575 | 98.981 | 12.392 | 41.5 | 62.75 |
61
- | 35000 | 0.5657 | 57.25 | 164.0 | 2.9385 | 25.2523 | 99.001 | 12.395 | 38.0 | 49.0 |
62
- | 37500 | 0.6061 | 57.0 | 157.0 | 2.9163 | 25.1539 | 99.388 | 12.443 | 39.25 | 61.75 |
63
- | 40000 | 0.6465 | 54.75 | 172.0 | 2.8984 | 25.2388 | 99.054 | 12.402 | 35.0 | 67.5 |
64
- | 42500 | 0.6869 | 53.0 | 151.0 | 2.8789 | 25.2418 | 99.042 | 12.4 | 35.25 | 49.75 |
65
- | 45000 | 0.7273 | 49.5 | 134.0 | 2.7753 | 25.2511 | 99.005 | 12.395 | 30.25 | 42.25 |
66
- | 47500 | 0.7677 | 50.0 | 124.0 | 2.7506 | 25.2475 | 99.02 | 12.397 | 29.5 | 38.75 |
67
- | 50000 | 0.8081 | 49.0 | 124.5 | 2.7361 | 25.2146 | 99.149 | 12.413 | 28.75 | 38.25 |
68
- | 52500 | 0.8485 | 48.25 | 120.0 | 2.7262 | 25.1855 | 99.264 | 12.428 | 29.125 | 35.0 |
69
- | 55000 | 0.8889 | 47.75 | 117.0 | 2.7099 | 25.2332 | 99.076 | 12.404 | 28.25 | 33.0 |
70
- | 57500 | 0.9293 | 47.25 | 117.5 | 2.7045 | 25.2693 | 98.934 | 12.387 | 28.0 | 32.5 |
71
- | 60000 | 0.9697 | 47.25 | 116.5 | 2.7013 | 25.2549 | 98.991 | 12.394 | 27.875 | 32.25 |
72
- | 61875 | 1.0 | 47.25 | 116.5 | 2.7009 | 25.2212 | 99.123 | 12.41 | 28.0 | 32.25 |
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>
@@ -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=5, 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=5, loss_fn=cos, layer_mapper=layer-2))`
124
  - train_embeddings: `True`
125
- - lr_scheduler: `<torch.optim.lr_scheduler.LambdaLR object at 0x7f14d416e830>`
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.1
158
- - Pytorch 2.5.0.dev20240821+cu121
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 | 30.2746 | 82.577 | 10.339 | 4060086272.0 | 71468255805440.0 |
48
+ | 2500 | 0.0404 | 2040.0 | 20608.0 | 20.8472 | 30.2064 | 82.764 | 10.362 | 1472.0 | 60160.0 |
49
+ | 5000 | 0.0808 | 488.0 | 3120.0 | 18.4130 | 30.6595 | 81.541 | 10.209 | 338.0 | 1112.0 |
50
+ | 7500 | 0.1212 | 276.0 | 1296.0 | 17.0012 | 30.289 | 82.538 | 10.334 | 255.0 | 249.0 |
51
+ | 10000 | 0.1616 | 202.0 | 756.0 | 16.2078 | 30.2709 | 82.588 | 10.34 | 188.0 | 304.0 |
52
+ | 12500 | 0.2020 | 145.0 | 540.0 | 15.0996 | 30.2185 | 82.731 | 10.358 | 131.0 | 176.0 |
53
+ | 15000 | 0.2424 | 123.5 | 490.0 | 14.5283 | 30.2533 | 82.636 | 10.346 | 93.0 | 146.0 |
54
+ | 17500 | 0.2828 | 95.0 | 376.0 | 14.1520 | 30.2403 | 82.671 | 10.35 | 75.5 | 137.0 |
55
+ | 20000 | 0.3232 | 79.0 | 306.0 | 13.6446 | 30.1204 | 83.0 | 10.392 | 63.25 | 130.0 |
56
+ | 22500 | 0.3636 | 66.0 | 219.0 | 13.1452 | 30.158 | 82.897 | 10.379 | 50.0 | 80.5 |
57
+ | 25000 | 0.4040 | 63.0 | 200.0 | 12.9619 | 30.1269 | 82.982 | 10.389 | 43.75 | 77.5 |
58
+ | 27500 | 0.4444 | 59.0 | 197.0 | 12.8388 | 30.3214 | 82.45 | 10.323 | 40.5 | 73.5 |
59
+ | 30000 | 0.4848 | 59.5 | 204.0 | 12.8191 | 30.3164 | 82.464 | 10.324 | 40.5 | 70.5 |
60
+ | 32500 | 0.5253 | 58.25 | 176.0 | 12.7778 | 30.2231 | 82.718 | 10.356 | 38.75 | 61.75 |
61
+ | 35000 | 0.5657 | 58.25 | 169.0 | 12.6562 | 30.35 | 82.372 | 10.313 | 36.5 | 45.5 |
62
+ | 37500 | 0.6061 | 56.75 | 158.0 | 12.6014 | 30.3685 | 82.322 | 10.307 | 37.0 | 50.5 |
63
+ | 40000 | 0.6465 | 55.0 | 156.0 | 12.5674 | 30.3598 | 82.346 | 10.31 | 33.75 | 59.5 |
64
+ | 42500 | 0.6869 | 54.5 | 147.0 | 12.5141 | 30.3209 | 82.451 | 10.323 | 34.25 | 52.5 |
65
+ | 45000 | 0.7273 | 50.75 | 135.0 | 12.2860 | 30.244 | 82.661 | 10.349 | 29.5 | 41.75 |
66
+ | 47500 | 0.7677 | 50.5 | 127.0 | 12.2408 | 30.3366 | 82.409 | 10.318 | 28.875 | 35.0 |
67
+ | 50000 | 0.8081 | 50.25 | 125.5 | 12.2160 | 30.2563 | 82.627 | 10.345 | 28.625 | 39.0 |
68
+ | 52500 | 0.8485 | 49.25 | 123.0 | 12.1936 | 30.2253 | 82.712 | 10.356 | 28.5 | 35.5 |
69
+ | 55000 | 0.8889 | 49.25 | 121.0 | 12.1620 | 30.1898 | 82.81 | 10.368 | 27.875 | 35.0 |
70
+ | 57500 | 0.9293 | 48.75 | 120.0 | 12.1488 | 30.2559 | 82.628 | 10.345 | 27.75 | 33.5 |
71
+ | 60000 | 0.9697 | 48.75 | 119.5 | 12.1404 | 30.1517 | 82.914 | 10.381 | 27.625 | 33.25 |
72
+ | 61875 | 1.0 | 48.75 | 120.0 | 12.1402 | 30.2129 | 82.746 | 10.36 | 27.625 | 33.5 |
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>
 
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 0x7fbd2823f2b0>`
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.1",
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.1"
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=last_k_2, projector=orthogonal/completed.flag ADDED
File without changes
logs/attn_loss_fn=cos, attn_weight=5, layer_mapper=last, projector=orthogonal/events.out.tfevents.1724382405.f383272e719b ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:def1926856c65a4d22407bbad2ec49686f4e49aec7643a8445809c56bc7d1697
3
+ size 29632523
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:867d38910c544ebe94a0a1365511001a27c3b8b68ef244f5851770b3ea52b01f
3
  size 248894656
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9de163c64545e506410b51e708d3647559bf19be3b3dd504e77fb8c3b3d3051a
3
  size 248894656
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cfc82283cd56cebafe8e7032bcd35f00d46c1a33e3d44b89d5c422804675d400
3
  size 1017899144
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e24bd773ab39cd8217ed631d6db55bc6c7a82ad2f423d1b2d0445e7de80f459
3
  size 1017899144