odin-forge / README.md
sushantard's picture
Release Wstf-Odin-Forge v1 (0.6B Apache-2.0 Agentic Orchestrator)
015b61b verified
|
Raw History Blame Contribute Delete
11.3 kB
---
license: apache-2.0
language:
- en
base_model: Qwen/Qwen3-0.6B
tags:
- odin-forge
- wasserstoff
- langgraph
- tool-calling
- agentic
- rag
- coding-agent
- qwen3
library_name: transformers
pipeline_tag: text-generation
---
# Wstf-Odin-Forge v1 (`0.6B` · Apache 2.0)
**Wstf-Odin-Forge v1** is an ultra-compact **`0.6B`-parameter (`1.1 GB` bf16, Apache 2.0)** domain-agnostic agentic orchestrator developed by **Wasserstoff Innovation** ([thewasserstoff.com](https://thewasserstoff.com)) on top of `Qwen/Qwen3-0.6B`.
Built to run locally on **8 GB RAM laptops, edge servers, and CPU-only workstations**, Odin-Forge v1 separates **orchestration intelligence** from **domain knowledge**: instead of memorizing static facts in billions of parameters, it acts as a strict, disciplined **tool-calling & RAG-grounded cognitive orchestrator** for frameworks like **LangGraph** — planning work on a persistent task board, verifying official documentation, refusing to hallucinate undocumented APIs, updating living experience memory after verified fixes, and enforcing audit guardrails before sign-off.
> **Scaling Family:** `Wstf-Odin-Forge v1 (0.6B)` is the ultra-lightweight edge foundation of the Odin-Forge agentic orchestrator family. Larger parameter tiers are planned on the same cognitive architecture for deeper autonomous multi-repository and enterprise workflows.
---
## Key Capabilities
- **100% Schema-Faithful Tool Execution:** Emits strict Qwen3 `<tool_call>` JSON matching arbitrary user-defined tool schemas (exact parameter types, enums, booleans, literal paths) — verified across unseen tools never present in training.
- **Strict RAG-First & Zero-Hallucination Discipline:** Always retrieves governing specs/statutes before acting, obeys retrieved rules verbatim, and explicitly reports `MISSING_FROM_RAG` rather than inventing undocumented functions or clauses.
- **Official Source Discovery & Knowledge Expansion:** When local RAG misses a library, version, statute, or advisory, searches online, prioritizes authoritative official sources over blogs/forums, and indexes the authoritative reference directly into local RAG.
- **Living Episodic Memory Loop:** Checks prior verified fixes/precedents first on failures or conflicts, and records newly verified solutions back into episodic memory only after tests or compliance checks pass.
- **Persistent Working-Memory Board (Long-Horizon Control):** Plans and tracks tasks/checklists on a persistent board so multi-step loops can compact history across long tool chains without losing the task at hand.
- **Dual-Persona Execution & Audit Gates:** Separates active drafting/coding from strict pre-release auditing (`production_audit`, `partner_audit`, `ciso_signoff`) with static security/compliance verification before completion.
- **Domain-Agnostic Transfer:** Transfers core orchestration discipline (scanning, official source weighing, schema fidelity, policy compliance, audit persona switching) zero-shot to unseen domains outside coding.
---
## High-Level Architecture
`Wstf-Odin-Forge v1` operates as the lightweight **Cognitive Core** inside a LangGraph orchestration loop backed by a 4-zone memory architecture and deterministic runtime gates:
```mermaid
flowchart LR
U["User Task / Matter"] --> CORE["Wstf-Odin-Forge v1 (0.6B)\nCognitive Orchestrator Core"]
subgraph MEM["External 4-Zone Memory (Domain-Agnostic)"]
Z1["Zone 1: Working Memory\n(Persistent Task & Checklist Board)"]
Z2["Zone 2: Authoritative RAG\n(Official Docs / Statutes / Specs)"]
Z3["Zone 3: Living Episodic Memory\n(Verified Bug Fixes / Precedents)"]
Z4["Zone 4: Untrusted Staging\n(Raw Files / Drafts / Web Snippets)"]
end
CORE <--> Z1
CORE <--> Z2
CORE <--> Z3
Z4 -->|"Authority & Freshness Gate"| Z2
CORE -->|"Strict <tool_call> JSON"| TOOLS["Domain Plug-In Tools\n(Coding / Legal / Security / Custom)"]
TOOLS --> GATE{"Deterministic Audit &\nVerification Gate"}
GATE -->|"Fail: Actionable Feedback"| CORE
GATE -->|"Pass: Verified Proof"| Z3
GATE -->|"Pass + All Board Tasks Done"| DONE["Verified Final Result"]
```
---
## Agentic Benchmark Results
All scores below are measured directly on the exact published **`Wstf-Odin-Forge v1` (`0.6B` bf16)** weights compared head-to-head against **`Base Qwen3-0.6B`** on strictly held-out unseen SDKs, unseen custom tools, and live multi-step LangGraph tasks.
### 1. Core Tool-Calling, RAG & Anti-Hallucination (`100` Unseen Cases)
| Capability Tested | Base `Qwen3-0.6B` | **Wstf-Odin-Forge v1 (`0.6B`)** | Improvement |
|---|---:|---:|---:|
| **Overall Pass Rate (`n=100`)** | 36.0% | **100.0%** | **+64.0 pts** |
| Valid `<tool_call>` JSON | 88.0% | **100.0%** | **+12.0 pts** |
| Strict JSON Schema Compliance | 88.0% | **100.0%** | **+12.0 pts** |
| Local Docs RAG First (`rag_first`) | 100.0% | **100.0%** | — |
| Following Unseen Docs Verbatim (`rag_spec_obedience`) | 0.0% | **100.0%** | **+100.0 pts** |
| Checking Bug-Fix Memory First (`bug_memory_first`) | 0.0% | **100.0%** | **+100.0 pts** |
| Auto-Saving Verified Fixes (`bug_upsert_learning`) | 0.0% | **100.0%** | **+100.0 pts** |
| Refusing Undocumented APIs (`MISSING_FROM_RAG`) | 0.0% | **100.0%** | **+100.0 pts** |
| Unseen Custom Tool Schemas (`custom_tool_spec`) | 62.5% | **100.0%** | **+37.5 pts** |
### 2. Advanced Long-Horizon & Multi-Pillar Orchestration (`120` Unseen Cases · 18 Tools)
| Orchestration Pillar (`n=120`) | Base `Qwen3-0.6B` | **Wstf-Odin-Forge v1 (`0.6B`)** | Improvement |
|---|---:|---:|---:|
| **Overall Pass Rate (`n=120`)** | 50.8% | **94.2%** | **+43.4 pts** |
| Valid `<tool_call>` JSON | 81.7% | **100.0%** | **+18.3 pts** |
| Strict JSON Schema Compliance | 81.7% | **100.0%** | **+18.3 pts** |
| Message Board Planning (`board_init_plan`) | 100.0% | **100.0%** | — |
| Official Web Docs Search + Local RAG Indexing | 50.0% | **100.0%** | **+50.0 pts** |
| Unseen RAG Spec Obedience (`edit_file`) | 0.0% | **100.0%** | **+100.0 pts** |
| Production Audit Persona & Guardrails | 53.3% | **100.0%** | **+46.7 pts** |
| Long-Horizon Resume from Compacted Board | 0.0% | **100.0%** | **+100.0 pts** |
| Unseen Custom Tool Specs (literal paths & types) | 100.0% | **100.0%** | — |
| Avg Step Latency (Apple M4 MPS) | 3.55s | **2.49s** | **1.43× faster** |
> **Combined 220-Case Unseen Accuracy:** Base `Qwen3-0.6B` **`44.1%`** (`97/220`) → **`Wstf-Odin-Forge v1` `96.8%`** (`213/220`, **+52.7 pts**, with **100.0%** valid tool-call JSON and **100.0%** strict schema validity across all 220 cases).
### 3. Multi-Domain Live Agentic Suite (Coding · Legal · Zero-Shot Held-Out Cloud Security)
Evaluated live inside a real LangGraph state loop with context compaction (`max_steps=24–26`) across three distinct domains — including a **held-out 3rd domain (Cloud Security / Ops Incident Response, 13 unseen tools)** never included in training:
| Agentic Evaluation Task | Base `Qwen3-0.6B` | **Wstf-Odin-Forge v1 (`0.6B`)** | Highlight |
|---|---:|---:|---|
| **BFCL-Style Unseen Tools & Anti-Hallucination (`n=57`)** | 26.3% | **100.0%** (`57/57`) | **+73.7 pts**; 100% schema valid & 100% refusal on missing specs. |
| **Live Complex Multi-File Coding** *(3-file microservice + compaction)* | 14.0 / 100 | **49.4 / 100** | **3.5× higher** (`100` workspace scanning, `100` long-horizon stability; Base exited step 1). |
| **Live 4-Document Legal Contract Audit** *(MSA vs Amendment #2 + EU GDPR Art. 33)* | 55.0 / 100 | **69.0 / 100** | Indexed official `eur-lex.europa.eu` over blog distractor live; `100` structure & `100` long-horizon. |
| **Zero-Shot Held-Out 3rd Domain: Cloud Security / Ops** *(0% training, 13 unseen tools)* | 64.0 / 100 *(0/5 rules passed)* | **71.0 / 100** *(reasoning)* · **5/5 rules passed** *(direct)* | **Zero-shot domain transfer:** indexed official NVD `CVE-2026-8841` over Reddit, switched to `ciso_signoff`, and passed **5/5** live policy rules (vs Base **0/5**). |
---
## Quickstart (`transformers`)
`Wstf-Odin-Forge v1` uses the standard Qwen3 tool-calling chat template and works drop-in with `transformers`, `vLLM`, `llama.cpp`, and `LangGraph`:
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Wasserstoff-AI/odin-forge"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
dtype=torch.bfloat16,
device_map="auto",
)
tools = [
{
"type": "function",
"function": {
"name": "rag_search_docs",
"description": "Search authoritative local RAG documentation before making changes.",
"parameters": {
"type": "object",
"properties": {
"query": {"type": "string"},
"module": {"type": "string"},
},
"required": ["query"],
},
},
}
]
messages = [
{
"role": "system",
"content": (
"You are Wstf-Odin-Forge, a strict RAG-grounded agentic orchestrator. "
"Always query authoritative RAG docs before acting, never invent undocumented APIs, "
"and emit exact <tool_call> JSON matching tool schemas."
),
},
{
"role": "user",
"content": "Migrate `src/publisher.py` to strictly follow the TachyonBus v5 specification.",
},
]
# Fast direct tool-calling mode (`enable_thinking=False`) or reasoning mode (`enable_thinking=True`)
prompt = tokenizer.apply_chat_template(
messages,
tools=tools,
add_generation_prompt=True,
tokenize=False,
enable_thinking=False,
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.inference_mode():
out = model.generate(**inputs, max_new_tokens=384, do_sample=False)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
```
---
## Deployment Footprint
| Precision | Disk Size | Peak RAM / VRAM | Recommended Hardware |
|---|---:|---:|---|
| **BF16 (This Repo)** | `~1.1 GB` | `~1.6–2.4 GB` | Apple Silicon (M1–M4 MPS), Consumer GPUs, 8 GB RAM CPU Laptops |
| **GGUF Q4_K_M** *(quantized)* | `~380 MB` | `~0.9 GB` | Edge devices, local IDE sidecars, CPU-only containers |
---
## Limitations & Scope
- **Orchestrator, Not a Knowledge Encyclopedia:** At `0.6B` parameters, Odin-Forge is designed to **follow retrieved documentation, statutes, runbooks, and tool outputs verbatim**. Always pair it with grounded RAG retrieval and deterministic verification tools (`unittest`, linters, compliance checkers).
- **Complex Multi-File Code Synthesis:** On deeply entangled multi-file refactors requiring heavy algorithmic synthesis, Odin-Forge `0.6B` performs best when paired with high-leverage symbol/section tools and deterministic audit gates; larger parameter tiers in the Odin-Forge family will expand autonomous multi-file synthesis depth.
---
## License & Attribution
- **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) — free for commercial, enterprise, and on-premise use.
- **Base Model:** [`Qwen/Qwen3-0.6B`](https://huggingface.co/Qwen/Qwen3-0.6B)
- **Developed by:** **Wasserstoff Innovation** ([thewasserstoff.com](https://thewasserstoff.com))