lapp0 commited on
Commit
4bc3fb8
·
verified ·
1 Parent(s): 3a291fc

End of training

Browse files
README.md ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: gpt2
3
+ datasets:
4
+ - wikimedia/wikipedia
5
+ library_name: Distily
6
+ license: mit
7
+ tags:
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: distily_verify_compile
11
+ results: []
12
+ ---
13
+
14
+
15
+ # Summary
16
+
17
+ Distilled with [Distily](https://github.com/lapp0/distily) library
18
+ using teacher model [gpt2](https://huggingface.co/gpt2)
19
+ on dataset [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia).
20
+
21
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
22
+ should probably proofread and complete it, then remove this comment.
23
+
24
+ # Model description
25
+
26
+ More information needed
27
+
28
+ # Intended uses & limitations
29
+
30
+ More information needed
31
+ -->
32
+
33
+ # Model Architecture:
34
+ - **Architecture**: `GPT2LMHeadModel`
35
+ - **Total Parameters**: 124,439,808
36
+ - **Data Type (dtype)**: torch.bfloat16
37
+ - **Model Size**: 0.24 GB
38
+
39
+
40
+ # Benchmark Metrics Comparison
41
+
42
+ | Metric | |
43
+ | :--- |
44
+
45
+ # Resource Usage Comparison
46
+
47
+ - VRAM Use: 7.4923 GB
48
+
49
+ # Distillation (Teacher -> Student) Architecture Difference:
50
+
51
+ - **Architecture**: `GPT2LMHeadModel` -> `GPT2LMHeadModel`
52
+ - **Total Parameters**: 124,439,808 -> 124,439,808
53
+ - **Data Type (dtype)**: torch.bfloat16 -> torch.bfloat16
54
+ - **Model Size**: 0.24 GB -> 0.24 GB
55
+
56
+ <details>
57
+ <summary>Module Diff Details</summary>
58
+
59
+ ```diff
60
+
61
+ ```
62
+
63
+ </details>
64
+ <br/>
65
+
66
+ # Train Dataset
67
+ Trained on 3,223,855 tokens from the [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) dataset.
68
+
69
+ - Num Samples: `3,960`
70
+ - Subset: `20231101.en`
71
+ - Split: `train`
72
+
73
+
74
+ # Training Objective
75
+
76
+ ```
77
+ DistillationObjective(logits_loss_component=LossComponent(label=logits, weight=1, loss_fn=kl))
78
+ ```
79
+
80
+ # Hyperparameters
81
+ The following hyperparameters were used during training:
82
+
83
+ <details>
84
+ <summary>Expand</summary>
85
+
86
+ - learning_rate: `0.0001`
87
+ - train_batch_size: `4`
88
+ - eval_batch_size: `8`
89
+ - seed: `42`
90
+ - optimizer: `Adam with betas=(0.9,0.999) and epsilon=1e-08`
91
+ - lr_scheduler_type: `constant`
92
+ - lr_scheduler_warmup_ratio: `0.2`
93
+ - num_epochs: `1.0`
94
+ - distillation_objective: `DistillationObjective(logits_loss_component=LossComponent(label=logits, weight=1, loss_fn=kl))`
95
+ - train_embeddings: `True`
96
+ - lr_scheduler: `<torch.optim.lr_scheduler.LambdaLR object at 0x7fd25af72440>`
97
+ - student_model_name_or_path: `None`
98
+ - student_config_name_or_path: `None`
99
+ - student_model_config: `None`
100
+ - reinitialize_weights: `None`
101
+ - copy_teacher_modules: `[('lm_head', False)]`
102
+ - student_model_as_bitnet: `False`
103
+ - dropout: `None`
104
+ - teacher_model_name_or_path: `gpt2`
105
+ - teacher_load_in_8bit: `False`
106
+ - teacher_load_in_4bit: `False`
107
+ - dataset_uri: `wikimedia/wikipedia`
108
+ - dataset_subset: `20231101.en`
109
+ - dataset_split: `train`
110
+ - dataset_column_name: `text`
111
+ - dataset_sample_size: `4000`
112
+ - dataset_test_size: `0.01`
113
+ - gradient_accumulation_steps: `1`
114
+ - weight_decay: `0.0`
115
+ - max_grad_norm: `1.0`
116
+ - warmup_ratio: `0.2`
117
+ - warmup_steps: `0`
118
+ - gradient_checkpointing: `True`
119
+
120
+ </details>
121
+ <br/>
122
+
123
+
124
+ # Framework Versions
125
+ - Distily 0.3.0
126
+ - Transformers 4.44.2
127
+ - Pytorch 2.3.0
128
+ - Datasets 2.21.0
benchmarks.shelve.bak ADDED
File without changes
benchmarks.shelve.dat ADDED
File without changes
benchmarks.shelve.dir ADDED
File without changes
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.2"
6
+ }