lapp0 commited on
Commit
aed0425
1 Parent(s): 7902549

End of training

Browse files
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.15_gpt2
9
+ results: []
10
+ ---
11
+
12
+ # distily_bench_obj_cross_v2.15_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: 2352.0
20
+ - eval_frwikippl: 10240.0
21
+ - eval_zhwikippl: 109056.0
22
+ - eval_tinystoriesppl: 1920.0
23
+ - eval_loss: 2.6449
24
+ - eval_runtime: 17.0132
25
+ - eval_samples_per_second: 58.778
26
+ - eval_steps_per_second: 7.347
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=1.0, loss_fn=mse, layer_mapper=last, 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: 0.0004
52
+ - train_batch_size: 8
53
+ - eval_batch_size: 8
54
+ - seed: 42
55
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
56
+ - lr_scheduler_type: constant
57
+ - lr_scheduler_warmup_ratio: 0.2
58
+ - num_epochs: 1.0
59
+
60
+ ### Resource Usage
61
+ Peak GPU Memory: 8.0892 GB
62
+
63
+ ### Eval-Phase Metrics
64
+ | step | epoch | enwikippl | frwikippl | loss | runtime | samples_per_second | steps_per_second | tinystoriesppl | zhwikippl |
65
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
66
+ | **teacher eval** | | 43.75 | 61.75 | | | | | 11.8125 | 19.125 |
67
+ | 0 | 0 | 1984274890752.0 | 213305255788544.0 | 21.1260 | 17.0018 | 58.817 | 7.352 | 3774873600.0 | 74217034874880.0 |
68
+ | 1000 | 0.0808 | 516.0 | 3952.0 | 1.7644 | 17.0372 | 58.695 | 7.337 | 412.0 | 3760.0 |
69
+ | 2000 | 0.1616 | 516.0 | 3872.0 | 1.7584 | 17.0128 | 58.779 | 7.347 | 462.0 | 860.0 |
70
+ | 3000 | 0.2424 | 864.0 | 4672.0 | 2.0719 | 17.0071 | 58.799 | 7.35 | 788.0 | 2448.0 |
71
+ | 4000 | 0.3232 | 1888.0 | 9344.0 | 2.5277 | 17.1241 | 58.397 | 7.3 | 1696.0 | 26880.0 |
72
+ | 5000 | 0.4040 | 2008.0 | 7712.0 | 2.5758 | 17.0318 | 58.714 | 7.339 | 2256.0 | 48128.0 |
73
+ | 6000 | 0.4848 | 2352.0 | 9984.0 | 2.6397 | 17.1643 | 58.26 | 7.283 | 1856.0 | 54528.0 |
74
+ | 7000 | 0.5657 | 2416.0 | 12096.0 | 2.6472 | 17.0957 | 58.494 | 7.312 | 1880.0 | 109568.0 |
75
+ | 8000 | 0.6465 | 2448.0 | 9856.0 | 2.6570 | 17.0094 | 58.791 | 7.349 | 1960.0 | 115712.0 |
76
+ | 9000 | 0.7273 | 2352.0 | 10240.0 | 2.6449 | 17.0132 | 58.778 | 7.347 | 1920.0 | 109056.0 |
77
+ | 10000 | 0.8081 | 2320.0 | 9344.0 | 2.6556 | 17.0386 | 58.69 | 7.336 | 2096.0 | 87040.0 |
78
+ | 11000 | 0.8889 | 2304.0 | 12224.0 | 2.6333 | 17.0346 | 58.704 | 7.338 | 1888.0 | 130048.0 |
79
+ | 12000 | 0.9697 | 2208.0 | 10368.0 | 2.6107 | 17.0435 | 58.674 | 7.334 | 1808.0 | 98816.0 |
80
+ | 12375 | 1.0 | 2256.0 | 10304.0 | 2.6066 | 17.0663 | 58.595 | 7.324 | 1696.0 | 80896.0 |
81
+
82
+ ### Framework versions
83
+ - Distily 0.2.0
84
+ - Transformers 4.44.0
85
+ - Pytorch 2.3.0
86
+ - 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___True)_, hs_layer_mapper=last, hs_loss_fn=mse, hs_weight=1.0/events.out.tfevents.1724111731.02dbb11e2dcc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43c59bf7c56c1ed87d9f22b4fdaf65903c8c00a1c1cae9a973df62884457e8db
3
+ size 5852999
logs/copy_teacher_modules=_(_lm_head___True)_, hs_layer_mapper=last, hs_loss_fn=mse, hs_weight=1.0/events.out.tfevents.1724115887.02dbb11e2dcc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd4cd9262e6bd1171e9a918eb46584ce2b5f48b503ebab0c5011953be222f9bb
3
+ size 307
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:42f66f166f364f8ae2652978eadf242ce47c7eebaf19549b41b25a50707342c1
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:f6a8e206278e5ca0b51f8c6ce789b877c86cb17b2d23934d60691b5bc758cb10
3
+ size 1017899144
vocab.json ADDED
The diff for this file is too large to render. See raw diff