lapp0 commited on
Commit
c6de641
·
verified ·
1 Parent(s): 4359153

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 | 25.1947 | 99.227 | 12.423 | 4060086272.0 | 71468255805440.0 |
48
- | 2500 | 0.0404 | 2496.0 | 25856.0 | 21.0926 | 25.2323 | 99.079 | 12.405 | 2576.0 | 47616.0 |
49
- | 5000 | 0.0808 | 486.0 | 3120.0 | 18.4104 | 25.2286 | 99.094 | 12.407 | 338.0 | 1104.0 |
50
- | 7500 | 0.1212 | 276.0 | 1296.0 | 17.0012 | 25.2472 | 99.021 | 12.397 | 254.0 | 247.0 |
51
- | 10000 | 0.1616 | 202.0 | 752.0 | 16.2103 | 25.2451 | 99.029 | 12.398 | 187.0 | 296.0 |
52
- | 12500 | 0.2020 | 145.0 | 536.0 | 15.0990 | 25.1956 | 99.224 | 12.423 | 131.0 | 173.0 |
53
- | 15000 | 0.2424 | 123.5 | 488.0 | 14.5275 | 25.2611 | 98.966 | 12.391 | 93.5 | 147.0 |
54
- | 17500 | 0.2828 | 95.5 | 376.0 | 14.1507 | 25.2295 | 99.09 | 12.406 | 76.0 | 134.0 |
55
- | 20000 | 0.3232 | 78.0 | 308.0 | 13.6430 | 25.2434 | 99.036 | 12.399 | 63.5 | 136.0 |
56
- | 22500 | 0.3636 | 66.5 | 218.0 | 13.1470 | 25.2484 | 99.016 | 12.397 | 49.75 | 83.0 |
57
- | 25000 | 0.4040 | 63.0 | 204.0 | 12.9643 | 25.2039 | 99.191 | 12.419 | 43.25 | 82.5 |
58
- | 27500 | 0.4444 | 59.75 | 196.0 | 12.8397 | 25.1629 | 99.353 | 12.439 | 40.0 | 76.5 |
59
- | 30000 | 0.4848 | 58.5 | 192.0 | 12.8201 | 25.1971 | 99.218 | 12.422 | 41.0 | 61.5 |
60
- | 32500 | 0.5253 | 58.25 | 170.0 | 12.7767 | 25.2324 | 99.079 | 12.405 | 39.5 | 58.75 |
61
- | 35000 | 0.5657 | 57.75 | 170.0 | 12.6563 | 25.193 | 99.234 | 12.424 | 36.25 | 44.75 |
62
- | 37500 | 0.6061 | 56.25 | 155.0 | 12.5982 | 25.2106 | 99.165 | 12.415 | 36.75 | 50.5 |
63
- | 40000 | 0.6465 | 55.5 | 163.0 | 12.5850 | 25.222 | 99.12 | 12.41 | 33.5 | 62.25 |
64
- | 42500 | 0.6869 | 54.75 | 151.0 | 12.5192 | 25.2047 | 99.188 | 12.418 | 34.25 | 50.75 |
65
- | 45000 | 0.7273 | 51.25 | 135.0 | 12.2871 | 25.2624 | 98.961 | 12.39 | 29.5 | 42.0 |
66
- | 47500 | 0.7677 | 51.0 | 125.5 | 12.2422 | 25.232 | 99.081 | 12.405 | 28.375 | 35.75 |
67
- | 50000 | 0.8081 | 50.5 | 124.5 | 12.2162 | 25.177 | 99.297 | 12.432 | 28.375 | 37.75 |
68
- | 52500 | 0.8485 | 49.25 | 121.0 | 12.1929 | 25.1839 | 99.27 | 12.429 | 28.5 | 34.5 |
69
- | 55000 | 0.8889 | 49.25 | 120.5 | 12.1608 | 25.2063 | 99.182 | 12.418 | 27.625 | 34.75 |
70
- | 57500 | 0.9293 | 48.75 | 119.5 | 12.1482 | 25.2548 | 98.991 | 12.394 | 27.5 | 32.75 |
71
- | 60000 | 0.9697 | 48.75 | 119.0 | 12.1412 | 25.2068 | 99.18 | 12.417 | 27.5 | 32.5 |
72
- | 61875 | 1.0 | 48.75 | 119.5 | 12.1400 | 25.2169 | 99.14 | 12.412 | 27.5 | 32.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>
@@ -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 0x7f146e3bfc10>`
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 | 25.7744 | 30.1836 | 82.826 | 10.37 | 4060086272.0 | 71468255805440.0 |
48
+ | 2500 | 0.0404 | 956.0 | 8192.0 | 6.1231 | 30.1407 | 82.944 | 10.385 | 660.0 | 6464.0 |
49
+ | 5000 | 0.0808 | 378.0 | 1880.0 | 5.0294 | 30.1017 | 83.052 | 10.398 | 270.0 | 290.0 |
50
+ | 7500 | 0.1212 | 230.0 | 820.0 | 4.5126 | 30.2328 | 82.692 | 10.353 | 201.0 | 174.0 |
51
+ | 10000 | 0.1616 | 173.0 | 628.0 | 4.2290 | 30.1373 | 82.954 | 10.386 | 152.0 | 172.0 |
52
+ | 12500 | 0.2020 | 127.5 | 482.0 | 3.8556 | 30.2081 | 82.759 | 10.361 | 106.5 | 156.0 |
53
+ | 15000 | 0.2424 | 109.0 | 436.0 | 3.6682 | 30.1834 | 82.827 | 10.37 | 87.5 | 146.0 |
54
+ | 17500 | 0.2828 | 93.5 | 348.0 | 3.5219 | 30.1772 | 82.844 | 10.372 | 73.0 | 120.5 |
55
+ | 20000 | 0.3232 | 75.5 | 272.0 | 3.3368 | 30.1313 | 82.97 | 10.388 | 63.5 | 134.0 |
56
+ | 22500 | 0.3636 | 67.5 | 217.0 | 3.1528 | 30.1675 | 82.871 | 10.375 | 52.75 | 77.5 |
57
+ | 25000 | 0.4040 | 63.75 | 196.0 | 3.0848 | 30.1989 | 82.784 | 10.365 | 45.5 | 77.0 |
58
+ | 27500 | 0.4444 | 58.0 | 205.0 | 3.0296 | 30.1798 | 82.837 | 10.371 | 40.25 | 79.5 |
59
+ | 30000 | 0.4848 | 60.5 | 198.0 | 3.0189 | 30.2126 | 82.747 | 10.36 | 43.0 | 64.5 |
60
+ | 32500 | 0.5253 | 59.0 | 172.0 | 3.0013 | 30.176 | 82.847 | 10.372 | 41.0 | 76.5 |
61
+ | 35000 | 0.5657 | 56.0 | 172.0 | 2.9437 | 30.2238 | 82.716 | 10.356 | 38.25 | 59.5 |
62
+ | 37500 | 0.6061 | 57.5 | 161.0 | 2.9153 | 30.1666 | 82.873 | 10.376 | 38.25 | 67.5 |
63
+ | 40000 | 0.6465 | 54.75 | 156.0 | 2.8906 | 30.1878 | 82.815 | 10.368 | 35.75 | 58.75 |
64
+ | 42500 | 0.6869 | 54.0 | 154.0 | 2.8788 | 30.1733 | 82.855 | 10.373 | 34.75 | 52.0 |
65
+ | 45000 | 0.7273 | 50.5 | 136.0 | 2.7766 | 30.1315 | 82.97 | 10.388 | 30.75 | 45.25 |
66
+ | 47500 | 0.7677 | 50.0 | 124.5 | 2.7505 | 30.4536 | 82.092 | 10.278 | 29.875 | 37.25 |
67
+ | 50000 | 0.8081 | 48.75 | 123.5 | 2.7359 | 30.1393 | 82.948 | 10.385 | 28.75 | 37.0 |
68
+ | 52500 | 0.8485 | 48.25 | 120.5 | 2.7269 | 30.1607 | 82.889 | 10.378 | 28.875 | 35.5 |
69
+ | 55000 | 0.8889 | 48.0 | 118.5 | 2.7099 | 30.2151 | 82.74 | 10.359 | 27.875 | 34.25 |
70
+ | 57500 | 0.9293 | 47.5 | 118.0 | 2.7048 | 30.1727 | 82.856 | 10.374 | 27.625 | 33.0 |
71
+ | 60000 | 0.9697 | 47.5 | 117.5 | 2.7013 | 30.2816 | 82.558 | 10.336 | 27.5 | 32.75 |
72
+ | 61875 | 1.0 | 47.5 | 117.5 | 2.7006 | 30.27 | 82.59 | 10.34 | 27.625 | 33.0 |
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=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 0x7fbd702f4d60>`
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/events.out.tfevents.1724372154.f383272e719b ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9f829106d5a34481a6d8357b5b93b1d0cf689b342434e62d81d05bfd5abab12
3
+ size 29632530
logs/attn_loss_fn=cos, attn_weight=5, layer_mapper=last_k_2, 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:75c75558e3219d2a7e4ffa0dd1ea389b860b61e034e98d4f60cf55988a155e3c
3
  size 248894656
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4a972c54e417c7197bd9968ddd13c8ce2ee329876ee772f1bce5dc12273cdf8
3
  size 248894656
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:725f2af79ffc49c9532887b875375f374be964b02363ef1ea734c7b63e164008
3
  size 1017899144
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fde8414a41236e4d37875a5c20c33c02761432d024649e3d004bf722974cfae4
3
  size 1017899144