Text Generation
GGUF
English
agentic
agent
tool-use
function-calling
code
terminal
swe
qwen3.5
small-models
edge
llama.cpp
ollama
conversational
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 @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": "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"
Card: correct Honest Limits after stability reruns (self-ref was temp-noise, not a failure); v0.1 stays recommended over v0.2
1234fac verified | base_model: Qwen/Qwen3.5-4B-Base | |
| base_model_relation: finetune | |
| pipeline_tag: text-generation | |
| library_name: gguf | |
| license: other | |
| license_name: hobforge-community-1.0 | |
| license_link: LICENSE.md | |
| language: | |
| - en | |
| tags: | |
| - gguf | |
| - agentic | |
| - agent | |
| - tool-use | |
| - function-calling | |
| - code | |
| - terminal | |
| - swe | |
| - qwen3.5 | |
| - small-models | |
| - edge | |
| - llama.cpp | |
| - ollama | |
| # 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**](https://huggingface.co/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` β smeagle `0.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 | |
| ```bash | |
| 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 | |
| ```bash | |
| 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 b` vs `b 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`](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](https://huggingface.co/Hob-forge). | |