lapp0 commited on
Commit
b47538a
1 Parent(s): cf570df

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.13_gpt2
9
+ results: []
10
+ ---
11
+
12
+ # distily_bench_obj_cross_v2.13_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: 1248.0
20
+ - eval_frwikippl: 6560.0
21
+ - eval_zhwikippl: 24448.0
22
+ - eval_tinystoriesppl: 968.0
23
+ - eval_loss: 2.4413
24
+ - eval_runtime: 12.6655
25
+ - eval_samples_per_second: 47.373
26
+ - eval_steps_per_second: 11.843
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: 8
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: 7.9388 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 | 1065151889408.0 | 117097988358144.0 | 20.4033 | 12.6433 | 47.456 | 11.864 | 4362076160.0 | 27762668601344.0 |
68
+ | 750 | 0.1010 | 1248.0 | 6560.0 | 2.4413 | 12.6655 | 47.373 | 11.843 | 968.0 | 24448.0 |
69
+ | 1500 | 0.2020 | 500.0 | 3712.0 | 1.8019 | 12.6495 | 47.433 | 11.858 | 352.0 | 820.0 |
70
+ | 2250 | 0.3030 | 342.0 | 1832.0 | 1.5659 | 12.681 | 47.315 | 11.829 | 276.0 | 294.0 |
71
+ | 3000 | 0.4040 | 245.0 | 932.0 | 1.3644 | 12.6925 | 47.272 | 11.818 | 198.0 | 228.0 |
72
+ | 3750 | 0.5051 | 191.0 | 680.0 | 1.2038 | 12.6837 | 47.305 | 11.826 | 159.0 | 219.0 |
73
+ | 4500 | 0.6061 | 148.0 | 596.0 | 1.0541 | 12.6874 | 47.291 | 11.823 | 127.5 | 188.0 |
74
+ | 5250 | 0.7071 | 129.0 | 442.0 | 0.9331 | 12.6692 | 47.359 | 11.84 | 102.5 | 126.5 |
75
+ | 6000 | 0.8081 | 117.0 | 412.0 | 0.8757 | 12.6912 | 47.277 | 11.819 | 94.5 | 124.5 |
76
+ | 6750 | 0.9091 | 112.0 | 398.0 | 0.8483 | 12.8574 | 46.666 | 11.666 | 90.0 | 119.5 |
77
+ | 7425 | 1.0 | 110.5 | 392.0 | 0.8433 | 12.717 | 47.181 | 11.795 | 89.0 | 119.0 |
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/hidden_weights=1.0, hs_layer_mappers=all, hs_loss_fns=kl/events.out.tfevents.1724086431.f383272e719b ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad4574a6193f150caa504cb168f263fd3ae9674e23e4d567d1a768b5fd8c4501
3
+ size 3514945
logs/hidden_weights=1.0, hs_layer_mappers=all, hs_loss_fns=kl/events.out.tfevents.1724089332.f383272e719b ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de38ac5eac57ed18e7e2f894bfc3344c015d594b040404c89da9b16c7ef351d1
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:e6f754e0df24967dd69a9b0e215b2d6d34aa8d5d986d483ff3440470a52aba48
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:60db2ddc584ce0bf912f1d1bac32ff4c4e81bd0bd8f02ece8afe7099829d25cc
3
+ size 1017899144
vocab.json ADDED
The diff for this file is too large to render. See raw diff