CoolFace
Modelpublic

hrezaei/T5LAA2

sourceHugging Faceupdated 25d agoView on Hugging Face
0likes171downloads
Model Card

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

T5LAA2

This model is part of the work published in the paper Interactive Text Games: Lookahead Is All You Need!

Four models are introduced in the above paper:

These models are implemented in this repository which is a customized version of nanoGPT.

The same variations are also implemented in this fork of Transformers library, on top of Google-t5/T5 implementation. These models are also trained and published as follows:

All the above models are on the scale of GPT2 (~100M parameters). The work is in progress to train them on larger scales.

Model description

This model is not fine-tuned on any instruction or human feedback datasets. It is just pre-trained on the HuggingFaceFW/fineweb sample-10BT dataset. It achieves the following results on the evaluation set:

  • —Loss: 4.9746
  • —Accuracy: 0.0349

Since the above fork is not merged into the main Transformers library yet, if you need to load it with AutoModel.frompretrained(), you need to first install Transformers from [this branch](https://github.com/HRezaei/transformers/tree/feature/lookaheadmodels), which contains the code for T5LA models. This can be done by:

shell
pip install git+https://github.com/HRezaei/transformers.git@feature/lookahead_models

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 5e-05
  • —trainbatchsize: 8
  • —evalbatchsize: 8
  • —seed: 42
  • —distributed_type: multi-GPU
  • —num_devices: 2
  • —totaltrainbatch_size: 16
  • —totalevalbatch_size: 16
  • —optimizer: Use adamwtorch with betas=(0.9,0.999) and epsilon=1e-08 and optimizerargs=No additional optimizer arguments
  • —lrschedulertype: linear
  • —training_steps: 200000
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracy
8.10820.0120008.00850.0310
7.44470.0240007.43340.0315
7.09730.0360007.13900.0314
6.95750.0480006.92870.0324
6.88810.05100006.83890.0337
6.83080.06120006.75600.0331
6.78580.07140006.74020.0337
6.74310.08160006.69760.0337
6.68370.09180006.62930.0340
6.660.1200006.61350.0328
6.63030.11220006.59210.0325
6.59210.12240006.53930.0337
6.60280.13260006.52550.0329
6.55030.14280006.51470.0326
6.52730.15300006.47990.0321
6.53390.16320006.44490.0319
6.49680.17340006.44030.0318
6.47810.18360006.41970.0320
6.45790.19380006.41020.0317
6.42360.2400006.38590.0313
6.42950.21420006.38180.0306
6.39880.22440006.33650.0327
6.37031.0067460006.30210.0318
6.38031.0167480006.32040.0320
6.36181.0267500006.30320.0312
6.3231.0367520006.29900.0305
6.32081.0467540006.26840.0312
6.28841.0567560006.24350.0305
6.26821.0667580006.23770.0301
6.25361.0767600006.19340.0303
6.24661.0867620006.20020.0301
6.2221.0967640006.19150.0300
6.2431.1067660006.18340.0293
6.20531.1167680006.16160.0299
6.20291.1267700006.12840.0296
6.1981.1367720006.13810.0292
6.18381.1467740006.10510.0299
6.16721.1567760006.07800.0289
6.16041.1667780006.07370.0288
6.12171.1767800006.07620.0286
6.11471.1867820006.05660.0287
6.10671.1967840006.04560.0286
6.10131.2067860006.02420.0284
6.09981.2167880006.02490.0281
6.04442.0035900006.01380.0274
6.08442.0135920006.00010.0274
6.07072.0235940005.99640.0274
6.05362.0335960005.97910.0271
6.03562.0435980005.98540.0272
6.01362.05351000005.96460.0273
5.99522.06351020005.96120.0262
6.01542.07351040005.93580.0274
5.98692.08351060005.91490.0273
5.99752.09351080005.93660.0269
5.98882.10351100005.91230.0267
5.97962.11351120005.92140.0271
5.96142.12351140005.89950.0269
5.98572.13351160005.92750.0264
5.96442.14351180005.90660.0264
5.93452.15351200005.90390.0267
5.91492.16351220005.87520.0276
5.93132.17351240005.88510.0263
5.92622.18351260005.87960.0262
5.9192.19351280005.86530.0268
5.91732.20351300005.86490.0260
5.91422.21351320005.86330.0266
5.90553.00021340005.83660.0262
5.90423.01021360005.82070.0262
5.84973.02021380005.82870.0266
5.86063.03021400005.79860.0263
5.85733.04021420005.79480.0265
5.84883.05021440005.74600.0270
5.8253.06021460005.74280.0269
5.81033.07021480005.71500.0273
5.7793.08021500005.73060.0273
5.74243.09021520005.68990.0271
5.7363.10021540005.65890.0278
5.70263.11021560005.62900.0283
5.67293.12021580005.61410.0279
5.68023.13021600005.58240.0284
5.62883.14021620005.54510.0288
5.59593.15021640005.50780.0300
5.61423.16021660005.46180.0303
5.56463.17021680005.44290.0304
5.53653.18021700005.39860.0311
5.51313.19021720005.37110.0316
5.46013.20021740005.35320.0318
5.45963.21021760005.31330.0321
5.41673.22021780005.25580.0328
5.38164.00691800005.22370.0333
5.37584.01691820005.16530.0336
5.33664.02691840005.15900.0335
5.28624.03691860005.13740.0336
5.2814.04691880005.08370.0340
5.23514.05691900005.06730.0344
5.21014.06691920005.03820.0343
5.20154.07691940004.99340.0350
5.19794.08691960004.99510.0349
5.17254.09691980004.98060.0348
5.19224.10692000004.97460.0349

Framework versions

  • —Transformers 4.49.0.dev0
  • —Pytorch 2.5.1+cu121
  • —Datasets 3.2.0
  • —Tokenizers 0.21.0