How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf XeAI/LLaMa_3.2_3B_Instruct_Text2SQL-Q4_K_M-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf XeAI/LLaMa_3.2_3B_Instruct_Text2SQL-Q4_K_M-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf XeAI/LLaMa_3.2_3B_Instruct_Text2SQL-Q4_K_M-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf XeAI/LLaMa_3.2_3B_Instruct_Text2SQL-Q4_K_M-GGUF: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 XeAI/LLaMa_3.2_3B_Instruct_Text2SQL-Q4_K_M-GGUF:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf XeAI/LLaMa_3.2_3B_Instruct_Text2SQL-Q4_K_M-GGUF: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 XeAI/LLaMa_3.2_3B_Instruct_Text2SQL-Q4_K_M-GGUF:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf XeAI/LLaMa_3.2_3B_Instruct_Text2SQL-Q4_K_M-GGUF:Q4_K_M
Use Docker
docker model run hf.co/XeAI/LLaMa_3.2_3B_Instruct_Text2SQL-Q4_K_M-GGUF:Q4_K_M
Quick Links

LLaMa_3.2_3B_Instruct_Text2SQL-Q4_K_M-GGUF.gguf

This is a GGUF quantized version of the LLaMa 3.2 3B Text2SQL model.

Model Details

  • Architecture: LLaMa 3.2 3B
  • Task: Text to SQL Generation
  • Quantization: Q4_K_M
  • Context Length: 65536 tokens (2^16)
  • Format: GGUF (Compatible with llama.cpp)

Usage

from llama_cpp import Llama

# Initialize model
llm = Llama(
    model_path="downloaded_model.gguf",
    n_ctx=65536,  # 64K context
    n_threads=8   # Adjust based on your CPU
)

# Generate SQL
response = llm(
    "Convert this to SQL: Find all users who signed up in January 2024",
    max_tokens=1024,
    temperature=0.7
)

print(response['choices'][0]['text'])

Model Source

This is a quantized version of XeAI/LLaMa_3.2_3B_Instruct_Text2SQL

Downloads last month
29
GGUF
Model size
3B 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