lapp0 commited on
Commit
64f2b73
·
verified ·
1 Parent(s): ac0ab3e

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.11_gpt2
9
+ results: []
10
+ ---
11
+
12
+ # distily_bench_obj_cross_v2.11_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: 394.4440
20
+ - eval_frwikippl: 376.8607
21
+ - eval_zhwikippl: 132.9248
22
+ - eval_tinystoriesppl: 879.5369
23
+ - eval_loss: 0.6564
24
+ - eval_runtime: 21.3247
25
+ - eval_samples_per_second: 46.894
26
+ - eval_steps_per_second: 11.724
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: 4e-05
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 | 166859.125 | 3884651118592.0 | 20.7305 | 20.9672 | 47.694 | 11.923 | 78.9353 | 8900573134848.0 |
67
+ | 5000 | 0.0505 | 713.4594 | 1011.3455 | 1.2903 | 20.9827 | 47.658 | 11.915 | 1238.3685 | 298.2239 |
68
+ | 10000 | 0.1010 | 601.3743 | 730.4988 | 1.0969 | 21.3361 | 46.869 | 11.717 | 1104.3544 | 265.0505 |
69
+ | 15000 | 0.1515 | 504.4594 | 600.9854 | 0.9815 | 21.1535 | 47.274 | 11.818 | 935.7164 | 249.6911 |
70
+ | 20000 | 0.2020 | 546.4334 | 695.7017 | 0.9179 | 21.1018 | 47.389 | 11.847 | 1108.5160 | 222.1384 |
71
+ | 25000 | 0.2525 | 435.9988 | 478.2172 | 0.7794 | 21.1029 | 47.387 | 11.847 | 909.0684 | 166.1946 |
72
+ | 30000 | 0.3030 | 408.8560 | 428.7766 | 0.7228 | 21.311 | 46.924 | 11.731 | 866.9764 | 155.9177 |
73
+ | 35000 | 0.3535 | 415.0065 | 423.1964 | 0.7142 | 21.3097 | 46.927 | 11.732 | 897.1238 | 147.4223 |
74
+ | 40000 | 0.4040 | 417.0611 | 438.1946 | 0.7138 | 21.0917 | 47.412 | 11.853 | 902.5912 | 137.5701 |
75
+ | 45000 | 0.4545 | 410.7367 | 423.2858 | 0.7031 | 21.1335 | 47.318 | 11.83 | 889.1501 | 144.9844 |
76
+ | 50000 | 0.5051 | 409.4502 | 412.4997 | 0.6987 | 21.3483 | 46.842 | 11.711 | 892.8698 | 159.3132 |
77
+ | 55000 | 0.5556 | 406.3222 | 416.2205 | 0.6960 | 21.3527 | 46.832 | 11.708 | 884.7875 | 141.1298 |
78
+ | 60000 | 0.6061 | 404.2499 | 392.8503 | 0.6944 | 21.3318 | 46.878 | 11.72 | 879.3189 | 131.7685 |
79
+ | 65000 | 0.6566 | 395.6986 | 379.7383 | 0.6676 | 21.3383 | 46.864 | 11.716 | 873.5950 | 134.9347 |
80
+ | 70000 | 0.7071 | 394.2606 | 379.3372 | 0.6649 | 21.3522 | 46.834 | 11.708 | 872.5484 | 138.0020 |
81
+ | 75000 | 0.7576 | 392.1590 | 377.4717 | 0.6629 | 21.3581 | 46.821 | 11.705 | 870.7470 | 126.5486 |
82
+ | 80000 | 0.8081 | 394.0469 | 381.8300 | 0.6625 | 21.0719 | 47.457 | 11.864 | 876.5246 | 132.6237 |
83
+ | 85000 | 0.8586 | 393.9400 | 373.6366 | 0.6581 | 21.2823 | 46.987 | 11.747 | 877.9388 | 132.0940 |
84
+ | 90000 | 0.9091 | 395.3693 | 377.8174 | 0.6574 | 21.391 | 46.749 | 11.687 | 883.5812 | 134.0020 |
85
+ | 95000 | 0.9596 | 394.5662 | 377.2059 | 0.6567 | 21.0529 | 47.499 | 11.875 | 880.1915 | 132.9958 |
86
+ | 99000 | 1.0 | 394.4440 | 376.8607 | 0.6564 | 21.3247 | 46.894 | 11.724 | 879.5369 | 132.9248 |
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/dataset_subset=20231101.en, dataset_uri=wikimedia_wikipedia/events.out.tfevents.1724055571.f383272e719b ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7351a3073db9c85582cf772b34585603a4cd0ef375086fe9fcac8000f51ab242
3
+ size 47487443
logs/dataset_subset=20231101.en, dataset_uri=wikimedia_wikipedia/events.out.tfevents.1724068324.f383272e719b ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71305889602628eb47afd6acfb819dc71643365dc37094d07a09b35dcc136172
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:355dfb0af4ca0f00c55f33279db7ca97cbe98a3bdf12903bb00d1a8a66bb39a0
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:5ff2d2b2a5bff76eb930c12eaca6d7bd9a243fc1210782f3cbf0109477f344a7
3
+ size 1017948104
vocab.json ADDED
The diff for this file is too large to render. See raw diff