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 Tekimax/granite-ml-coder-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf Tekimax/granite-ml-coder-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 Tekimax/granite-ml-coder-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf Tekimax/granite-ml-coder-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 Tekimax/granite-ml-coder-GGUF:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf Tekimax/granite-ml-coder-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 Tekimax/granite-ml-coder-GGUF:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf Tekimax/granite-ml-coder-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Tekimax/granite-ml-coder-GGUF:Q4_K_M
Quick Links

granite-ml-coder-GGUF

GGUF builds of Tekimax/granite-ml-coder — a compact Python / machine-learning coding assistant fine-tuned from ibm-granite/granite-3.1-1b-a400m-instruct. These run on CPU and Apple Silicon (Metal) via llama.cpp, Ollama, and LM Studio.

Files

File Bits Size Notes
granite-ml-coder-Q4_K_M.gguf 4-bit ~378 MB recommended — loads fast, near-full quality

Run it

Ollama (from the public registry)

ollama run tekimaxllc/granite-ml-coder "Write a sklearn pipeline for the iris dataset"

Ollama (from this GGUF directly)

ollama run hf.co/Tekimax/granite-ml-coder-GGUF

llama.cpp

llama-cli -m granite-ml-coder-Q4_K_M.gguf \
  -p "Write a Keras autoencoder for network-traffic anomaly detection"

LM Studio

Search for Tekimax/granite-ml-coder-GGUF, download the Q4_K_M file, and chat.

Suggested system prompt

You are an expert Python machine-learning engineer. Write correct, runnable code,
explain each pipeline step, watch for overfitting and how gradient descent
converges, and recommend the best model or formula for the task.

Intended use & limitations

Good for drafting Python ML code (scikit-learn, pandas, NumPy, Keras) and explaining ML concepts, fully offline. It's a 1B model — treat output as a fast first draft and verify before use. See the full model card for training details and limitations.

License

Apache-2.0 (inherited from ibm-granite/granite-3.1-1b-a400m-instruct).

Downloads last month
184
GGUF
Model size
1B params
Architecture
granitemoe
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

Model tree for Tekimax/granite-ml-coder-GGUF

Space using Tekimax/granite-ml-coder-GGUF 1