Downloads · 30 days
10
3% of all-time downloads
lapp0/distily_modelcard_try
distily_modelcard_try is a machine learning model from lapp0. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for Distily. The card lists the license as mit.
Distilled with Distily library using teacher model gpt2 on dataset wikimedia/wikipedia.
Downloads · 30 days
10
3% of all-time downloads
All-time downloads
384
Public
Parameters
124M
6.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin1 GB · 80%
From the Hugging Face model README
Distilled with Distily library using teacher model gpt2 on dataset wikimedia/wikipedia.
<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. # Model description More information needed # Intended uses & limitations More information needed -->GPT2LMHeadModel| step | epoch | enwikippl | frwikippl | loss | runtime | samples_per_second | steps_per_second | tinystoriesppl | zhwikippl |
|---|---|---|---|---|---|---|---|---|---|
| teacher eval | 43.75 | 61.75 | 11.8125 | 19.125 | |||||
| 0 | 0 | 949187772416.0 | 76416058130432.0 | 21.75 | 0.1221 | 16.381 | 8.191 | 3556769792.0 | 13950053777408.0 |
| 20 | 1.0 | 13248.0 | 64000.0 | 5.6562 | 0.0646 | 30.969 | 15.485 | 7712.0 | 181248.0 |
`# Distillation (Teacher -> Student) Architecture Difference:
GPT2LMHeadModel -> GPT2LMHeadModel--- teacher model modules
+++ student model modules
@@ -7,15 +7,15 @@
(0-11): 12 x GPT2Block(
(ln_1): LayerNorm((768,), eps=1e-05, elementwise_affine=True)
(attn): GPT2FlashAttention2(
- (c_attn): Linear8bitLt(in_features=768, out_features=2304, bias=True)
- (c_proj): Linear8bitLt(in_features=768, out_features=768, bias=True)
+ (c_attn): Conv1D()
+ (c_proj): Conv1D()
(attn_dropout): Dropout(p=0.1, inplace=False)
(resid_dropout): Dropout(p=0.1, inplace=False)
)
(ln_2): LayerNorm((768,), eps=1e-05, elementwise_affine=True)
(mlp): GPT2MLP(
- (c_fc): Linear8bitLt(in_features=768, out_features=3072, bias=True)
- (c_proj): Linear8bitLt(in_features=3072, out_features=768, bias=True)
+ (c_fc): Conv1D()
+ (c_proj): Conv1D()
(act): NewGELUActivation()
(dropout): Dropout(p=0.1, inplace=False)
)
</details>
<br/>
Trained on 149,632 tokens from the wikimedia/wikipedia dataset.
15820231101.entrainDistillationObjective(logits_loss_component=LossComponent(label=logits, weight=1, loss_fn=kl))
The following hyperparameters were used during training:
<details> <summary>Expand</summary>0.00018842Adam with betas=(0.9,0.999) and epsilon=1e-08constant0.21.0DistillationObjective(logits_loss_component=LossComponent(label=logits, weight=1, loss_fn=kl))True<torch.optim.lr_scheduler.LambdaLR object at 0x7f80845a7190>NoneNoneNoneNone[('lm_head', False)]FalseFalseNonegpt2TrueFalseFalsewikimedia/wikipedia20231101.entraintext1600.0110.01.00.20True