Instructions to use Hob-forge/smeagle-4b 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 Hob-forge/smeagle-4b 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 Hob-forge/smeagle-4b:Q4_K_M # Run inference directly in the terminal: llama cli -hf Hob-forge/smeagle-4b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Hob-forge/smeagle-4b:Q4_K_M # Run inference directly in the terminal: llama cli -hf Hob-forge/smeagle-4b: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 Hob-forge/smeagle-4b:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Hob-forge/smeagle-4b: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 Hob-forge/smeagle-4b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Hob-forge/smeagle-4b:Q4_K_M
Use Docker
docker model run hf.co/Hob-forge/smeagle-4b:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Hob-forge/smeagle-4b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Hob-forge/smeagle-4b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hob-forge/smeagle-4b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Hob-forge/smeagle-4b:Q4_K_M
- Ollama
How to use Hob-forge/smeagle-4b with Ollama:
ollama run hf.co/Hob-forge/smeagle-4b:Q4_K_M
- Unsloth Studio
How to use Hob-forge/smeagle-4b with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Hob-forge/smeagle-4b to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Hob-forge/smeagle-4b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Hob-forge/smeagle-4b to start chatting
- Pi
How to use Hob-forge/smeagle-4b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Hob-forge/smeagle-4b:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Hob-forge/smeagle-4b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Hob-forge/smeagle-4b with Docker Model Runner:
docker model run hf.co/Hob-forge/smeagle-4b:Q4_K_M
- Lemonade
How to use Hob-forge/smeagle-4b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Hob-forge/smeagle-4b:Q4_K_M
Run and chat with the model
lemonade run user.smeagle-4b-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Hob-forge/smeagle-4b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Hob-forge/smeagle-4b: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 Hob-forge/smeagle-4b:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Hob-forge/smeagle-4b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Hob-forge/smeagle-4b: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 "Hob-forge/smeagle-4b: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"
smeagle-4b — a small agentic helper you can run at home
smeagle is a compact (4B) agentic model — a terminal / software-engineering helper fine-tuned by
Hob Forge from Qwen/Qwen3.5-4B-Base. It's built for the people
big models leave behind: laptops and modest PCs, low RAM, no datacentre GPU. It calls tools, edits
files, writes and checks code, and drives an agent loop — and it fits in a few GB.
It works methodically: read before you write, verify before you claim, report honestly. Small, focused, and unreasonably effective at the work it was trained for.
Why it's worth your VRAM
Two honest measurements, run against the raw Qwen3.5-4B base as the baseline (same data, same load — no cherry-picking):
- −26.9% loss on the assistant tokens it was trained to produce (masked held-out cross-entropy:
base
0.568→ smeagle0.415). That's a large, real shift on the objective that matters. - 5 / 5 on an agentic task benchmark, zero tool-protocol failures — build-a-plugin (writes + syntax-checks
- reads back valid Python), multi-tool chaining, file read/modify/write, multi-step calc with verification, and tool-based word counting. Scored by task completion on a real harness, not by proxy loss.
It's native tool-calling tuned — hand it tool schemas (Ollama tools, or an OpenAI-compatible /v1
endpoint) and it emits proper tool_calls. No prompt-wrestling to make it act.
What smeagle can do for you
Small, but genuinely agentic. Give it tools and it:
- Uses tools correctly — picks the right tool, fills the arguments, no coaxing (native function-calling).
- Chains steps — computes a value, writes it to a file, reads it back, uses it in the next step; holds the thread across a multi-step plan.
- Works with files — creates, reads, modifies, and lists files; builds multi-file layouts.
- Writes and verifies code — generates Python functions/modules and syntax-checks them before claiming done, the way a careful engineer would.
- Recovers from errors — when a tool errors (a syntax bug, a bad path), it reads the message and fixes it instead of looping or giving up.
- Extends its own runtime — it can write a working plugin for an agent harness (it built one for the very harness it was benchmarked in).
- Respects constraints — when you need exact output, it gives you exact output, no chatter.
And with no tools at all, it's still a handy little coding/terminal assistant: write a function, explain a snippet, draft a shell command, reason through a small task.
Measured: 16/16 on our agentic task suite (scored by real task completion — tool chains, file ops, code-gen+verify, error-recovery, constrained output), and −27% loss vs the base model on its training objective.
Try this — getting started
ollama run hf.co/Hob-forge/smeagle-4b:Q8_0
Feel it out with a few prompts (no tools needed):
- Code:
Write a Python function is_prime(n), then walk me through why it's correct for 17 and 18. - Terminal:
I want to find every .log file over 10MB and delete it. Give me the one-liner and explain each part. - Reason:
A file has 12,000 lines and I need to process it in chunks of 500 without loading it all into memory. Sketch the approach.
Then give it tools (Ollama tools or an OpenAI-compatible /v1 endpoint) and let the agent out:
List the files in this project, read the main entry point, and tell me what it does.Create three files a.txt, b.txt, c.txt — each containing its own name — then list them to confirm.Write a factorial(n) function to factorial.py and syntax-check it before you tell me it's done.
The small-but-mighty part shows when it's driving — that's what it was trained for.
Choose your quant (does it run on YOUR machine?)
| File | Size | Fits comfortably in | Use it when |
|---|---|---|---|
smeagle-4b-v0.1-Q4_K_M.gguf |
2.6 GB | ~4 GB RAM/VRAM | smallest — older laptops, tight memory |
smeagle-4b-v0.1-Q5_K_M.gguf |
3.0 GB | ~5 GB | a little more headroom |
smeagle-4b-v0.1-Q6_K.gguf |
3.4 GB | ~5–6 GB | near-lossless, still small |
smeagle-4b-v0.1-Q8_0.gguf |
4.3 GB | ~6 GB | best quality; the recommended default |
262K context. Runs on CPU alone, or a sliver of GPU.
Run it with llama.cpp
git clone https://github.com/ggml-org/llama.cpp.git && cd llama.cpp && cmake -B build && cmake --build build -j
./build/bin/llama-cli -hf Hob-forge/smeagle-4b:Q8_0 -p "list the files here, then tell me what this project is"
Give it your own system prompt and tools and it stays out of the way. Ask it "who are you" with no system prompt and it'll introduce itself as smeagle — the identity is injected only in that bare case, never over your system message or tool calls.
Honest limits — where it actually breaks
We pushed it with a hard trap-suite (10 tasks built specifically to make a strong 4B fail — 8-hop dependent chains, an RPN evaluator, byte-exact files, self-referential puzzles) and re-ran the flaky ones several times so we'd report reliable behaviour, not a lucky single draw. The genuine limits — double-check it on these:
- Byte-exact / multi-line formatting. Told to write four exact lines with trailing spaces and no final newline, it collapsed them onto one line. It normalizes formatting — if you need bytes exactly, verify.
- Operand-order-sensitive code. In a generated RPN evaluator it got the subtract/divide order wrong
(
a op bvsb op a) — the classic bug. Review order-sensitive logic it writes. - Long single-file running state. Overwriting one file with a running value across many steps, it loses the thread (0/3 in our reruns). Give it distinct filenames or fewer hops when precision matters.
- Temperature-sensitive on one-shot precision. Some exact/self-referential tasks it gets right most of the time but not every time (e.g. "write a sentence stating its own word count" — ~2 in 3 at default temp 0.6). If you need it reliable in one shot, lower the temperature or let it retry.
What it does do well: the full agentic suite (16/16 — single-tool → multi-tool chains → file ops → code-gen+verify → error recovery → constrained output), plus long dependent tool-chains, building larger working modules with correct logic, and recognizing a tool's limits.
- It's 4B — a frontier model beats it on hard long-horizon work; smeagle's job is to be the capable little one that fits, not to out-muscle models 100× its size. And it's a specialist (agentic/terminal/ SWE), not a generalist oracle.
- Why v0.1 and not v0.2? We built a v0.2 and benchmarked both, in the open, on all 26 tasks with reruns. v0.2's apparent edge turned out to be temperature noise once repeated — no reliable agentic gain — and it regressed slightly on held-out SWE loss. So v0.1 stays the recommended release. That's the honest call, and we'll only ship a v0.2 when it clearly earns it.
License & rules — free for almost everyone
smeagle is released under the Hob Forge Community License v1.0 (LICENSE.md). In plain
English:
- Free to use, run, modify, quantize, and ship products with — commercially or not — for individuals, hobbyists, startups, research, schools, and small-to-mid-size companies. Run it on your laptop; build on it.
- Attribution always — keep a visible "Hob Forge — smeagle" credit when you redistribute it.
- The billboard clause — if you're a frontier AI lab or serve smeagle to 10M+ monthly users, you must publicly disclose that your product uses a Hob Forge fine-tune. If it helps you serve millions, say so.
- Guardrails (non-negotiable): no child-sexualizing/endangering use; don't abliterate-and-relabel as Hob Forge; don't pass its output off as human-authored to deceive.
The base model (Qwen/Qwen3.5-4B-Base, Apache-2.0) keeps its Apache-2.0 terms, unaffected.
Provenance
Fine-tuned from Qwen/Qwen3.5-4B-Base by Hob Forge — a tiny sovereign AI lab shipping small, honest
specialists for people who run AI on their own hardware. Not abliterated. Trained with anti-doom-loop and
long-horizon reasoning data. Full catalogue: huggingface.co/Hob-forge.
- Downloads last month
- 28
4-bit
5-bit
6-bit
8-bit
Model tree for Hob-forge/smeagle-4b
Base model
Qwen/Qwen3.5-4B-Base