Text-to-SQL
Collection
Natural-language to SQL: PostgreSQL/SQL generation models and the schema-aware Text-to-PostgreSQL dataset. β’ 7 items β’ Updated
Run omeryentur/phi-3-sql on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/omeryentur/phi-3-sql. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/omeryentur/phi-3-sql on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use omeryentur/phi-3-sql with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("omeryentur/phi-3-sql", device_map="auto")How to use omeryentur/phi-3-sql with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf omeryentur/phi-3-sql:Q4_K_M # Run inference directly in the terminal: llama cli -hf omeryentur/phi-3-sql:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf omeryentur/phi-3-sql:Q4_K_M # Run inference directly in the terminal: llama cli -hf omeryentur/phi-3-sql:Q4_K_M
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf omeryentur/phi-3-sql:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf omeryentur/phi-3-sql:Q4_K_M
docker model run hf.co/omeryentur/phi-3-sql:Q4_K_M
How to use omeryentur/phi-3-sql with Ollama:
ollama run hf.co/omeryentur/phi-3-sql:Q4_K_M
How to use omeryentur/phi-3-sql with Docker Model Runner:
docker model run hf.co/omeryentur/phi-3-sql:Q4_K_M
How to use omeryentur/phi-3-sql with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull omeryentur/phi-3-sql:Q4_K_M
lemonade run user.phi-3-sql-Q4_K_M
lemonade list
4-bit