lapp0 commited on
Commit
cfcbd4f
·
verified ·
1 Parent(s): 711e41e

End of training

Browse files
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: roneneldan/TinyStories-33M
3
+ library_name: Distily
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: distily_bench_obj_cross_v2.9
8
+ results: []
9
+ ---
10
+
11
+ # distily_bench_obj_cross_v2.9
12
+
13
+ This student model is distilled from the teacher model [roneneldan/TinyStories-33M](https://huggingface.co/roneneldan/TinyStories-33M) using the dataset (unspecified).
14
+
15
+ The [Distily](https://github.com/lapp0/distily) library was used for this distillation.
16
+
17
+ It achieves the following results on the evaluation set:
18
+ - eval_enwikippl: 324.7383
19
+ - eval_frwikippl: 357916.6562
20
+ - eval_zhwikippl: 16872236.0
21
+ - eval_tinystoriesppl: 10.5821
22
+ - eval_loss: 1.0786
23
+ - eval_runtime: 6.4992
24
+ - eval_samples_per_second: 76.933
25
+ - eval_steps_per_second: 9.694
26
+
27
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
28
+ should probably proofread and complete it, then remove this comment.
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+ -->
42
+
43
+ ## Training procedure
44
+
45
+ ### Training hyperparameters
46
+
47
+ The following hyperparameters were used during training:
48
+ - distillation_objective: DistillationObjective(logits_loss_component=LossComponent(label=logits, weight=1, loss_fn=kl, layer_mapper=None, projector=None), hs_loss_component=LossComponent(label=hs, weight=0, loss_fn=None, layer_mapper=None, projector=None), attn_loss_component=LossComponent(label=attn, weight=0, loss_fn=None, layer_mapper=None, projector=None))
49
+ - train_embeddings: True
50
+ - learning_rate: 0.0004
51
+ - train_batch_size: 1
52
+ - eval_batch_size: 8
53
+ - seed: 42
54
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
55
+ - lr_scheduler_type: linear
56
+ - num_epochs: 1.0
57
+
58
+ ### Resource Usage
59
+ Peak GPU Memory: 6.6062 GB
60
+
61
+ ### Eval-Phase Metrics
62
+ | step | epoch | enwikippl | frwikippl | loss | runtime | samples_per_second | steps_per_second | tinystoriesppl | zhwikippl |
63
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
64
+ | **teacher eval** | | 169.9865 | 47377.9414 | | | | | 3.9789 | 4998.1294 |
65
+ | 0 | 0 | 60092.5469 | 59534.5039 | 6.5732 | 6.5296 | 76.574 | 9.648 | 63003.9648 | 58113.1992 |
66
+ | 5000 | 0.1010 | 324.7383 | 357916.6562 | 1.0786 | 6.4992 | 76.933 | 9.694 | 10.5821 | 16872236.0 |
67
+ | 10000 | 0.2020 | 356.0557 | 413217.4688 | 1.1040 | 6.4959 | 76.971 | 9.698 | 12.1085 | 21984360.0 |
68
+ | 15000 | 0.3030 | 355.4769 | 399032.125 | 1.1187 | 6.4929 | 77.008 | 9.703 | 12.1451 | 12460803.0 |
69
+ | 20000 | 0.4040 | 334.4266 | 447667.6875 | 1.1281 | 6.5143 | 76.754 | 9.671 | 10.0140 | 25472600.0 |
70
+ | 25000 | 0.5051 | 302.2480 | 303727.4688 | 1.0864 | 6.5193 | 76.696 | 9.664 | 10.7403 | 14773035.0 |
71
+ | 30000 | 0.6061 | 286.7610 | 294875.0312 | 1.0858 | 6.4951 | 76.981 | 9.7 | 10.0074 | 11514604.0 |
72
+ | 35000 | 0.7071 | 285.1770 | 263654.5938 | 1.0990 | 6.4992 | 76.933 | 9.694 | 10.3828 | 10835058.0 |
73
+ | 40000 | 0.8081 | 279.8266 | 256096.3594 | 1.0910 | 6.5095 | 76.811 | 9.678 | 10.2142 | 11009884.0 |
74
+ | 45000 | 0.9091 | 281.9699 | 274029.3125 | 1.0897 | 6.5441 | 76.405 | 9.627 | 10.2510 | 11984763.0 |
75
+ | 49500 | 1.0 | 282.4946 | 274183.8125 | 1.0899 | 6.5603 | 76.216 | 9.603 | 10.2595 | 12058527.0 |
76
+
77
+ ### Framework versions
78
+ - Distily 0.2.0
79
+ - Transformers 4.44.0
80
+ - Pytorch 2.3.0
81
+ - Datasets 2.21.0
config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "roneneldan/TinyStories-33M",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPTNeoForCausalLM"
6
+ ],
7
+ "attention_dropout": 0,
8
+ "attention_layers": [
9
+ "global",
10
+ "local",
11
+ "global",
12
+ "local"
13
+ ],
14
+ "attention_types": [
15
+ [
16
+ [
17
+ "global",
18
+ "local"
19
+ ],
20
+ 2
21
+ ]
22
+ ],
23
+ "bos_token_id": 50256,
24
+ "classifier_dropout": 0.1,
25
+ "embed_dropout": 0,
26
+ "eos_token_id": 50256,
27
+ "gradient_checkpointing": false,
28
+ "hidden_size": 768,
29
+ "initializer_range": 0.02,
30
+ "intermediate_size": null,
31
+ "layer_norm_epsilon": 1e-05,
32
+ "max_position_embeddings": 2048,
33
+ "model_type": "gpt_neo",
34
+ "num_heads": 16,
35
+ "num_layers": 4,
36
+ "quantization_config": {
37
+ "_load_in_4bit": false,
38
+ "_load_in_8bit": true,
39
+ "bnb_4bit_compute_dtype": "float32",
40
+ "bnb_4bit_quant_storage": "uint8",
41
+ "bnb_4bit_quant_type": "fp4",
42
+ "bnb_4bit_use_double_quant": false,
43
+ "llm_int8_enable_fp32_cpu_offload": false,
44
+ "llm_int8_has_fp16_weight": false,
45
+ "llm_int8_skip_modules": null,
46
+ "llm_int8_threshold": 6.0,
47
+ "load_in_4bit": false,
48
+ "load_in_8bit": true,
49
+ "quant_method": "bitsandbytes"
50
+ },
51
+ "resid_dropout": 0,
52
+ "summary_activation": null,
53
+ "summary_first_dropout": 0.1,
54
+ "summary_proj_to_labels": true,
55
+ "summary_type": "cls_index",
56
+ "summary_use_proj": true,
57
+ "torch_dtype": "bfloat16",
58
+ "transformers_version": "4.44.0",
59
+ "use_cache": true,
60
+ "vocab_size": 50257,
61
+ "window_size": 256
62
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "transformers_version": "4.44.0"
6
+ }
logs/copy_teacher_modules=__, dropout=0, learning_rate=0.0004, warmup_ratio=0, weight_decay=0/events.out.tfevents.1723945620.5f530b1cf724 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d924f66bcdfb2daa2d7375eb8420aa0267774daf02c3024a4685ce1e50326cf
3
+ size 23672557
logs/copy_teacher_modules=__, dropout=0, learning_rate=0.0004, warmup_ratio=0, weight_decay=0/events.out.tfevents.1723949128.5f530b1cf724 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:475b00c4d2bb61b9ca3a194aa9291274dd55b954bb43bbada719413cdd0dc886
3
+ size 312
logs/copy_teacher_modules=__, dropout=0, learning_rate=0.004, warmup_ratio=0, weight_decay=0/events.out.tfevents.1723944707.5f530b1cf724 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1a9e44a06cd845f331e9290f899a7d60cb011619a930299f206101012fd096a
3
+ size 2365249
logs/copy_teacher_modules=__, dropout=0, learning_rate=0.004, warmup_ratio=0, weight_decay=0/events.out.tfevents.1723945180.5f530b1cf724 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1acfbac4a5544068cfe2b5ad9b37840af83a5d2b7f79ebc6da18dabd6765c44
3
+ size 358566
logs/copy_teacher_modules=__, dropout=0, learning_rate=0.004, warmup_ratio=0, weight_decay=0/events.out.tfevents.1723945384.5f530b1cf724 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:039e8abddaddf5f57e5662902a7c41b5dfccfbedb45623ce9ebad308c64f4785
3
+ size 535090
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72d926cfaaef9cc769840b758a5249acf11db15a4915dd82333b08d5b8e590ce
3
+ size 137033984
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|endoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<|endoftext|>",
17
+ "unk_token": {
18
+ "content": "<|endoftext|>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "50256": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ }
13
+ },
14
+ "bos_token": "<|endoftext|>",
15
+ "clean_up_tokenization_spaces": true,
16
+ "eos_token": "<|endoftext|>",
17
+ "errors": "replace",
18
+ "model_max_length": 2048,
19
+ "pad_token": "<|endoftext|>",
20
+ "tokenizer_class": "GPT2Tokenizer",
21
+ "unk_token": "<|endoftext|>"
22
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dec9a785357983ea59aaacae23b2f7d4d6ac4274c758de9ced6c113fa663be0a
3
+ size 1017948040
vocab.json ADDED
The diff for this file is too large to render. See raw diff