CoolFace
Modelpublic

deadbydawn101/gemma-4-E4B-Agentic-Opus-Reasoning-GeminiCLI-GGUF

sourceHugging Facegemmaupdated 5mo agoView on Hugging Face
32likes1.4kdownloads
Model Card

<div align="center">

Gemma 4 E4B — Opus Reasoning + Claude Code | GGUF

GGUF version of our Opus 4.6 reasoning model. Ollama ✅ LM Studio ✅ llama.cpp ✅ Reasoning baked in — no adapter needed.

Built by RavenX AI · GGUF converted from MLX source

![Ollama](https://ollama.com) ![LM Studio](https://lmstudio.ai) ![llama.cpp](https://github.com/ggml-org/llama.cpp) ![License](https://ai.google.dev/gemma/docs/gemma4license)

</div>


What is this?

This is the GGUF version of `gemma-4-E4B-Agentic-Opus-Reasoning-GeminiCLI-mlx-4bit` — Gemma 4 E4B with Opus 4.6 reasoning and Claude Code LoRA fused directly into the weights.

No adapter needed, no extra config — just load and run with Claude-style <think> reasoning baked in.

Looking for the Apple Silicon MLX version?MLX 4-bit model (optimized for Metal GPU)

Available Quantizations

QuantizationSizeUse case
Q4_K_M2.7 GBRecommended — best balance of quality and speed
Q5_K_M3.1 GBHigher quality, slightly more RAM
Q8_04.5 GBNear-lossless, needs more RAM
F168.3 GBFull precision GGUF
Sizes will be updated once conversion is complete.

🦙 Ollama — One Command

bash
ollama run hf.co/deadbydawn101/gemma-4-E4B-Agentic-Opus-Reasoning-GeminiCLI-GGUF

With a custom system prompt

Create a Modelfile:

FROM hf.co/deadbydawn101/gemma-4-E4B-Agentic-Opus-Reasoning-GeminiCLI-GGUF

SYSTEM "You are a helpful assistant with tool-use capabilities. Think through problems step by step using <think> tags."

PARAMETER temperature 0.7
PARAMETER num_ctx 8192
bash
ollama create ravenx-gemma4 -f Modelfile
ollama run ravenx-gemma4

OpenAI-compatible API

bash
curl http://localhost:11434/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hf.co/deadbydawn101/gemma-4-E4B-Agentic-Opus-Reasoning-GeminiCLI-GGUF",
    "messages": [{"role": "user", "content": "Explain why RSA encryption is hard to break."}]
  }'

💻 LM Studio

  1. 1.Open LM Studio
  2. 2.Search for deadbydawn101/gemma-4-E4B-Agentic-Opus-Reasoning-GeminiCLI-GGUF
  3. 3.Download any quantization (Q4KM recommended)
  4. 4.Load and chat — reasoning is baked in

🔧 llama.cpp

CLI

bash
llama-cli \
  -hf deadbydawn101/gemma-4-E4B-Agentic-Opus-Reasoning-GeminiCLI-GGUF \
  -p "Explain why RSA encryption is hard to break." \
  -n 1024

Server (OpenAI-compatible)

bash
llama-server \
  -hf deadbydawn101/gemma-4-E4B-Agentic-Opus-Reasoning-GeminiCLI-GGUF \
  --port 8080

# Use with any OpenAI client
curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma-4-E4B-Agentic-Opus-Reasoning-GeminiCLI-GGUF",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

What's different from the base Gemma 4

Base Gemma 4 E4BThis model
<think> tag reasoning✅ baked in
Claude-style structured answers
Tool-use patterns
Requires adapter❌ no adapter needed
Vision support
Ollama / LM Studio / llama.cpp

🧪 Live Demos — Try It Now

<div align="center">

SpaceWhat to try
🔥 **Agentic Tool Calling Demo**Live agentic loop — tool calling, <think> reasoning, calculator, web search
🐳 **OpenClaw Sandbox Demo**OpenClaw-style orchestration, Docker runtime, sandbox/approval modes

</div>


🧩 Agent Stack Compatibility

This model is built to sit inside a real agent stack, not just a chat box.

LayerRole
Gemma 4 E4B Opus Reasoning + Claude CodeReasoning + tool-use baked into weights
Gemini CLICoding agent + tool orchestration
OpenHarnessHarness runtime, tool loop, swarm, hooks, memory
OpenClawOrchestration, sessions, skills, messaging
Hermes skillAgent behavior for concise, terminal-first execution

Gemini CLI fork · TurboQuant-MLX · RavenX Inference Harness


How it was made

Training data

SourceExamples
Crownelius/Opus-4.6-Reasoning-2100x-formatted2,054
Claude Code tool-use patterns140 files
Total2,163

Training

Base:      deadbydawn101/gemma-4-E4B-mlx-4bit
Method:    SFT completions-only (mlx_vlm.lora)
Rank:      8 · Alpha: 16 · LR: 1e-5 · Iters: 1,000
Hardware:  Apple M4 Max 128GB · Peak mem: 7.876 GB

Final loss: ~3.5e-7

Fusion + GGUF Conversion

  1. 1.All 378 LoRA pairs merged via weight arithmetic into base weights
  2. 2.De-quantized from MLX 4-bit to FP16
  3. 3.Converted to GGUF using llama.cpp/convert_hf_to_gguf.py
  4. 4.Quantized to multiple GGUF formats using llama-quantize

Related Models

ModelFormatSizeNotes
MLX 4-bit (source)MLX~10.5 GBApple Silicon optimized, Metal GPU
This model (GGUF)GGUFvariesOllama, LM Studio, llama.cpp
Base model (4-bit)MLX4.86 GBBase model (use with adapter)
LoRA adapter onlySafetensors658 MBAdapter-only
2B abliteratedMLX3.34 GB2B abliterated
21B MoE REAPMLX12 GB21B MoE REAP

License

Gemma Terms of Use


<div align="center"> Built with 🖤 by <a href="https://github.com/DeadByDawn101">RavenX AI</a> · <a href="https://github.com/DeadByDawn101/turboquant-mlx">TurboQuant-MLX</a> · <a href="https://github.com/DeadByDawn101/gemini-cli">Gemini CLI</a> </div>