b-mc2/sql-create-context
Viewer • Updated • 78.6k • 3.86k • 499
How to use psychologyphd/CodeLlama-7b-Text-to-SQL-mps-finetuned with PEFT:
Task type is invalid.
This is a fine-tuned version of CodeLlama-7b-hf specifically optimized for Text-to-SQL tasks. Right now it is overfitting.
It was trained on a MacBook Pro M3 using MPS (Metal Performance Shaders) acceleration. The training process successfully demonstrates that LLM fine-tuning is feasible on Apple Silicon devices with the right configuration.
This project is adapted from the Microsoft "Generative AI for Beginners" Course (Chapter 18: Fine-tuning).
bitsandbytes and CUDA). I heavily modified the training pipeline to support macOS/MPS, including:device_map and FP16/FP32 settings for Metal compatibility.See how_to_use.ipynb.
Base model
codellama/CodeLlama-7b-hf