A 4-bit MXFP4 quantization of Ornith-1.0-397B,
produced with qstream. Only the routed MoE experts
(~95% of the weights) are quantized to MXFP4; everything quality-sensitive — including the
always-on shared expert — stays BF16, bit-identical to the source.
~95% of the weights, sparsely activated (top-10/512) — the only place worth the size win
Shared expert (*shared_expert.*)
BF16
dense, runs on every token — quantizing it roughly doubles PPL loss for <1% size, so kept lossless
Full + linear (SSM) attention, router gates
BF16
sensitive / per-token — kept lossless from the source
Vision encoder + projector
BF16
image path bit-identical to base
Embeddings, lm_head, norms
BF16
unchanged
The source ships the routed experts as fused 3D tensors (experts.gate_up_proj [512, 2048, 4096]);
qstream splits them into per-expert 2D MXFP4 tensors that stock vLLM consumes. The config.jsonignore list (995 entries) names every BF16 module.
Quality & faithfulness
Metric
Result
What it shows
WikiText-2 perplexity (test, 296 547 tokens)
5.21
language modeling intact — a broken quant lands in the hundreds
GSM8K (40-task sample, CoT)
39/40 (97.5%)
math/reasoning preserved (the 1 miss was length-truncated, not wrong reasoning)
Routed-expert SQNR (sampled, MXFP4 vs BF16)
≈ 19.0 dB (18.0–19.6 dB; 60 tensors across 5 layers × 4 experts × 3 proj)
reconstruction error is just the unavoidable 4-bit rounding
Only the routed-expert FFN weights changed. ~95% of the weights are re-quantized to MXFP4;
everything else is bit-identical BF16 to the source.
Functional evals run on a single 268 GB GPU (NVIDIA B300): PPL 5.21 (well below the
35B sibling's 7.77, as expected for a far
larger model) and near-perfect GSM8K confirm the quant is coherent end-to-end.
SQNR ≈ 19 dB matches the 35B sibling (18.7 dB, where it corresponded to +0.94% WikiText-2
perplexity), and confirms the fused→per-expert split is correct (a wrong split would collapse
SQNR toward 0 dB).
Serving with vLLM
The architecture (Qwen3_5MoeForConditionalGeneration) is registered natively in vLLM ≥ 0.20.0.
At 225 GB it fits a single large-VRAM GPU (e.g. NVIDIA B300, 268 GB — verified) or
multi-GPU tensor parallelism (e.g. 4× 80 GB). Single-GPU:
bash
1vllm serve olka-fi/Ornith-1.0-397B-MXFP4 \2 --max-model-len 8192 --gpu-memory-utilization 0.92 --max-num-seqs 128\3 --load-format fastsafetensors --trust-remote-code
4# multi-GPU: add --tensor-parallel-size N (and drop --max-num-seqs if VRAM is ample)5# image: vllm/vllm-openai:latest-cu130 (vLLM 0.20.0, CUDA 13.0) verified for the arch
On Blackwell the MXFP4 MoE runs through vLLM's MarlinExperts kernel as weight-only FP4 (W4A16):
4-bit weights dequantized, matmul in BF16 — full memory savings, lossless activations.
Note: config.json declares mtp_num_hidden_layers: 1, but the base release ships no MTP
head weights, so multi-token speculative decoding is not available with this checkpoint.
Aloha! 🌺 Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding.
Highlights:
State-of-the-Art Coding Agents: Available in 9B-Dense, 31B-Dense, 35B-MoE, and 397B-MoE (post-trained on top of Gemma 4 and Qwen 3.5), achieving state-of-the-art performance among open-source models of comparable size on coding benchmarks such as Terminal-Bench 2.1, SWE-Bench, NL2Repo and OpenClaw.
Self-Improving Training Framework: Ornith-1.0 employs RL to learn to generate not only solution rollouts, but also the scallfold that drive those rollouts. By jointly optimizing the scaffold and the resulting solution, the model discovers better search trajectories and generates higher-quality solutions.
Licence: MIT licensed, globally accessible, and free from regional limitations.
Ornith 35B Benchmark Results
Ornith 1.0 397B
This model card documents Ornith-1.0-397B, the lightweight member of the Ornith family, designed for efficient single-GPU deployment.
Benchmarks
Ornith-1.0-397B
Qwen3.5-397B
Qwen3.7-Max
GLM-5.2-744B
Minimax-M3-428B
DeepSeek-V4-Pro-1.6T
Claude Opus 4.7
Claude Opus 4.8
Agentic Coding
Terminal-Bench 2.1 (Terminus-2)
77.5
53.5
73.5
81.0
64
64
70.3
85
Terminal-Bench 2.1 (Claude Code)
78.2
48.6
69.8
82.7
-
66.5
69.7
78.9
SWE-bench Verified
82.4
76.4
80.4
-
-
80.6
80.8
87.6
SWE-bench Pro
62.2
51.6
60.6
62.1
59
55.4
64.3
69.2
SWE-bench Multilingual
78.9
69.3
78.3
-
-
76.2
-
-
NL2Repo
48.2
36.8
47.2
48.9
42.1
-
-
69.7
Claw-eval Avg
77.1
70.7
65.2
-
-
75.8
78.2
-
SWE Atlas - QnA
41.2
20.4
-
-
37.9
27.2
40.3
48.8
SWE Atlas - RF
42.6
18.4
-
-
-
-
48.6
46.7
SWE Atlas - TW
39.1
18.5
-
-
30.8
-
38.5
-
* Terminal-Bench 2.1 (Terminus-2): We evaluate Terminal-Bench 2.1 using the Harbor/Terminus-2 framework with parser=json, temperature=1.0, top_p=1.0, and a 128K context window. Each run uses a 4-hour timeout with 32 CPU cores and 48GB RAM, and results are averaged over 5 runs. We adjust the Qwen chat template to ensure consistency between training and inference (https://huggingface.co/deepreinforce-ai/Ornith-1.0-397B/blob/main/chat_template.jinja), and modify Harbor to align with vLLM's reasoning_content key.
* Terminal-Bench 2.1 (Claude Code): We evaluate Terminal-Bench 2.1 using Claude Code 2.1.126 with parser=json, temperature=1.0, top_p=1.0, max_new_tokens=131072. Results are averaged over 5 runs. Again, Qwen chat template needs to be modified.
* SWE-Bench Verified, Pro and Multilingual: using OpenHands harness with temp=1.0, top_p=0.95, 256k context window.
* SWE Atlas QnA, RF, TW: using mini SWE agent harness with temp=1.0, top_p=0.95, 128K context window. Results are averaged over 5 runs.
* NL2Repo: with temperature=1.0, top_p=1.0, 400K context, 48K output and anti-hacking filters.
* ClawEval: An agentic code benchmark over real-user task distributions; temp=0.6 and 256K context.
Quickstart
📝 NOTE
Ornith-1.0-397B is a reasoning model: by default the assistant turn opens with a <think> … </think> block before the final answer. The serving recipes below enable a reasoning parser so the chain-of-thought is returned in a separate reasoning_content field, and a tool-call parser so the model's <tool_call> blocks are surfaced as OpenAI-style tool_calls.
Serving Ornith-1.0-397B requires recent runtimes:
Transformers ≥ 5.8.1
vLLM ≥ 0.19.1
SGLang ≥ 0.5.9
Serving Ornith-1.0-397B
The two recipes below stand up an OpenAI-compatible server on a single 8×80GB GPU node (tensor-parallel 8). Adjust --tensor-parallel-size / --tp to the number of GPUs you have.
For a quick local test (or to script offline generation), load the model directly with Transformers. Make sure you have a recent release installed — see the Transformers installation guide; Ornith-1.0-397B requires transformers >= 5.8.1.
python
1from transformers import AutoModelForCausalLM, AutoTokenizer
23model_name ="deepreinforce-ai/Ornith-1.0-397B"45tokenizer = AutoTokenizer.from_pretrained(model_name)6model = AutoModelForCausalLM.from_pretrained(7 model_name,8 dtype="auto",9 device_map="auto",10)1112messages =[13{"role":"user","content":"Write a Python function is_prime(n). Keep it short."}14]15text = tokenizer.apply_chat_template(16 messages,17 tokenize=False,18 add_generation_prompt=True,19)2021inputs = tokenizer(text, return_tensors="pt").to(model.device)22generated = model.generate(23**inputs,24 max_new_tokens=512,25 do_sample=True,26 temperature=0.6,27 top_p=0.95,28 top_k=20,29)30output_ids = generated[0][inputs.input_ids.shape[1]:]3132# The reply contains a <think> ... </think> reasoning block followed by the answer.33content = tokenizer.decode(output_ids, skip_special_tokens=True)34print(content)
To split the reasoning trace from the final answer, parse on the </think> marker:
Using Ornith-1.0-397B via the Chat Completions API
Once a vLLM or SGLang server is running, talk to it with any OpenAI-compatible client.
Basic Usage
python
1from openai import OpenAI
23client = OpenAI(4 base_url="http://localhost:8000/v1",5 api_key="EMPTY",# any non-empty string works for a local server6)78response = client.chat.completions.create(9 model="Ornith-1.0-397B",10 messages=[11{"role":"user","content":"Write a one-line Python lambda that squares a number."}12],13 temperature=0.6,14 top_p=0.95,15 max_tokens=1024,16)1718message = response.choices[0].message
19# reasoning_content holds the <think> trace; content holds the final answer.20print("reasoning:",getattr(message,"reasoning_content",None))21print("answer:", message.content)
You can also stream tokens, or hand the model tools — Ornith-1.0-397B emits well-formed function calls that the server parses into the standard tool_calls field:
python
1tools =[2{3"type":"function",4"function":{5"name":"get_weather",6"description":"Get the current weather for a city",7"parameters":{8"type":"object",9"properties":{"city":{"type":"string"}},10"required":["city"],11},12},13}14]1516response = client.chat.completions.create(17 model="Ornith-1.0-397B",18 messages=[{"role":"user","content":"What is the weather in Paris right now?"}],19 tools=tools,20 tool_choice="auto",21 temperature=0.6,22 max_tokens=2048,23)2425tool_call = response.choices[0].message.tool_calls[0]26print(tool_call.function.name, tool_call.function.arguments)27# -> get_weather {"city": "Paris"}
You can point any OpenAI-compatible SDK (Python, Node.js, etc.) or curl at the same /v1/chat/completions endpoint.
Agentic Usage
Ornith-1.0-397B excels in tool-calling and agentic coding capabilities.
Agent Frameworks
Because Ornith-1.0-397B exposes an OpenAI-compatible endpoint with tool calling, it works out of the box with standard agent frameworks. Below is a minimal example that connects Ornith-1.0-397B to tools through an MCP server.
python
1import os
2from openai import OpenAI
34client = OpenAI(5 base_url=os.getenv("OPENAI_BASE_URL","http://localhost:8000/v1"),6 api_key=os.getenv("OPENAI_API_KEY","EMPTY"),7)89tools =[10{11"type":"function",12"function":{13"name":"run_shell",14"description":"Run a shell command and return its output.",15"parameters":{16"type":"object",17"properties":{18"command":{"type":"string","description":"The command to run"}19},20"required":["command"],21},22},23}24]2526messages =[{"role":"user","content":"List the Python files in the current directory."}]2728response = client.chat.completions.create(29 model="deepreinforce-ai/Ornith-1.0-397B",30 messages=messages,31 tools=tools,32 temperature=0.6,33 top_p=0.95,34)35print(response.choices[0].message)
Examples of using Ornith with agent harness:
Hermes Agent
bash
1# Hermes talks to any OpenAI-compatible endpoint — point it at your Ornith server.2exportOPENAI_BASE_URL="http://localhost:8000/v1"3exportOPENAI_API_KEY="EMPTY"4exportMODEL="deepreinforce-ai/Ornith-1.0-397B"
OpenClaw
bash
1# OpenClaw talks to any OpenAI-compatible endpoint — point it at your Ornith server.2exportOPENAI_BASE_URL="http://localhost:8000/v1"3exportOPENAI_API_KEY="EMPTY"4exportOPENAI_MODEL="deepreinforce-ai/Ornith-1.0-397B"
Unsloth Studio
bash
1pip install unsloth
23# Load Ornith for fast local inference or fine-tuning (Python):4# from unsloth import FastLanguageModel5# model, tokenizer = FastLanguageModel.from_pretrained(6# "deepreinforce-ai/Ornith-1.0-397B",7# max_seq_length=262144,8# load_in_4bit=True,9# )
OpenHands
bash
1pip install openhands-ai
23# OpenHands routes through LiteLLM; the "openai/" prefix selects the OpenAI-compatible path.4exportLLM_MODEL="openai/deepreinforce-ai/Ornith-1.0-397B"5exportLLM_BASE_URL="http://localhost:8000/v1"6exportLLM_API_KEY="EMPTY"78# Launch the CLI (or run the official OpenHands Docker image with the same env vars).9openhands
Coding CLIs
Ornith-1.0-397B is optimized for terminal-based coding agents. Point any OpenAI-compatible coding CLI at your Ornith-1.0-397B endpoint (set OPENAI_BASE_URL and OPENAI_API_KEY) to understand large codebases, automate tedious work, and ship faster.
OpenCode
bash
1# Register your local Ornith endpoint as a provider in ~/.config/opencode/opencode.json:2#3# {4# "$schema": "https://opencode.ai/config.json",5# "provider": {6# "ornith": {7# "npm": "@ai-sdk/openai-compatible",8# "name": "Ornith (local)",9# "options": { "baseURL": "http://localhost:8000/v1", "apiKey": "EMPTY" },10# "models": { "deepreinforce-ai/Ornith-1.0-397B": { "name": "Ornith-1.0-397B" } }11# }12# }13# }1415opencode
Citation
If you find our work helpful, feel free to give us a cite.
bibtex
1@misc{ornith_397b,
2 title = {{Ornith-1.0-397B}: Agentic Coding, Open to All},
3 url = {https://deep-reinforce.com/ornith_1_0.html},
4 author = {{DeepReinforce Team}},
5 year = {2026}
6}