deep-reinforce commited on
Commit
ca78039
·
verified ·
1 Parent(s): 29de4ff

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +325 -0
README.md CHANGED
@@ -1,3 +1,328 @@
1
  ---
 
2
  license: mit
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: transformers
3
  license: mit
4
+ license_link: https://huggingface.co/deepreinforce-ai/Ornith-1.0-397B/blob/main/LICENSE
5
+ pipeline_tag: text-generation
6
  ---
7
+
8
+
9
+ <img width="600px" src="assets/ornith_logo.png">
10
+
11
+ [![Ornith Blog](https://img.shields.io/badge/%F0%9F%A6%A2%EF%B8%8F%20Ornith%20Blog%20-FD8E5B)](https://deep-reinforce.com/ornith.html)
12
+
13
+ # Ornith-1.0-397B
14
+
15
+ Aloha! 🌺 Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding.
16
+
17
+ Highlights:
18
+
19
+ - **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.
20
+ - **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.
21
+ - **Licence**: MIT licensed, globally accessible, and free from regional limitations.
22
+
23
+ <img style="width: 100%; max-width: 900px;" src="assets/ornith_397b_eval.png" alt="Ornith 35B Benchmark Results" title="Ornith 35B Benchmark Results">
24
+
25
+ ## Ornith 1.0 397B
26
+
27
+ This model card documents **Ornith-1.0-397B**, the lightweight member of the Ornith family, designed for efficient single-GPU deployment.
28
+
29
+
30
+ ### Benchmarks
31
+
32
+ <div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;width:100%;margin:0 auto;padding:16px 0">
33
+ <table style="width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px">
34
+ <thead><tr>
35
+ <th style="width:28%;padding:10px 7px;text-align:left;font-weight:600;border-bottom:2px solid #FD8E5B;color:#FD8E5B"></th><th style="width:14.4%;padding:10px 7px;text-align:center;font-weight:700;border-bottom:2px solid #FD8E5B;color:#FD8E5B;font-size:14px;background:rgba(253, 142, 91, 0.12)">Ornith-1.0-397B-A3B</th><th style="width:14.4%;padding:10px 7px;text-align:center;font-weight:500;border-bottom:2px solid #FD8E5B;color:#FD8E5B;font-size:14px;">Qwen3.5-35B-A3B</th><th style="width:14.4%;padding:10px 7px;text-align:center;font-weight:500;border-bottom:2px solid #FD8E5B;color:#FD8E5B;font-size:14px;">Qwen3.6-35B-A3B</th><th style="width:14.4%;padding:10px 7px;text-align:center;font-weight:500;border-bottom:2px solid #FD8E5B;color:#FD8E5B;font-size:14px;">Gemma4-31B</th><th style="width:14.4%;padding:10px 7px;text-align:center;font-weight:500;border-bottom:2px solid #FD8E5B;color:#FD8E5B;font-size:14px;border-left:2px solid rgba(253, 142, 91, 0.55);">Qwen3.5-397B</th></tr></thead>
36
+ <tbody>
37
+ <tr><td colspan="5" style="padding:8px 12px;font-weight:600;color:#FD8E5B;border-bottom:1px solid rgba(253, 142, 91, 0.2);background:rgba(253, 142, 91, 0.1)">Agentic Coding</td><td colspan="1" style="border-bottom:1px solid rgba(253, 142, 91, 0.2);background:rgba(253, 142, 91, 0.1);border-left:2px solid rgba(253, 142, 91, 0.55);"></td></tr>
38
+ <tr>
39
+ <td style="padding:7px 7px;padding-left:20px;border-bottom:1px solid rgba(128, 128, 128, 0.15);">Terminal-Bench 2.1 <sub><small>(Terminus-2)</small></sub></td>
40
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15);font-weight:600;color:#FD8E5B;background:rgba(253, 142, 91, 0.06)">64.2</td>
41
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">41.4</td>
42
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">52.5</td>
43
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">42.1</td>
44
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15);border-left:2px solid rgba(253, 142, 91, 0.55);">53.5</td>
45
+ </tr>
46
+ <tr>
47
+ <td style="padding:7px 7px;padding-left:20px;border-bottom:1px solid rgba(128, 128, 128, 0.15);">SWE-bench Verified</td>
48
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15);font-weight:600;color:#FD8E5B;background:rgba(253, 142, 91, 0.06)">75.6</td>
49
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">70.0</td>
50
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">73.4</td>
51
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">52.0</td>
52
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15);border-left:2px solid rgba(253, 142, 91, 0.55);">76.4</td>
53
+ </tr>
54
+ <tr>
55
+ <td style="padding:7px 7px;padding-left:20px;border-bottom:1px solid rgba(128, 128, 128, 0.15);">SWE-bench Pro</td>
56
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15);font-weight:600;color:#FD8E5B;background:rgba(253, 142, 91, 0.06)">50.4</td>
57
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">44.6</td>
58
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">49.5</td>
59
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">35.7</td>
60
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15);border-left:2px solid rgba(253, 142, 91, 0.55);">51.6</td>
61
+ </tr>
62
+ <tr>
63
+ <td style="padding:7px 7px;padding-left:20px;border-bottom:1px solid rgba(128, 128, 128, 0.15);">SWE-bench Multilingual</td>
64
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15);font-weight:600;color:#FD8E5B;background:rgba(253, 142, 91, 0.06)">69.3</td>
65
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">60.3</td>
66
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">67.2</td>
67
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">51.7</td>
68
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15);border-left:2px solid rgba(253, 142, 91, 0.55);">69.3</td>
69
+ </tr>
70
+ <tr>
71
+ <td style="padding:7px 7px;padding-left:20px;border-bottom:1px solid rgba(128, 128, 128, 0.15);">NL2Repo</td>
72
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15);font-weight:600;color:#FD8E5B;background:rgba(253, 142, 91, 0.06)">34.6</td>
73
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">20.5</td>
74
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">29.4</td>
75
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">15.5</td>
76
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15);border-left:2px solid rgba(253, 142, 91, 0.55);">36.8</td>
77
+ </tr>
78
+ <tr>
79
+ <td style="padding:7px 7px;padding-left:20px;border-bottom:1px solid rgba(128, 128, 128, 0.15);">Claw-eval Avg</td>
80
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15);font-weight:600;color:#FD8E5B;background:rgba(253, 142, 91, 0.06)">69.8</td>
81
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">65.4</td>
82
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">68.7</td>
83
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15)">48.5</td>
84
+ <td style="padding:7px 7px;text-align:center;border-bottom:1px solid rgba(128, 128, 128, 0.15);border-left:2px solid rgba(253, 142, 91, 0.55);">70.7</td>
85
+ </tr>
86
+ </tbody>
87
+ </table>
88
+ <p style="margin-top:12px;font-size:10px;opacity:0.7">
89
+ * Terminal-Bench 2.1: Harbor/Terminus-2, 3h timeout, 32 CPU / 48GB RAM, avg of 5 runs.<br/>
90
+ * All SWE-Bench:Mini-SWE-Agent, temp=1.0, top_p=0.95, 200K context window.<br/>
91
+ * NL2Repo:400K context, 48k output, anti-hacking filters.<br/>
92
+ * ClawEval: An agentic code benchmark over real-user task distributions; temp=0.6, 256K context.<br/>
93
+ </p>
94
+
95
+ </div>
96
+
97
+
98
+
99
+
100
+ ## Quickstart
101
+
102
+
103
+ <div style="border-left:4px solid #FD8E5B;background:rgba(253,142,91,0.1);border-radius:6px;padding:12px 16px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-size:14px;line-height:1.6">
104
+ <div style="font-weight:700;color:#FD8E5B;margin-bottom:6px">📝 NOTE</div>
105
+ <p style="margin:0 0 10px"><b>Ornith-1.0-397B</b> is a <b>reasoning model</b>: by default the assistant turn opens with a <code style="background:rgba(253,142,91,0.15);padding:1px 5px;border-radius:4px">&lt;think&gt; … &lt;/think&gt;</code> block before the final answer. The serving recipes below enable a reasoning parser so the chain-of-thought is returned in a separate <code style="background:rgba(253,142,91,0.15);padding:1px 5px;border-radius:4px">reasoning_content</code> field, and a tool-call parser so the model's <code style="background:rgba(253,142,91,0.15);padding:1px 5px;border-radius:4px">&lt;tool_call&gt;</code> blocks are surfaced as OpenAI-style <code style="background:rgba(253,142,91,0.15);padding:1px 5px;border-radius:4px">tool_calls</code>.</p>
106
+ <p style="margin:0 0 6px">Serving Ornith-1.0-397B requires recent runtimes:</p>
107
+ <ul style="margin:0;padding-left:20px">
108
+ <li><b>Transformers</b> ≥ 5.8.1</li>
109
+ <li><b>vLLM</b> ≥ 0.19.1</li>
110
+ <li><b>SGLang</b> ≥ 0.5.9</li>
111
+ </ul>
112
+ </div>
113
+
114
+ ### Serving Ornith-1.0-397B
115
+
116
+ 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.
117
+
118
+ #### vLLM
119
+
120
+ ```bash
121
+ vllm serve deepreinforce-ai/Ornith-1.0-397B \
122
+ --served-model-name Ornith-1.0-397B \
123
+ --tensor-parallel-size 8 \
124
+ --host 0.0.0.0 --port 8000 \
125
+ --max-model-len 262144 \
126
+ --gpu-memory-utilization 0.90 \
127
+ --enable-prefix-caching \
128
+ --enable-auto-tool-choice --tool-call-parser qwen3_xml \
129
+ --reasoning-parser qwen3 \
130
+ --trust-remote-code
131
+ ```
132
+
133
+ #### SGLang
134
+
135
+ ```bash
136
+ python -m sglang.launch_server \
137
+ --model-path deepreinforce-ai/Ornith-1.0-397B \
138
+ --served-model-name Ornith-1.0-397B \
139
+ --tp 8 \
140
+ --host 0.0.0.0 --port 8000 \
141
+ --context-length 262144 \
142
+ --mem-fraction-static 0.85 \
143
+ --tool-call-parser qwen3_coder \
144
+ --reasoning-parser qwen3
145
+ ```
146
+
147
+ #### Hugging Face Transformers
148
+
149
+ 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](https://huggingface.co/docs/transformers/installation); Ornith-1.0-397B requires `transformers >= 5.8.1`.
150
+
151
+ ```python
152
+ from transformers import AutoModelForCausalLM, AutoTokenizer
153
+
154
+ model_name = "deepreinforce-ai/Ornith-1.0-397B"
155
+
156
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
157
+ model = AutoModelForCausalLM.from_pretrained(
158
+ model_name,
159
+ dtype="auto",
160
+ device_map="auto",
161
+ )
162
+
163
+ messages = [
164
+ {"role": "user", "content": "Write a Python function is_prime(n). Keep it short."}
165
+ ]
166
+ text = tokenizer.apply_chat_template(
167
+ messages,
168
+ tokenize=False,
169
+ add_generation_prompt=True,
170
+ )
171
+
172
+ inputs = tokenizer(text, return_tensors="pt").to(model.device)
173
+ generated = model.generate(
174
+ **inputs,
175
+ max_new_tokens=512,
176
+ do_sample=True,
177
+ temperature=0.6,
178
+ top_p=0.95,
179
+ top_k=20,
180
+ )
181
+ output_ids = generated[0][inputs.input_ids.shape[1]:]
182
+
183
+ # The reply contains a <think> ... </think> reasoning block followed by the answer.
184
+ content = tokenizer.decode(output_ids, skip_special_tokens=True)
185
+ print(content)
186
+ ```
187
+
188
+ To split the reasoning trace from the final answer, parse on the `</think>` marker:
189
+
190
+ ```python
191
+ text = tokenizer.decode(output_ids, skip_special_tokens=True)
192
+ if "</think>" in text:
193
+ reasoning, answer = text.split("</think>", 1)
194
+ reasoning = reasoning.replace("<think>", "").strip()
195
+ answer = answer.strip()
196
+ else:
197
+ reasoning, answer = "", text.strip()
198
+ ```
199
+
200
+ ### Using Ornith-1.0-397B via the Chat Completions API
201
+
202
+ Once a vLLM or SGLang server is running, talk to it with any OpenAI-compatible client.
203
+
204
+ #### Basic Usage
205
+
206
+ ```python
207
+ from openai import OpenAI
208
+
209
+ client = OpenAI(
210
+ base_url="http://localhost:8000/v1",
211
+ api_key="EMPTY", # any non-empty string works for a local server
212
+ )
213
+
214
+ response = client.chat.completions.create(
215
+ model="Ornith-1.0-397B",
216
+ messages=[
217
+ {"role": "user", "content": "Write a one-line Python lambda that squares a number."}
218
+ ],
219
+ temperature=0.6,
220
+ top_p=0.95,
221
+ max_tokens=1024,
222
+ )
223
+
224
+ message = response.choices[0].message
225
+ # reasoning_content holds the <think> trace; content holds the final answer.
226
+ print("reasoning:", getattr(message, "reasoning_content", None))
227
+ print("answer:", message.content)
228
+ ```
229
+
230
+ 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:
231
+
232
+ ```python
233
+ tools = [
234
+ {
235
+ "type": "function",
236
+ "function": {
237
+ "name": "get_weather",
238
+ "description": "Get the current weather for a city",
239
+ "parameters": {
240
+ "type": "object",
241
+ "properties": {"city": {"type": "string"}},
242
+ "required": ["city"],
243
+ },
244
+ },
245
+ }
246
+ ]
247
+
248
+ response = client.chat.completions.create(
249
+ model="Ornith-1.0-397B",
250
+ messages=[{"role": "user", "content": "What is the weather in Paris right now?"}],
251
+ tools=tools,
252
+ tool_choice="auto",
253
+ temperature=0.6,
254
+ max_tokens=2048,
255
+ )
256
+
257
+ tool_call = response.choices[0].message.tool_calls[0]
258
+ print(tool_call.function.name, tool_call.function.arguments)
259
+ # -> get_weather {"city": "Paris"}
260
+ ```
261
+
262
+ You can point any OpenAI-compatible SDK (Python, Node.js, etc.) or `curl` at the same `/v1/chat/completions` endpoint.
263
+
264
+ ## Agentic Usage
265
+
266
+ Ornith-1.0-397B excels in tool-calling and agentic coding capabilities.
267
+
268
+ ### Agent Frameworks
269
+
270
+ 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.
271
+
272
+ ```python
273
+
274
+ ```
275
+
276
+ **Examples of using Ornith with agent harness:**
277
+
278
+ #### Hermes Agent
279
+ ```bash
280
+
281
+ ```
282
+
283
+ #### OpenHands
284
+ ```bash
285
+
286
+ ```
287
+
288
+ #### llama.cpp / Ollama
289
+ ```bash
290
+
291
+ ```
292
+
293
+ #### Unsloth Studio
294
+
295
+ ```bash
296
+
297
+ ```
298
+
299
+ #### OpenClaw
300
+
301
+ ```bash
302
+
303
+ ```
304
+
305
+
306
+ ### Coding CLIs
307
+
308
+ 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.
309
+
310
+
311
+ #### OpenCode
312
+ ```bash
313
+
314
+ ```
315
+
316
+
317
+ ### Citation
318
+
319
+ If you find our work helpful, feel free to give us a cite.
320
+
321
+ ```bibtex
322
+ @misc{ornith_397b,
323
+ title = {{Ornith-1.0-397B}: Agentic Coding, Open to All},
324
+ url = {https://deep-reinforce.com/ornith_1_0.html},
325
+ author = {{DeepReinforce Team}},
326
+ year = {2026}
327
+ }
328
+ ```