Instructions to use yashcse21/text2sql-llama1b-cot-lr1e-4-l16-long with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use yashcse21/text2sql-llama1b-cot-lr1e-4-l16-long with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir text2sql-llama1b-cot-lr1e-4-l16-long yashcse21/text2sql-llama1b-cot-lr1e-4-l16-long
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
Text-to-SQL · cot_lr1e-4_L16_long
MLX LoRA adapter fine-tuned from
mlx-community/Llama-3.2-1B-Instruct-bf16 to turn a natural-language question + a CREATE TABLE schema into a
schema-faithful SQLite SELECT (reasoning models emit Reasoning: … / SQL: …).
# download the adapter, then:
from mlx_lm import load
model, tok = load("mlx-community/Llama-3.2-1B-Instruct-bf16", adapter_path="<downloaded-adapter-dir>")
Pair generation with a deterministic AST guardrail (single read-only SELECT). See the project repo for the data pipeline, study, and evaluation.
Hardware compatibility
Log In to add your hardware
Quantized
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for yashcse21/text2sql-llama1b-cot-lr1e-4-l16-long
Base model
mlx-community/Llama-3.2-1B-Instruct-bf16