42 Downloads Updated 2 days ago
ollama run rafw007/gemma4-e2b-claude-coder
ollama launch claude --model rafw007/gemma4-e2b-claude-coder
ollama launch codex-app --model rafw007/gemma4-e2b-claude-coder
ollama launch openclaw --model rafw007/gemma4-e2b-claude-coder
ollama launch hermes --model rafw007/gemma4-e2b-claude-coder
ollama launch codex --model rafw007/gemma4-e2b-claude-coder
ollama launch opencode --model rafw007/gemma4-e2b-claude-coder
A family of custom models built on Gemma 4 (edge variants E2B and E4B), tuned to act as autonomous coding and administration agents. The models speak the Anthropic-compatible API, so they drive Claude Code fully locally — your code never leaves your machine and cloud token cost drops to zero.
Each model ships with a system prompt focused on real work inside a codebase: use tools instead of guessing, make minimal and precise code changes, return complete and runnable output, and verify after acting. Sampling follows Google’s official Gemma 4 recommendation (temperature 1.0, top_k 64, top_p 0.95), with thinking mode enabled for better planning before a tool call.
| Model | Base | Context | Purpose |
|---|---|---|---|
| gemma4-e2b-claude-coder | Gemma 4 E2B (eff. 2B / 5.1B with embeddings) | 64K | Fast everyday coding agent — edits, autocomplete, short agent loops. Lightest on memory. |
| gemma4-e4b-claude-coder | Gemma 4 E4B (eff. 4B / 8B with embeddings) | 64K | Stronger coding agent — better reasoning and tool use on larger tasks. |
| gemma4-e4b-claude-coder-admin | Gemma 4 E4B | 32K | Administration and system tasks (scripts, shell, devops). Smaller context fits 100% in GPU for higher, stable throughput. |
ollama launch claude --model <name>).The models were built and tested on:
| Model | Placement | Speed | Tool calling |
|---|---|---|---|
| gemma4-e2b-claude-coder | 100% GPU | ~55 tok/s | ✅ valid JSON |
| gemma4-e4b-claude-coder (64K) | 39% GPU / 61% CPU | ~27 tok/s (drops under load) | ✅ |
| gemma4-e4b-claude-coder-admin (32K) | 100% GPU | ~30 tok/s (stable) | ✅ |
All three passed an end-to-end test through Claude Code: real turns with tool calls and correct
responses (HTTP 200 on /v1/messages).
These models were designed, built and tested with the help of Claude Opus 4.8 — the best coding model in the world. Their system prompts, parameter choices and context configuration draw directly on its knowledge. In other words: the world’s best coding model prepared local models that take that work over right on your desk.
Apache 2.0 (inherited from the base Gemma 4).