Instructions to use philschmid/code-llama-3-1-8b-text-to-sql-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use philschmid/code-llama-3-1-8b-text-to-sql-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3.1-8B") model = PeftModel.from_pretrained(base_model, "philschmid/code-llama-3-1-8b-text-to-sql-lora") - Notebooks
- Google Colab
- Kaggle