Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf llmware/slim-sql-tool# Run inference directly in the terminal:
llama-cli -hf llmware/slim-sql-toolUse 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 llmware/slim-sql-tool# Run inference directly in the terminal:
./llama-cli -hf llmware/slim-sql-toolBuild 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 llmware/slim-sql-tool# Run inference directly in the terminal:
./build/bin/llama-cli -hf llmware/slim-sql-toolUse Docker
docker model run hf.co/llmware/slim-sql-toolSLIM-SQL-TOOL
slim-sql-tool is a 4_K_M quantized GGUF version of slim-sql-1b-v0, providing a small, fast inference implementation, optimized for multi-model concurrent deployment.
slim-sql is part of the SLIM ("Structured Language Instruction Model") series, providing a set of small, specialized decoder-based LLMs, fine-tuned for function-calling.
Note: slim-sql is designed for small, fast, local prototyping and to be effective for 'one-table' lookups - it was not trained or optimized for complex joins and other sophisticated SQL queries.
To pull the model via API:
from huggingface_hub import snapshot_download
snapshot_download("llmware/slim-sql-tool", local_dir="/path/on/your/machine/", local_dir_use_symlinks=False)
Load in your favorite GGUF inference engine, or try with llmware as follows:
from llmware.models import ModelCatalog
# this one line will download the model and run a series of tests
# includes two sample table schema - go to llmware github repo for end-to-end example
ModelCatalog().tool_test_run("slim-sql-tool", verbose=True)
Slim models can also be orchestrated as part of multi-model, multi-step LLMfx calls:
from llmware.agents import LLMfx
llm_fx = LLMfx()
llm_fx.load_tool("sql")
response = llm_fx.sql(query, table_schema)
Note: please review config.json in the repository for prompt wrapping information, details on the model, and full test set.
Note: two sample 'hello world' csv tables are included - this is fabricated data - any similarity with real people is coincidental.
Model Card Contact
Darren Oberst & llmware team
- Downloads last month
- 210
We're not able to determine the quantization variants.
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf llmware/slim-sql-tool# Run inference directly in the terminal: llama-cli -hf llmware/slim-sql-tool