lapp0 commited on
Commit
f9a18ee
·
verified ·
1 Parent(s): dec64b4

End of training

Browse files
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: gpt2
3
+ library_name: Distily
4
+ license: mit
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: distily_bench_obj_cross_v2.10_gpt2
9
+ results: []
10
+ ---
11
+
12
+ # distily_bench_obj_cross_v2.10_gpt2
13
+
14
+ This student model is distilled from the teacher model [gpt2](https://huggingface.co/gpt2) using the dataset (unspecified).
15
+
16
+ The [Distily](https://github.com/lapp0/distily) library was used for this distillation.
17
+
18
+ It achieves the following results on the evaluation set:
19
+ - eval_enwikippl: 3656.4097
20
+ - eval_frwikippl: 998935.5
21
+ - eval_zhwikippl: 3651930.25
22
+ - eval_tinystoriesppl: 853.0071
23
+ - eval_loss: 4.7666
24
+ - eval_runtime: 21.3363
25
+ - eval_samples_per_second: 46.868
26
+ - eval_steps_per_second: 11.717
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment.
30
+
31
+ ## Model description
32
+
33
+ More information needed
34
+
35
+ ## Intended uses & limitations
36
+
37
+ More information needed
38
+
39
+ ## Training and evaluation data
40
+
41
+ More information needed
42
+ -->
43
+
44
+ ## Training procedure
45
+
46
+ ### Training hyperparameters
47
+
48
+ The following hyperparameters were used during training:
49
+ - 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))
50
+ - train_embeddings: True
51
+ - learning_rate: 1e-06
52
+ - train_batch_size: 1
53
+ - eval_batch_size: 4
54
+ - seed: 42
55
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
56
+ - lr_scheduler_type: linear
57
+ - num_epochs: 1.0
58
+
59
+ ### Resource Usage
60
+ Peak GPU Memory: 3.9285 GB
61
+
62
+ ### Eval-Phase Metrics
63
+ | step | epoch | enwikippl | frwikippl | loss | runtime | samples_per_second | steps_per_second | tinystoriesppl | zhwikippl |
64
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
65
+ | **teacher eval** | | 270.2348 | 76.8142 | | | | | 671.1238 | 22.8030 |
66
+ | 0 | 0 | 154372.75 | 3250976718848.0 | 19.5745 | 21.9663 | 45.524 | 11.381 | 81.0696 | 3865309085696.0 |
67
+ | 5000 | 0.0505 | 3591.7734 | 994582.8125 | 4.7672 | 21.3712 | 46.792 | 11.698 | 830.4290 | 3622816.25 |
68
+ | 10000 | 0.1010 | 3615.9900 | 994303.0 | 4.7657 | 21.1745 | 47.227 | 11.807 | 836.8727 | 3641715.75 |
69
+ | 15000 | 0.1515 | 3671.0986 | 1001083.1875 | 4.7665 | 21.6571 | 46.174 | 11.544 | 857.9221 | 3659244.25 |
70
+ | 20000 | 0.2020 | 3636.2166 | 997810.125 | 4.7657 | 21.4908 | 46.532 | 11.633 | 844.9362 | 3650955.25 |
71
+ | 25000 | 0.2525 | 3617.9526 | 996265.0 | 4.7661 | 21.7815 | 45.91 | 11.478 | 837.2188 | 3639771.25 |
72
+ | 30000 | 0.3030 | 3649.9016 | 997669.25 | 4.7663 | 21.6219 | 46.249 | 11.562 | 851.5274 | 3646090.75 |
73
+ | 35000 | 0.3535 | 3636.2166 | 998372.625 | 4.7663 | 21.533 | 46.44 | 11.61 | 845.2155 | 3649983.75 |
74
+ | 40000 | 0.4040 | 3632.8369 | 998090.875 | 4.7660 | 21.5429 | 46.419 | 11.605 | 843.6451 | 3651930.25 |
75
+ | 45000 | 0.4545 | 3662.2236 | 1001083.1875 | 4.7662 | 21.5033 | 46.505 | 11.626 | 855.9031 | 3661199.0 |
76
+ | 50000 | 0.5051 | 3627.9138 | 997810.125 | 4.7659 | 21.4372 | 46.648 | 11.662 | 841.2076 | 3650955.25 |
77
+ | 55000 | 0.5556 | 3650.6084 | 999075.5625 | 4.7662 | 21.5382 | 46.429 | 11.607 | 850.9644 | 3649983.75 |
78
+ | 60000 | 0.6061 | 3654.9941 | 999216.5625 | 4.7663 | 21.743 | 45.992 | 11.498 | 852.0205 | 3650955.25 |
79
+ | 65000 | 0.6566 | 3649.6199 | 998090.875 | 4.7664 | 21.5302 | 46.446 | 11.612 | 851.1754 | 3649009.25 |
80
+ | 70000 | 0.7071 | 3655.5625 | 998935.5 | 4.7663 | 21.6494 | 46.191 | 11.548 | 852.5842 | 3650955.25 |
81
+ | 75000 | 0.7576 | 3652.7292 | 999497.75 | 4.7662 | 21.745 | 45.988 | 11.497 | 851.7739 | 3649009.25 |
82
+ | 80000 | 0.8081 | 3649.6199 | 998231.75 | 4.7664 | 21.5478 | 46.408 | 11.602 | 851.4572 | 3649983.75 |
83
+ | 85000 | 0.8586 | 3654.9941 | 998794.5 | 4.7664 | 21.5285 | 46.45 | 11.613 | 852.6545 | 3649983.75 |
84
+ | 90000 | 0.9091 | 3658.1118 | 998653.5625 | 4.7664 | 21.5544 | 46.394 | 11.599 | 853.7831 | 3650955.25 |
85
+ | 95000 | 0.9596 | 3656.9780 | 999497.75 | 4.7665 | 21.3927 | 46.745 | 11.686 | 852.7249 | 3649983.75 |
86
+ | 99000 | 1.0 | 3656.4097 | 998935.5 | 4.7666 | 21.3363 | 46.868 | 11.717 | 853.0071 | 3651930.25 |
87
+
88
+ ### Framework versions
89
+ - Distily 0.2.0
90
+ - Transformers 4.44.0
91
+ - Pytorch 2.3.0
92
+ - Datasets 2.21.0
config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "gpt2",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 768,
16
+ "n_head": 12,
17
+ "n_inner": null,
18
+ "n_layer": 12,
19
+ "n_positions": 1024,
20
+ "quantization_config": {
21
+ "_load_in_4bit": false,
22
+ "_load_in_8bit": true,
23
+ "bnb_4bit_compute_dtype": "float32",
24
+ "bnb_4bit_quant_storage": "uint8",
25
+ "bnb_4bit_quant_type": "fp4",
26
+ "bnb_4bit_use_double_quant": false,
27
+ "llm_int8_enable_fp32_cpu_offload": false,
28
+ "llm_int8_has_fp16_weight": false,
29
+ "llm_int8_skip_modules": null,
30
+ "llm_int8_threshold": 6.0,
31
+ "load_in_4bit": false,
32
+ "load_in_8bit": true,
33
+ "quant_method": "bitsandbytes"
34
+ },
35
+ "reorder_and_upcast_attn": false,
36
+ "resid_pdrop": 0.1,
37
+ "scale_attn_by_inverse_layer_idx": false,
38
+ "scale_attn_weights": true,
39
+ "summary_activation": null,
40
+ "summary_first_dropout": 0.1,
41
+ "summary_proj_to_labels": true,
42
+ "summary_type": "cls_index",
43
+ "summary_use_proj": true,
44
+ "task_specific_params": {
45
+ "text-generation": {
46
+ "do_sample": true,
47
+ "max_length": 50
48
+ }
49
+ },
50
+ "torch_dtype": "bfloat16",
51
+ "transformers_version": "4.44.0",
52
+ "use_cache": true,
53
+ "vocab_size": 50257
54
+ }
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=_(_lm_head___False)_, learning_rate=1e-06/events.out.tfevents.1724002808.f383272e719b ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c328bec7f436291cb3341ce9615799ee3ca8fb15be07bef7025959f7e26e459
3
+ size 47487444
logs/copy_teacher_modules=_(_lm_head___False)_, learning_rate=1e-06/events.out.tfevents.1724015863.f383272e719b ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1fee9aef1816db0e345b2fb28efc48d0483b84b328136b9fa60b288cc05e26f1
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:495690bfdde71bc4fa36f492dbc10fd62ab49ae01713fb9f12631d9ec6c306ee
3
+ size 248894656
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": "<|endoftext|>",
5
+ "unk_token": "<|endoftext|>"
6
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "50256": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ }
12
+ },
13
+ "bos_token": "<|endoftext|>",
14
+ "clean_up_tokenization_spaces": true,
15
+ "eos_token": "<|endoftext|>",
16
+ "model_max_length": 1024,
17
+ "pad_token": "<|endoftext|>",
18
+ "tokenizer_class": "GPT2Tokenizer",
19
+ "unk_token": "<|endoftext|>"
20
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51317648eb2f70883b36ab9e8113552dd6ccb30aa1d69e9133b30415cf59d23a
3
+ size 1017948104
vocab.json ADDED
The diff for this file is too large to render. See raw diff