Text Generation
GGUF
llama.cpp
q4_k_m
quantized
reasoning
compact-reasoning
grugthink
gemma-4
conversational
Instructions to use kai-os/Grug-12B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use kai-os/Grug-12B-GGUF with 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 kai-os/Grug-12B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf kai-os/Grug-12B-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 kai-os/Grug-12B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf kai-os/Grug-12B-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 kai-os/Grug-12B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf kai-os/Grug-12B-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 kai-os/Grug-12B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf kai-os/Grug-12B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/kai-os/Grug-12B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use kai-os/Grug-12B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kai-os/Grug-12B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kai-os/Grug-12B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kai-os/Grug-12B-GGUF:Q4_K_M
- Ollama
How to use kai-os/Grug-12B-GGUF with Ollama:
ollama run hf.co/kai-os/Grug-12B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use kai-os/Grug-12B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kai-os/Grug-12B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "kai-os/Grug-12B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use kai-os/Grug-12B-GGUF with Docker Model Runner:
docker model run hf.co/kai-os/Grug-12B-GGUF:Q4_K_M
- Lemonade
How to use kai-os/Grug-12B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kai-os/Grug-12B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Grug-12B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use kai-os/Grug-12B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kai-os/Grug-12B-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default kai-os/Grug-12B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use kai-os/Grug-12B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kai-os/Grug-12B-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "kai-os/Grug-12B-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Upload Grug 12B GGUF Q4_K_M
Browse files- .gitattributes +2 -0
- Grug-12B-Q4_K_M.gguf +3 -0
- README.md +57 -0
- banner.png +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Grug-12B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
banner.png filter=lfs diff=lfs merge=lfs -text
|
Grug-12B-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3928e9af604369c111ec7098660781f26e3dc350080e3786ef9dd69881967348
|
| 3 |
+
size 7381384128
|
README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: kai-os/Grug-12B
|
| 3 |
+
library_name: gguf
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
license: other
|
| 6 |
+
tags:
|
| 7 |
+
- gguf
|
| 8 |
+
- llama.cpp
|
| 9 |
+
- q4_k_m
|
| 10 |
+
- quantized
|
| 11 |
+
- reasoning
|
| 12 |
+
- compact-reasoning
|
| 13 |
+
- grugthink
|
| 14 |
+
- gemma-4
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
|
| 19 |
+
# Grug 12B GGUF
|
| 20 |
+
|
| 21 |
+
This is the adjacent GGUF release for [`kai-os/Grug-12B`](https://huggingface.co/kai-os/Grug-12B).
|
| 22 |
+
The main repo contains the merged Transformers/safetensors fine-tune; this repo contains a llama.cpp quantized file for local inference.
|
| 23 |
+
|
| 24 |
+
## Files
|
| 25 |
+
|
| 26 |
+
- `Grug-12B-Q4_K_M.gguf` - practical mixed-precision 4-bit GGUF quant, about 7.0 GB.
|
| 27 |
+
- `banner.png` - model banner.
|
| 28 |
+
|
| 29 |
+
## Conversion
|
| 30 |
+
|
| 31 |
+
Converted from the merged full model release, then quantized with llama.cpp.
|
| 32 |
+
|
| 33 |
+
- Source model: `kai-os/Grug-12B`
|
| 34 |
+
- llama.cpp commit: `4fc4ec5`
|
| 35 |
+
- Conversion outtype: `BF16`
|
| 36 |
+
- Uploaded quant: `Q4_K_M`
|
| 37 |
+
- Quantized size: `7024.34 MiB`
|
| 38 |
+
- Bits per weight: `4.95 BPW`
|
| 39 |
+
- SHA256: `3928e9af604369c111ec7098660781f26e3dc350080e3786ef9dd69881967348`
|
| 40 |
+
|
| 41 |
+
## Usage
|
| 42 |
+
|
| 43 |
+
Use a recent llama.cpp build with Gemma 4 / Gemma4 Unified GGUF support.
|
| 44 |
+
|
| 45 |
+
```bash
|
| 46 |
+
hf download kai-os/Grug-12B-GGUF Grug-12B-Q4_K_M.gguf
|
| 47 |
+
llama-cli -m Grug-12B-Q4_K_M.gguf -p "What is 2+2? Answer briefly." -n 64
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
## Training Summary
|
| 51 |
+
|
| 52 |
+
Grug 12B is a compact-reasoning fine-tune of `google/gemma-4-12B-it` trained with QLoRA, then merged into the base model for release.
|
| 53 |
+
The training target is terse, high-density reasoning that preserves constraints, branching decisions, invariants, edge cases, and final-answer checks while reducing unnecessary reasoning-token verbosity.
|
| 54 |
+
|
| 55 |
+
See the full model card at [`kai-os/Grug-12B`](https://huggingface.co/kai-os/Grug-12B) for the technique details, dataset provenance, filtering notes, and benchmark notes.
|
| 56 |
+
|
| 57 |
+
Thanks to [Lambda](https://lambda.com/) for the compute credits used for this work.
|
banner.png
ADDED
|
Git LFS Details
|