Instructions to use tharun66/Mistral-7B-Text2SQL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use tharun66/Mistral-7B-Text2SQL with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3") model = PeftModel.from_pretrained(base_model, "tharun66/Mistral-7B-Text2SQL") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (2)
- README.mdAdded+73
- adapter_model.safetensors+2-2
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273---base_model: mistralai/Mistral-7B-Instruct-v0.3datasets:- generatorlibrary_name: peftlicense: apache-2.0tags:- trl- sft- generated_from_trainermodel-index:- name: Mistral-7B-text-to-sql-flash-attention-2-dataeval results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# Mistral-7B-text-to-sql-flash-attention-2-dataeval
This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) on the generator dataset.It achieves the following results on the evaluation set:- Loss: 0.4643
## 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:- learning_rate: 0.0002- train_batch_size: 3- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 8- total_train_batch_size: 24- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: constant- lr_scheduler_warmup_ratio: 0.03- lr_scheduler_warmup_steps: 15- num_epochs: 3
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 1.8346 | 0.4 | 10 | 0.7031 || 0.5882 | 0.8 | 20 | 0.5273 || 0.487 | 1.2 | 30 | 0.4850 || 0.4423 | 1.6 | 40 | 0.4675 || 0.4235 | 2.0 | 50 | 0.4564 || 0.3464 | 2.4 | 60 | 0.4690 || 0.3411 | 2.8 | 70 | 0.4643 |
### Framework versions
- PEFT 0.13.2- Transformers 4.45.2- Pytorch 2.4.1+cu121- Datasets 3.0.1- Tokenizers 0.20.1123version https://git-lfs.github.com/spec/v1oid sha256:884112bc39360e5bb8000aa0e3abfade93b6960de6b957286cd6b902043211ebsize 1879143336123version https://git-lfs.github.com/spec/v1oid sha256:b23c005d4b2b6185f1434afafee0b99874becc0010159472e4db6c202bbf05a7size 3221320120
README.mdAdded+73
adapter_model.safetensors+2-2