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 cahaj/Phi-3.5-mini-instruct-text2sql-GGUF:
# Run inference directly in the terminal:
llama-cli -hf cahaj/Phi-3.5-mini-instruct-text2sql-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf cahaj/Phi-3.5-mini-instruct-text2sql-GGUF:
# Run inference directly in the terminal:
llama-cli -hf cahaj/Phi-3.5-mini-instruct-text2sql-GGUF:
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 cahaj/Phi-3.5-mini-instruct-text2sql-GGUF:
# Run inference directly in the terminal:
./llama-cli -hf cahaj/Phi-3.5-mini-instruct-text2sql-GGUF:
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 cahaj/Phi-3.5-mini-instruct-text2sql-GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf cahaj/Phi-3.5-mini-instruct-text2sql-GGUF:
Use Docker
docker model run hf.co/cahaj/Phi-3.5-mini-instruct-text2sql-GGUF:
Quick Links

Phi3.5 text2sql

  • Developed by: cahaj
  • License: apache-2.0
  • Finetuned from model: microsoft/Phi-3.5-mini-instruct
  • Dataset: Clinton/Text-to-sql-v1
  • LoRa: 64/64

Training template

prompt = """<|system|>
You are a SQL database query generator. User provides you with sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables.<|end|>
<|user|>
{}
SQL table schema: {}<|end|>
<|assistant|>
{}<|end|>"""
Downloads last month
84
GGUF
Model size
4B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

5-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for cahaj/Phi-3.5-mini-instruct-text2sql-GGUF

Quantized
(183)
this model

Dataset used to train cahaj/Phi-3.5-mini-instruct-text2sql-GGUF