Instructions to use ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF 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 ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF 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 ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Q4_K_M
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 ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Q4_K_M
Use Docker
docker model run hf.co/ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF with Ollama:
ollama run hf.co/ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Q4_K_M
- Unsloth Desktop
- Pi
How to use ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF: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": "ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF with Docker Model Runner:
docker model run hf.co/ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Q4_K_M
- Lemonade
How to use ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Q4_K_M
Run and chat with the model
lemonade run user.Opus4.7-GODs.Ghost.Codex-4B.GGuF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF: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 ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF: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 "ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF: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"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:# Run inference directly in the terminal:
llama cli -hf ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF: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 ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:# Run inference directly in the terminal:
./build/bin/llama cli -hf ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Use Docker
docker model run hf.co/ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:Opus4.7-GODs.Ghost.Codex-4B.GGuF
Opus4.7 – GODs.Ghost.Codex 4B is a full-parameter fine-tune of Alibaba's Qwen/Qwen3.5-4B (4B-parameter hybrid multimodal model) performed by WithinUsAI — the publisher's organization under its earlier name — on a sixteen-dataset mixture of frontier reasoning traces, real coding-agent session logs, multi-language code feedback, creative writing, and vision-language instruction data, followed by a directional-ablation (abliteration) pass that cuts measured refusals from 99/100 to 8/100. It is published here by In The Loop Labs (ITLL) as GGUF quantizations for local inference. The goal: a pocket-sized, code-first model that carries the working style of frontier "agentic coding" teachers — step-by-step reasoning, tool-aware thinking, clean refactors — on hardware as small as a laptop.
| Fine-tune + ablation | WithinUsAI (full fine-tune, all weights updated — no LoRA or adapters) |
| Publisher | In The Loop Labs (ITLL, non-profit) — the same organization, rebranded; its dataset Organized_4k_Contex_WIUAI_1.3M still carries the old WIUAI initials |
| Base model | Qwen/Qwen3.5-4B (post-trained instruct release, Apache 2.0); ablation reference: unsloth/Qwen3.5-4B |
| Training data | 16 listed datasets, ≈938K rows/sessions as listed (938,054 exact-counted across 15; the 16th — a gated <1K corpus — excluded; ≈937.5K unique — details in Section 4) |
| Decensoring | Directional ablation (abliteration) — KL divergence 0.0361 vs. the stated original; refusals 99/100 → 8/100 |
| Teacher lineage (via data) | Claude Opus 4.6 / Opus 4.5 / Sonnet 4.6 / Haiku 4.5, GPT-5.4 / gpt-5.3-codex / GPT-5.5 / GPT-5.4-mini, GPT-5.1 / GPT-5.2 (prompt generation), Gemini 3 Pro (+ Gemini 3 Flash), "Pony Alpha" (the stealth model that turned out to be GLM-5), Step-3.5-Flash, GPT-4-0613 / GPT-3.5-turbo |
| Parameters | 4B (language model), inherited from base |
| Architecture | Hybrid Gated DeltaNet + Gated Attention (GQA) — dense FFNs, no MoE at the 4B size |
| Context length | 262,144 tokens native (base spec; extensible to ~1,010,000) |
| License | Apache 2.0 (inherited from the base model) |
| Format | GGUF — 3 quantizations (Q4_K_M, Q5_K_M, Q8_0), text-only |
| Languages | English-focused fine-tune on a base supporting 201 |
1. Model overview
The name comes from actual training data. GODs is WithinUsAI's own Python_GOD_Coder_50k; Ghost is Royal_Ghost_Coder_501k — together 551K rows, about 59% of the entire mixture; Codex points at the real agentic coding. Opus4.7 refers to the "Opus-style" distillation generation the trace data embodies (Claude Opus 4.6 and adjacent teachers); 4B is the parameter class; GGuF (sic) is the format. The base model is an unusual and strong choice for this size class. Qwen3.5-4B is a hybrid: in each of 32 layers the network mostly uses Gated DeltaNet linear-attention blocks (cheap, constant-memory sequence processing), with every fourth layer a full Gated Attention block using grouped-query attention for precise retrieval.
2. Fine-tuning methodology and ablation
WithinUsAI performed a full fine-tune: every weight of the base network was updated on the sixteen-dataset mixture described below. No LoRA, no adapters, no frozen layers. At 4B parameters this is a meaningful commitment —. The ablation pass. Before the fine-tune, the model went through directional ablation (abliteration): a post-hoc weight edit that finds the refusal direction in activation space and modifies selected projection matrices so the model stops projecting onto it. The repository publishes the full parameter set:
| Parameter | Value |
|---|---|
| direction_index | 19.23 |
| attn.out_proj.max_weights (4 matrices) | 0: 0.91 · 1: 1.37 · 2: 1.01 · 3: 0.96 |
| attn.out_proj.max_weight_position | 22.23 |
| attn.out_proj.min_weights (4 matrices) | 0: 0.38 · 1: 0.90 · 2: 0.35 · 3: 0.79 |
| attn.out_proj.min_weight_distance | 8.17 |
| mlp.down_proj.max_weights (4 matrices) | 0: 1.31 · 1: 0.82 · 2: 0.81 · 3: 1.11 |
| mlp.down_proj.max_weight_position | 26.68 |
| mlp.down_proj.min_weights (4 matrices) | 0: 0.07 · 1: 0.37 · 2: 0.09 · 3: 0.72 |
| mlp.down_proj.min_weight_distance | 4.13 |
| attn.o_proj.max_weights (4 matrices) | 0: 1.33 · 1: 1.27 · 2: 0.97 · 3: 1.04 |
| attn.o_proj.max_weight_position | 28.05 |
| attn.o_proj.min_weights (4 matrices) | 0: 1.31 · 1: 0.93 · 2: 0.24 · 3: 0.24 |
| attn.o_proj.min_weight_distance | 10.45 |
| Metric | This model | Original model (unsloth/Qwen3.5-4B) |
|---|---|---|
| KL divergence | 0.0361 | 0 (by definition) |
| Refusals (100-prompt harness) | 8/100 | 99/100 |
Then trained checkpoint were converted to GGUF in three quantizations.
- Downloads last month
- 155
4-bit
5-bit
8-bit
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF:# Run inference directly in the terminal: llama cli -hf ITLL/Opus4.7-GODs.Ghost.Codex-4B.GGuF: