End of training
Browse files
README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
---
|
2 |
-
license: mit
|
3 |
base_model: gpt2
|
|
|
|
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
model-index:
|
@@ -8,14 +9,23 @@ model-index:
|
|
8 |
results: []
|
9 |
---
|
10 |
|
11 |
-
|
12 |
-
|
|
|
13 |
|
14 |
-
|
15 |
|
16 |
-
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
|
17 |
It achieves the following results on the evaluation set:
|
18 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
## Model description
|
21 |
|
@@ -28,12 +38,15 @@ More information needed
|
|
28 |
## Training and evaluation data
|
29 |
|
30 |
More information needed
|
|
|
31 |
|
32 |
## Training procedure
|
33 |
|
34 |
### Training hyperparameters
|
35 |
|
36 |
The following hyperparameters were used during training:
|
|
|
|
|
37 |
- learning_rate: 4e-05
|
38 |
- train_batch_size: 4
|
39 |
- eval_batch_size: 4
|
@@ -44,28 +57,30 @@ The following hyperparameters were used during training:
|
|
44 |
- lr_scheduler_type: constant
|
45 |
- num_epochs: 1.0
|
46 |
|
47 |
-
###
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
|
52 |
-
|
|
53 |
-
|
|
54 |
-
|
|
55 |
-
|
|
56 |
-
|
|
57 |
-
|
|
58 |
-
|
|
59 |
-
|
|
60 |
-
|
|
61 |
-
|
|
62 |
-
|
|
63 |
-
|
|
64 |
-
|
|
|
|
|
|
|
65 |
|
66 |
### Framework versions
|
67 |
-
|
68 |
- Transformers 4.44.0
|
69 |
- Pytorch 2.3.0
|
70 |
- Datasets 2.20.0
|
71 |
-
- Tokenizers 0.19.1
|
|
|
1 |
---
|
|
|
2 |
base_model: gpt2
|
3 |
+
library_name: distily
|
4 |
+
license: mit
|
5 |
tags:
|
6 |
- generated_from_trainer
|
7 |
model-index:
|
|
|
9 |
results: []
|
10 |
---
|
11 |
|
12 |
+
# distily_bench_gpt2_optim
|
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: 332.3850
|
20 |
+
- eval_frwikippl: 2330.5789
|
21 |
+
- eval_zhwikippl: 2631.6760
|
22 |
+
- eval_loss: 1627.4800
|
23 |
+
- eval_runtime: 21.3386
|
24 |
+
- eval_samples_per_second: 46.863
|
25 |
+
- eval_steps_per_second: 11.716
|
26 |
+
|
27 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
28 |
+
should probably proofread and complete it, then remove this comment.
|
29 |
|
30 |
## Model description
|
31 |
|
|
|
38 |
## Training and evaluation data
|
39 |
|
40 |
More information needed
|
41 |
+
-->
|
42 |
|
43 |
## Training procedure
|
44 |
|
45 |
### Training hyperparameters
|
46 |
|
47 |
The following hyperparameters were used during training:
|
48 |
+
- distillation_objective: LinearObjective(logits_weight=1, logits_loss_fn=<function kl_divergence_loss at 0x7f57c4b07910>, activations_weight=0, activations_loss_fn=<function mse_loss at 0x7f57c4b07880>, attentions_weight=0, attentions_loss_fn=<function mse_loss at 0x7f57c4b07880>)
|
49 |
+
- train_embeddings: True
|
50 |
- learning_rate: 4e-05
|
51 |
- train_batch_size: 4
|
52 |
- eval_batch_size: 4
|
|
|
57 |
- lr_scheduler_type: constant
|
58 |
- num_epochs: 1.0
|
59 |
|
60 |
+
### Resource Usage
|
61 |
+
Peak GPU Memory: 4.4311 GB
|
62 |
+
|
63 |
+
### Eval-Phase Metrics
|
64 |
+
| step | epoch | enwikippl | frwikippl | loss | runtime | samples_per_second | steps_per_second | zhwikippl |
|
65 |
+
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
66 |
+
| **teacher eval** | | 30.2385 | 57.2728 | | | | | 18.1772 |
|
67 |
+
| 0 | 0 | 56520.6797 | 56906.9609 | 6220.2881 | 20.9383 | 47.759 | 11.94 | 55769.3047 |
|
68 |
+
| 500 | 0.0808 | 1258.1868 | 6532.3999 | 3064.5439 | 20.9174 | 47.807 | 11.952 | 374879.2188 |
|
69 |
+
| 1000 | 0.1616 | 787.1970 | 4834.1909 | 2175.0400 | 20.938 | 47.76 | 11.94 | 43497.8008 |
|
70 |
+
| 1500 | 0.2424 | 665.8845 | 4272.1475 | 2074.2080 | 21.349 | 46.841 | 11.71 | 27341.3633 |
|
71 |
+
| 2000 | 0.3232 | 599.6594 | 4003.5479 | 1993.9120 | 21.3465 | 46.846 | 11.711 | 14360.5186 |
|
72 |
+
| 2500 | 0.4040 | 540.3354 | 3653.2900 | 1930.3280 | 22.4488 | 44.546 | 11.136 | 10866.1885 |
|
73 |
+
| 3000 | 0.4848 | 494.5775 | 3489.5195 | 1875.5520 | 21.8809 | 45.702 | 11.426 | 6831.9717 |
|
74 |
+
| 3500 | 0.5657 | 458.0697 | 3287.1162 | 1827.1600 | 21.4169 | 46.692 | 11.673 | 5614.6519 |
|
75 |
+
| 4000 | 0.6465 | 423.6559 | 3147.5164 | 1782.9680 | 21.794 | 45.884 | 11.471 | 4302.3994 |
|
76 |
+
| 4500 | 0.7273 | 404.1501 | 2901.5630 | 1743.7920 | 21.8359 | 45.796 | 11.449 | 4091.1592 |
|
77 |
+
| 5000 | 0.8081 | 376.5035 | 2821.1733 | 1703.9600 | 21.562 | 46.378 | 11.594 | 3270.3157 |
|
78 |
+
| 5500 | 0.8889 | 353.2973 | 2519.7690 | 1668.6639 | 21.4165 | 46.693 | 11.673 | 2576.3877 |
|
79 |
+
| 6000 | 0.9697 | 331.4378 | 2333.6213 | 1636.2000 | 21.3513 | 46.836 | 11.709 | 2431.3169 |
|
80 |
+
| 6187 | 0.9999 | 332.3850 | 2330.5789 | 1627.4800 | 21.3386 | 46.863 | 11.716 | 2631.6760 |
|
81 |
|
82 |
### Framework versions
|
83 |
+
- Distily 0.2.0
|
84 |
- Transformers 4.44.0
|
85 |
- Pytorch 2.3.0
|
86 |
- Datasets 2.20.0
|
|
logs/distillation_objective=LinearObjective_logits_weight_1__logits_loss_fn__function_kl_divergence_loss_at_0x7f57c4b07910___activations_weight_0__activations_loss_fn__function_mse_loss_at_0x7f57c4b07880__/events.out.tfevents.1723349376.715f24f8d8b8
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f57b8bfe6f209c3d45b23b984694ce0608000b7bcb8840ed40524a66fed6101b
|
3 |
+
size 249
|