Team Ai
Modelpublic

Josh1207/codeparrot-ds-small

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes337downloads
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. -->

codeparrot-ds-small

This model is a fine-tuned version of gpt2 on an unknown dataset. It achieves the following results on the evaluation set:

  • —Loss: 3.2919

Model description

Due to hardware limitations and an insufficient amount of training data, the model has only been trained for a single epoch and is currently not functional.

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: 0.0005
  • —trainbatchsize: 4
  • —evalbatchsize: 4
  • —seed: 42
  • —gradientaccumulationsteps: 2
  • —totaltrainbatch_size: 8
  • —optimizer: Use OptimizerNames.ADAMWTORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizerargs=No additional optimizer arguments
  • —lrschedulertype: cosine
  • —lrschedulerwarmup_steps: 100
  • —num_epochs: 1
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation Loss
5.92860.025005.7197
5.27170.0410005.1488
4.99720.0615004.8345
4.82140.0820004.6251
4.62720.125004.4807
4.52410.1230004.3484
4.4050.1435004.2483
4.31890.1640004.1680
4.25960.1845004.0914
4.25690.250004.0341
4.16140.2255003.9615
4.10730.2460003.9112
4.08920.2665003.8685
4.01510.2870003.8277
3.9030.375003.7787
3.92480.3280003.7447
3.89780.3485003.7189
3.92310.3690003.6877
3.89360.3895003.6479
3.76490.4100003.6154
3.81560.42105003.6069
3.75880.44110003.5772
3.75590.46115003.5517
3.8140.48120003.5230
3.73840.5125003.5065
3.68270.52130003.4807
3.66790.54135003.4585
3.68380.56140003.4419
3.71540.58145003.4313
3.71170.6150003.4156
3.60650.62155003.3990
3.6130.64160003.3820
3.58240.66165003.3702
3.62630.68170003.3645
3.60730.7175003.3529
3.5870.72180003.3419
3.6240.74185003.3340
3.5830.76190003.3273
3.5730.78195003.3185
3.55760.8200003.3123
3.56230.82205003.3103
3.59550.84210003.3053
3.59470.86215003.3015
3.52580.88220003.2989
3.59850.9225003.2962
3.57230.92230003.2938
3.58630.94235003.2927
3.53780.96240003.2921
3.49520.98245003.2919
3.53571.0250003.2919

Framework versions

  • —Transformers 4.51.3
  • —Pytorch 2.5.1
  • —Datasets 2.19.1
  • —Tokenizers 0.21.1