CoolFace
Modelpublic

distily/distily_TinyStories-33M_hs_attn

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes85downloads
Model Card

distily_TinyStories-33M

This student model is distilled from the teacher model roneneldan/TinyStories-33M using the dataset (unspecified).

The Distily library was used for this distillation.

It achieves the following results on the evaluation set:

  • —eval_enwikippl: 5505.2720
  • —eval_frwikippl: 21773.6699
  • —eval_zhwikippl: 149216.0938
  • —eval_loss: 1.1383
  • —eval_runtime: 51.1413
  • —evalsamplesper_second: 48.884
  • —evalstepsper_second: 6.12

<!-- 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

Training and evaluation data

More information needed -->

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —distillationobjective: DistillationObjective(logitslosscomponent=LossComponent(label=logits, weight=1, lossfn=kl, layermapper=None, projector=None), hslosscomponent=LossComponent(label=hs, weight=5000.0, lossfn=mse, layermapper=None, projector=None), attnlosscomponent=LossComponent(label=attn, weight=500.0, lossfn=jsd, layer_mapper=None, projector=None))
  • —train_embeddings: True
  • —learning_rate: 4e-05
  • —trainbatchsize: 8
  • —evalbatchsize: 8
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: constant
  • —num_epochs: 1.0

Resource Usage

Peak GPU Memory: 8.2949 GB

Eval-Phase Metrics

stepepochenwikipplfrwikippllossruntimesamples_per_secondsteps_per_secondzhwikippl
teacher eval20633.1680131577.28127615.4468
0057409.765657878.082011.797240.667261.4757.69756928.0781
10000.032310372.951276930.45311.905341.795359.8157.489858113.625
20000.06468020.604046711.96881.647241.064260.887.622367518.3125
30000.09708157.537645240.39451.527845.450855.0056.887515510.5625
40000.12937411.559636822.64841.433751.115848.9096.123421034.4688
50000.16166422.758328339.40231.351551.174848.8526.116267027.4375
60000.19396131.327624695.61131.275050.973449.0456.14194273.2656
70000.22635802.434123374.15621.219950.857149.1576.155168406.4688
80000.25865621.917021168.18551.177351.009749.016.136164012.0469
90000.29095505.272021773.66991.138351.141348.8846.12149216.0938
100000.32325617.549321623.74611.113451.085348.9386.127148977.0625
110000.35555438.981021305.92771.090151.228948.8016.11148262.7188
120000.38795601.436022292.50591.071851.177148.856.116156941.4062
130000.42025323.236821323.97851.054750.81449.1996.16145089.7812
140000.45255399.006821468.79301.044350.906649.116.149147118.75
150000.48485341.044920151.64651.036451.001349.0186.137134312.3438
160000.51725234.698720021.34771.029251.723548.3346.051136299.75
170000.54955317.868721308.93551.015654.704445.75.722149495.2656
180000.58185521.540520827.68551.013741.415960.3637.557141984.7344
190000.61415249.756820254.20511.005542.184759.2637.42124202.625
200000.64655582.759821764.47270.998246.303353.9926.76149495.2656
210000.67885232.662120262.76370.993548.128751.9446.503145128.5312
220000.71115320.349121332.99020.985450.668149.3416.177155605.7656
230000.74345032.221219788.39450.987650.989949.0296.138141417.0312
240000.77575318.279322064.20310.983250.91249.1046.148152560.7188
250000.80815365.570821906.09570.977951.137948.8876.121154034.5156
260000.84045328.615722267.36910.974051.111548.9136.124154983.75
270000.87275565.881322663.34960.971432.78176.2649.548152397.8594
280000.90505278.784720380.26370.972327.10892.22411.546141190.6406
290000.93745302.200220637.65620.965730.872880.97710.138139914.2969
300000.96975366.405322920.46290.963327.043392.44411.574160202.3281
309381.05286.986820498.42770.962827.034692.47411.578145051.0469

Framework versions

  • —Distily 0.2.0
  • —Transformers 4.44.0
  • —Pytorch 2.3.0
  • —Datasets 2.21.0