lapp0 commited on
Commit
e3e9572
1 Parent(s): 70bea3d

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.8
8
+ results: []
9
+ ---
10
+
11
+ # distily_bench_obj_cross_v2.8
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: 198.4185
19
+ - eval_frwikippl: 100815.4219
20
+ - eval_zhwikippl: 1470416.875
21
+ - eval_tinystoriesppl: 10.3978
22
+ - eval_loss: 1.2095
23
+ - eval_runtime: 6.4972
24
+ - eval_samples_per_second: 76.957
25
+ - eval_steps_per_second: 9.697
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.004
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.6047 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 | 11624.0693 | 60523.7891 | 5.8780 | 6.5064 | 76.847 | 9.683 | 4963.9985 | 59716.3516 |
66
+ | 5000 | 0.1010 | 198.4185 | 100815.4219 | 1.2095 | 6.4972 | 76.957 | 9.697 | 10.3978 | 1470416.875 |
67
+ | 10000 | 0.2020 | 197.7357 | 97196.9141 | 1.2093 | 6.4818 | 77.139 | 9.72 | 10.2892 | 1447451.75 |
68
+ | 15000 | 0.3030 | 197.2080 | 98104.7109 | 1.2096 | 6.504 | 76.876 | 9.686 | 10.4405 | 1471986.875 |
69
+ | 20000 | 0.4040 | 195.2773 | 97005.4062 | 1.2094 | 6.4752 | 77.218 | 9.729 | 10.1995 | 1422946.875 |
70
+ | 25000 | 0.5051 | 196.9104 | 100058.5391 | 1.2099 | 6.4866 | 77.082 | 9.712 | 10.2727 | 1497336.25 |
71
+ | 30000 | 0.6061 | 195.8986 | 94337.375 | 1.2099 | 6.4887 | 77.057 | 9.709 | 10.3785 | 1435147.0 |
72
+ | 35000 | 0.7071 | 196.9180 | 96216.1797 | 1.2091 | 6.5251 | 76.627 | 9.655 | 10.3306 | 1444365.625 |
73
+ | 40000 | 0.8081 | 197.7434 | 97635.9688 | 1.2091 | 6.5177 | 76.715 | 9.666 | 10.3669 | 1472771.75 |
74
+ | 45000 | 0.9091 | 198.4416 | 98575.6953 | 1.2093 | 6.4898 | 77.044 | 9.708 | 10.3216 | 1521499.0 |
75
+ | 49500 | 1.0 | 197.6898 | 97801.2031 | 1.2091 | 6.4817 | 77.141 | 9.72 | 10.3293 | 1486192.625 |
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/dropout=0, learning_rate=0.004, optim=paged_lion_32bit, warmup_ratio=0, weight_decay=0/events.out.tfevents.1723939136.5f530b1cf724 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07c338a1fd830b13afe1a71e72f71aac479ca42ab2b9c6da129b1ec81d5f69ca
3
+ size 23672558
logs/dropout=0, learning_rate=0.004, optim=paged_lion_32bit, warmup_ratio=0, weight_decay=0/events.out.tfevents.1723941647.5f530b1cf724 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff2532727eafbcbfca2e38d714fe914f22d54e178bf0c32954d1c7e3f977aff8
3
+ size 312
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:77d7a01838273e1a4dc120915721f026f3960db0cf0ea5ffe6d92e0c8b5e6d5c
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:a260da7036cdb7537216ef516ce25f3b7bceeef1e496c19c0471d16b993fea9a
3
+ size 1017948104
vocab.json ADDED
The diff for this file is too large to render. See raw diff