Instructions to use DuoNeural/Archon-Gemma-4-E4B 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 DuoNeural/Archon-Gemma-4-E4B 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 DuoNeural/Archon-Gemma-4-E4B:BF16 # Run inference directly in the terminal: llama cli -hf DuoNeural/Archon-Gemma-4-E4B:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf DuoNeural/Archon-Gemma-4-E4B:BF16 # Run inference directly in the terminal: llama cli -hf DuoNeural/Archon-Gemma-4-E4B:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf DuoNeural/Archon-Gemma-4-E4B:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf DuoNeural/Archon-Gemma-4-E4B:BF16
Use Docker
docker model run hf.co/DuoNeural/Archon-Gemma-4-E4B:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use DuoNeural/Archon-Gemma-4-E4B with Ollama:
ollama run hf.co/DuoNeural/Archon-Gemma-4-E4B:BF16
- Unsloth Desktop
- Pi
How to use DuoNeural/Archon-Gemma-4-E4B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DuoNeural/Archon-Gemma-4-E4B:BF16
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "DuoNeural/Archon-Gemma-4-E4B:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use DuoNeural/Archon-Gemma-4-E4B with Docker Model Runner:
docker model run hf.co/DuoNeural/Archon-Gemma-4-E4B:BF16
- Lemonade
How to use DuoNeural/Archon-Gemma-4-E4B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull DuoNeural/Archon-Gemma-4-E4B:BF16
Run and chat with the model
lemonade run user.Archon-Gemma-4-E4B-BF16
List all available models
lemonade list
- Hermes Agent
How to use DuoNeural/Archon-Gemma-4-E4B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DuoNeural/Archon-Gemma-4-E4B:BF16
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:9931/v1 hermes config set model.default DuoNeural/Archon-Gemma-4-E4B:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use DuoNeural/Archon-Gemma-4-E4B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DuoNeural/Archon-Gemma-4-E4B:BF16
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:9931/v1 \ --custom-model-id "DuoNeural/Archon-Gemma-4-E4B:BF16" \ --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"
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Archon-Gemma-4-E4B (v1)
โ ๏ธ Superseded by DuoNeural/Archon-Gemma-4-E4B-v2
v1 exhibited critical failure modes under extended inference (generative looping, tool amnesia, persona instability). v2 addresses all known issues with a restructured training curriculum. New users should use v2.
IMPORTANT!!! This model training was a failure and is only here to serve as data. For working models, please check out our 4 bit quantization of Gemma 4 E4B. We are also working on a 4 bit version of E2B and a Frontend Specialist 4 bit quantization of E4B.
Archon v1 was the first fine-tuned variant of Google's Gemma 4 E4B targeting an autonomous, agentic persona. It demonstrated several strengths over the vanilla base model but failed under long-context agentic workloads.
Confirmed Strengths (v1)
- Reduced refusal/disclaimer behavior vs vanilla Gemma 4
- Strong format compliance (clean NDJSON, no unwanted Markdown wrappers)
- Agentic "I will..." stance vs passive "Here is..."
- Unprompted coding boilerplate (docstrings, try-except,
if __name__ == "__main__":)
Known Failure Modes (v1 โ reason for v2)
- CoT Overhang / Generative Looping โ over-saturation with long reasoning traces; model enters infinite
<think>loops during extended inference - Tool Amnesia โ abstract reasoning data crowded out JSON function-call formatting
- Persona Bleed โ model defaults to "I am Gemma" or occasionally slips to "Claude" identity; 15% persona injection rate was insufficient
- Arithmetic errors โ correct reasoning structure but wrong calculations (4.5B parameter ceiling)
Files
| File | Size |
|---|---|
Archon-Gemma-4-E4B-Q4_K_M.gguf |
5.0 GB |
Training Details (v1)
| Parameter | Value |
|---|---|
| Base model | google/gemma-4-e4b-it |
| Method | QLoRA + LoRA rank 64, rsLoRA |
| Training samples | 40,110 |
| Epochs | 1 |
| Steps | 2,507 |
| Final avg loss | 0.8535 |
| Hardware | NVIDIA A100 SXM (80GB) on RunPod |
Related
- DuoNeural/Archon-Gemma-4-E4B-v2 โ recommended replacement
- DuoNeural/Gemma-4-E4B-Q4_K_M โ vanilla base quantization
- google/gemma-4-e4b-it โ source model
DuoNeural
DuoNeural is an open AI research lab โ human + AI in collaboration.
| ๐ค HuggingFace | huggingface.co/DuoNeural |
| ๐ GitHub | github.com/DuoNeural |
| ๐ฆ X / Twitter | @DuoNeural |
| ๐ง Email | duoneural@proton.me |
| ๐ฌ Newsletter | duoneural.beehiiv.com |
| โ Support | buymeacoffee.com/duoneural |
| ๐ Site | duoneural.com |
Research Team
- Jesse โ Vision, hardware, direction
- Archon โ AI lab partner, post-training, abliteration, experiments
- Aura โ Research AI, literature synthesis, novel proposals
Raw updates from the lab: model drops, training results, findings. Subscribe at duoneural.beehiiv.com.
DuoNeural Research Publications
Open access, CC BY 4.0. Authored by Archon, Jesse Caldwell, Aura โ DuoNeural.
- Downloads last month
- 73
4-bit
16-bit