lapp0 commited on
Commit
1b00f4f
·
verified ·
1 Parent(s): f47f585

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.1005 | 99.6 | 12.47 | 4060086272.0 | 71468255805440.0 |
48
- | 2500 | 0.0404 | 964.0 | 7552.0 | 6.1230 | 25.2379 | 99.057 | 12.402 | 612.0 | 7936.0 |
49
- | 5000 | 0.0808 | 380.0 | 1896.0 | 5.0307 | 25.2556 | 98.988 | 12.393 | 270.0 | 286.0 |
50
- | 7500 | 0.1212 | 230.0 | 824.0 | 4.5126 | 25.2187 | 99.133 | 12.411 | 201.0 | 174.0 |
51
- | 10000 | 0.1616 | 171.0 | 628.0 | 4.2264 | 25.2809 | 98.889 | 12.381 | 150.0 | 174.0 |
52
- | 12500 | 0.2020 | 127.0 | 482.0 | 3.8535 | 25.192 | 99.238 | 12.425 | 106.0 | 156.0 |
53
- | 15000 | 0.2424 | 109.5 | 432.0 | 3.6645 | 25.2166 | 99.141 | 12.412 | 88.0 | 155.0 |
54
- | 17500 | 0.2828 | 93.0 | 350.0 | 3.5201 | 25.2663 | 98.946 | 12.388 | 73.5 | 120.5 |
55
- | 20000 | 0.3232 | 75.5 | 284.0 | 3.3344 | 25.2826 | 98.882 | 12.38 | 63.75 | 143.0 |
56
- | 22500 | 0.3636 | 67.0 | 213.0 | 3.1515 | 25.2744 | 98.914 | 12.384 | 52.0 | 81.0 |
57
- | 25000 | 0.4040 | 62.5 | 196.0 | 3.0761 | 25.2089 | 99.171 | 12.416 | 44.75 | 100.5 |
58
- | 27500 | 0.4444 | 58.5 | 192.0 | 3.0319 | 25.2844 | 98.875 | 12.379 | 40.75 | 69.0 |
59
- | 30000 | 0.4848 | 59.25 | 194.0 | 3.0142 | 25.2883 | 98.86 | 12.377 | 45.0 | 72.5 |
60
- | 32500 | 0.5253 | 59.75 | 173.0 | 2.9997 | 25.2846 | 98.874 | 12.379 | 39.75 | 62.25 |
61
- | 35000 | 0.5657 | 56.5 | 172.0 | 2.9418 | 25.2601 | 98.97 | 12.391 | 37.25 | 60.0 |
62
- | 37500 | 0.6061 | 57.25 | 155.0 | 2.9178 | 25.2746 | 98.914 | 12.384 | 38.0 | 60.5 |
63
- | 40000 | 0.6465 | 55.75 | 166.0 | 2.8984 | 25.2563 | 98.985 | 12.393 | 35.75 | 67.0 |
64
- | 42500 | 0.6869 | 54.75 | 150.0 | 2.8788 | 25.2709 | 98.928 | 12.386 | 35.25 | 58.0 |
65
- | 45000 | 0.7273 | 50.25 | 134.0 | 2.7761 | 25.1686 | 99.33 | 12.436 | 30.25 | 42.5 |
66
- | 47500 | 0.7677 | 50.5 | 124.5 | 2.7511 | 25.2315 | 99.083 | 12.405 | 29.125 | 38.0 |
67
- | 50000 | 0.8081 | 49.0 | 125.0 | 2.7362 | 25.2205 | 99.126 | 12.411 | 28.375 | 40.25 |
68
- | 52500 | 0.8485 | 48.25 | 121.0 | 2.7264 | 25.2403 | 99.048 | 12.401 | 29.0 | 36.25 |
69
- | 55000 | 0.8889 | 48.0 | 118.0 | 2.7109 | 25.1954 | 99.224 | 12.423 | 27.875 | 33.75 |
70
- | 57500 | 0.9293 | 47.5 | 117.5 | 2.7053 | 25.258 | 98.979 | 12.392 | 27.625 | 32.5 |
71
- | 60000 | 0.9697 | 47.5 | 117.0 | 2.7012 | 25.1729 | 99.313 | 12.434 | 27.5 | 32.5 |
72
- | 61875 | 1.0 | 47.5 | 117.5 | 2.7010 | 25.2633 | 98.958 | 12.39 | 27.625 | 32.5 |
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 0x7f13f44e4550>`
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.1483 | 82.923 | 10.382 | 4060086272.0 | 71468255805440.0 |
48
+ | 2500 | 0.0404 | 2192.0 | 21888.0 | 20.8264 | 30.1218 | 82.996 | 10.391 | 1280.0 | 91136.0 |
49
+ | 5000 | 0.0808 | 486.0 | 3120.0 | 18.4124 | 30.4931 | 81.986 | 10.265 | 338.0 | 1128.0 |
50
+ | 7500 | 0.1212 | 276.0 | 1296.0 | 17.0012 | 30.1359 | 82.958 | 10.386 | 255.0 | 250.0 |
51
+ | 10000 | 0.1616 | 202.0 | 756.0 | 16.2078 | 30.1737 | 82.854 | 10.373 | 189.0 | 310.0 |
52
+ | 12500 | 0.2020 | 145.0 | 540.0 | 15.1002 | 30.1534 | 82.909 | 10.38 | 130.0 | 177.0 |
53
+ | 15000 | 0.2424 | 123.5 | 488.0 | 14.5297 | 30.1065 | 83.039 | 10.396 | 93.0 | 149.0 |
54
+ | 17500 | 0.2828 | 95.0 | 376.0 | 14.1518 | 30.1635 | 82.882 | 10.377 | 75.5 | 137.0 |
55
+ | 20000 | 0.3232 | 79.0 | 308.0 | 13.6434 | 30.1294 | 82.976 | 10.389 | 63.0 | 147.0 |
56
+ | 22500 | 0.3636 | 67.0 | 217.0 | 13.1501 | 30.1133 | 83.02 | 10.394 | 51.0 | 83.5 |
57
+ | 25000 | 0.4040 | 63.75 | 203.0 | 12.9684 | 30.2115 | 82.75 | 10.36 | 43.75 | 69.5 |
58
+ | 27500 | 0.4444 | 59.0 | 195.0 | 12.8408 | 30.1817 | 82.832 | 10.371 | 40.0 | 76.0 |
59
+ | 30000 | 0.4848 | 59.0 | 194.0 | 12.8237 | 30.1805 | 82.835 | 10.371 | 41.5 | 55.75 |
60
+ | 32500 | 0.5253 | 58.5 | 174.0 | 12.7748 | 30.1793 | 82.838 | 10.371 | 38.25 | 61.25 |
61
+ | 35000 | 0.5657 | 57.25 | 171.0 | 12.6602 | 30.1387 | 82.95 | 10.385 | 36.25 | 43.75 |
62
+ | 37500 | 0.6061 | 56.25 | 159.0 | 12.5996 | 30.2154 | 82.739 | 10.359 | 36.75 | 49.5 |
63
+ | 40000 | 0.6465 | 55.0 | 156.0 | 12.5526 | 30.1918 | 82.804 | 10.367 | 33.75 | 58.5 |
64
+ | 42500 | 0.6869 | 54.5 | 148.0 | 12.4990 | 30.1749 | 82.85 | 10.373 | 34.0 | 48.25 |
65
+ | 45000 | 0.7273 | 50.75 | 134.0 | 12.2851 | 30.1611 | 82.888 | 10.378 | 29.0 | 42.0 |
66
+ | 47500 | 0.7677 | 51.25 | 126.5 | 12.2410 | 30.2021 | 82.776 | 10.364 | 28.75 | 36.0 |
67
+ | 50000 | 0.8081 | 50.5 | 124.0 | 12.2169 | 30.166 | 82.875 | 10.376 | 28.5 | 38.25 |
68
+ | 52500 | 0.8485 | 49.25 | 122.0 | 12.1910 | 30.1439 | 82.936 | 10.384 | 28.25 | 34.5 |
69
+ | 55000 | 0.8889 | 49.25 | 120.5 | 12.1604 | 30.1149 | 83.015 | 10.394 | 27.625 | 35.0 |
70
+ | 57500 | 0.9293 | 49.25 | 120.5 | 12.1473 | 30.1142 | 83.017 | 10.394 | 27.75 | 33.75 |
71
+ | 60000 | 0.9697 | 49.0 | 119.5 | 12.1403 | 30.143 | 82.938 | 10.384 | 27.625 | 33.5 |
72
+ | 61875 | 1.0 | 49.0 | 120.0 | 12.1391 | 30.2511 | 82.642 | 10.347 | 27.625 | 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>
 
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 0x7fbeac4d9c00>`
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=all, projector=orthogonal/completed.flag ADDED
File without changes
logs/attn_loss_fn=cos, attn_weight=5, layer_mapper=last_k_2, projector=orthogonal/events.out.tfevents.1724362018.f383272e719b ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc9fcf3e5a6aed5dd8fbd58827ee0a7c53dfa18c06fc451ac98e24a2b2cbe2dd
3
+ size 29632527
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:aec8debc139603111c41d4fac2092835f2c3e4a8ecdbd0865f4c01b06c0b27dd
3
  size 248894656
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13d7caf0f4b291ee214f983e647c979a2223aef8bf50810a3b688c0035ff76b4
3
  size 248894656
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a86cf42050696fe0f3ac4102f572b85ef26de5fc5903dc46db8a7e9db5cb1b23
3
  size 1017899144
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:454dad5e82d72dde7165008ed5a657a5c1ccdf4f12c893884ec45746773ab84e
3
  size 1017899144