How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf omeryentur/phi-3-sql:Q4_K_M
# Run inference directly in the terminal:
llama-cli -hf omeryentur/phi-3-sql:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf omeryentur/phi-3-sql:Q4_K_M
# Run inference directly in the terminal:
llama-cli -hf omeryentur/phi-3-sql:Q4_K_M
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf omeryentur/phi-3-sql:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf omeryentur/phi-3-sql:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -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
Use Docker
docker model run hf.co/omeryentur/phi-3-sql:Q4_K_M
Quick Links

Model Card Phi-3-Sql

This model is a fine-tuned version of the Phi-3-mini-4k-instruct model for text to SQL tasks. Its goal is to achieve high-performance text to SQL outputs using smaller models

Prompt ="""
<|system|>
{table_info}

<|user|>
{question}

<|sql|>"""
Downloads last month
112
GGUF
Model size
4B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Space using omeryentur/phi-3-sql 1