CoolFace
Modelpublic

ananyarn/get_python

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
1likes13downloads
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. -->

get_python

This model is a fine-tuned version of TheBloke/Mistral-7B-Instruct-v0.1-GPTQ on the generator dataset. It achieves the following results on the evaluation set:

  • Loss: 0.5718

Model description

This model can convert a given pseudo-code or algorithm to Python source code.

Intended uses & limitations

This model can be used by reasearchers, students and developers who are struggling to convert algorithms to code.

Training and evaluation data

The model was trained using ananyarn/AlgorithmandPythonSourceCode.

<!--## Training procedure-->

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05
  • trainbatchsize: 4
  • evalbatchsize: 4
  • seed: 42
  • gradientaccumulationsteps: 4
  • totaltrainbatch_size: 16
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: constant
  • lrschedulerwarmup_ratio: 0.03
  • training_steps: 250

Training results

Training LossEpochStepValidation Loss
0.83260.09500.7046
0.64040.181000.6080
0.57710.271500.5701
0.56370.362000.5662
0.5520.442500.5718

Framework versions

  • PEFT 0.8.2
  • Transformers 4.37.2
  • Pytorch 2.2.0
  • Datasets 2.16.1
  • Tokenizers 0.15.1