lapp0 commited on
Commit
8522d65
1 Parent(s): 9dbd51e

End of training

Browse files
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.12b_gpt2
9
+ results: []
10
+ ---
11
+
12
+ # distily_bench_obj_cross_v2.12b_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: 100.5
20
+ - eval_frwikippl: 402.0
21
+ - eval_zhwikippl: 202.0
22
+ - eval_tinystoriesppl: 77.5
23
+ - eval_loss: 0.8097
24
+ - eval_runtime: 12.6234
25
+ - eval_samples_per_second: 47.531
26
+ - eval_steps_per_second: 11.883
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: 0.0001
52
+ - train_batch_size: 4
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
+ - lr_scheduler_warmup_ratio: 0.5
58
+ - num_epochs: 1.0
59
+
60
+ ### Resource Usage
61
+ Peak GPU Memory: 4.1856 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 | 1666447310848.0 | 185817465094144.0 | 19.8325 | 12.5128 | 47.951 | 11.988 | 8925478912.0 | 38482906972160.0 |
68
+ | 1500 | 0.1010 | 832.0 | 5056.0 | 2.2173 | 12.5546 | 47.791 | 11.948 | 616.0 | 10752.0 |
69
+ | 3000 | 0.2020 | 358.0 | 1552.0 | 1.6287 | 12.5223 | 47.914 | 11.979 | 288.0 | 324.0 |
70
+ | 4500 | 0.3030 | 239.0 | 1008.0 | 1.3817 | 12.5744 | 47.716 | 11.929 | 200.0 | 185.0 |
71
+ | 6000 | 0.4040 | 165.0 | 584.0 | 1.1057 | 12.6319 | 47.499 | 11.875 | 131.0 | 168.0 |
72
+ | 7500 | 0.5051 | 127.0 | 486.0 | 0.9512 | 12.5972 | 47.63 | 11.907 | 99.0 | 198.0 |
73
+ | 9000 | 0.6061 | 100.5 | 402.0 | 0.8097 | 12.6234 | 47.531 | 11.883 | 77.5 | 202.0 |
74
+ | 10500 | 0.7071 | 82.5 | 324.0 | 0.6801 | 12.6184 | 47.549 | 11.887 | 66.0 | 129.0 |
75
+ | 12000 | 0.8081 | 71.5 | 264.0 | 0.5949 | 12.5839 | 47.68 | 11.92 | 59.25 | 146.0 |
76
+ | 13500 | 0.9091 | 69.0 | 245.0 | 0.5609 | 12.5927 | 47.647 | 11.912 | 57.25 | 117.0 |
77
+ | 14850 | 1.0 | 68.5 | 240.0 | 0.5540 | 12.5567 | 47.783 | 11.946 | 56.5 | 114.5 |
78
+
79
+ ### Framework versions
80
+ - Distily 0.2.0
81
+ - Transformers 4.44.0
82
+ - Pytorch 2.3.0
83
+ - 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/learning_rate=0.0001, per_device_train_batch_size=4, warmup_ratio=0.5/events.out.tfevents.1724086398.5f530b1cf724 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d205678927abe858bf68996f85b8589bcc533a0eb7770cd9f937ef9755865e6
3
+ size 7019564
logs/learning_rate=0.0001, per_device_train_batch_size=4, warmup_ratio=0.5/events.out.tfevents.1724089730.5f530b1cf724 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd1e0e7a7632aa906a8db8a6932d2cd3e8baec193d0c8d23e62e5627d78d9f02
3
+ size 578
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:17663af322b01be7624862bedcf89f09c8e2a817c5865a09ff38a06bd6f2f035
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:3b29132c596a46d946d4f33b45328cd83c25ea3fcfd94a27254be6474b0d74a3
3
+ size 1017899144
vocab.json ADDED
The diff for this file is too large to render. See raw diff