CoolFace
Modelpublic

frankmorales2020/Mistral-7B-text-to-sql-flash-attention-2-FAISS

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes19downloads
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. -->

Mistral-7B-text-to-sql-flash-attention-2-FAISS

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

  • —Loss: 0.4583

Model description

Article: https://medium.com/@frankmorales_91352/faiss-powered-semantic-search-meets-fine-tuned-mistral-a-novel-approach-to-text-to-sql-generation-fc633d9c1bc2

Training and evaluation data

Training: https://github.com/frank-morales2020/MLxDL/blob/main/FAISS_FINETUNING.ipynb

Evaluation: https://github.com/frank-morales2020/MLxDL/blob/main/FAISSEvaluatorMistral7Btexttosql.ipynb

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 0.0002
  • —trainbatchsize: 3
  • —evalbatchsize: 8
  • —seed: 42
  • —gradientaccumulationsteps: 8
  • —totaltrainbatch_size: 24
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: constant
  • —lrschedulerwarmup_ratio: 0.03
  • —lrschedulerwarmup_steps: 15
  • —num_epochs: 3

Training results

Training LossEpochStepValidation Loss
1.84090.4100.6999
0.6160.8200.5322
0.49771.2300.4910
0.44861.6400.4661
0.43132.0500.4529
0.362.4600.4620
0.35342.8700.4583

Framework versions

  • —PEFT 0.11.1
  • —Transformers 4.42.3
  • —Pytorch 2.3.0+cu121
  • —Datasets 2.20.0
  • —Tokenizers 0.19.1