--- library_name: transformers license: mit license_link: https://huggingface.co/deepreinforce-ai/Ornith-1.0-397B/blob/main/LICENSE pipeline_tag: text-generation --- [![Ornith Blog](https://img.shields.io/badge/%F0%9F%A6%A2%EF%B8%8F%20Ornith%20Blog%20-FD8E5B)](https://deep-reinforce.com/ornith.html) # Ornith-1.0-397B 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 Minimax M3 DeepSeek-V4-Pro Claude Opus 4.7 Claude Opus 4.8
Agentic Coding
Terminal-Bench 2.1 (Terminus-2) 77.5 53.5 73.5 64 64 70.3 85
SWE-bench Verified 82.4 76.4 80.4 - 80.6 80.8 87.6
SWE-bench Pro 62.2 51.6 60.6 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 42.1 - - 69.7
Claw-eval Avg 77.1 70.7 65.2 - 75.8 78.2 -

* Terminal-Bench 2.1: Harbor/Terminus-2, 3h timeout, 32 CPU / 48GB RAM, avg of 5 runs.
* All SWE-Bench:Mini-SWE-Agent, temp=1.0, top_p=0.95, 200K context window.
* NL2Repo:400K context, 48k output, anti-hacking filters.
* ClawEval: An agentic code benchmark over real-user task distributions; temp=0.6, 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:

### 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. #### vLLM ```bash vllm serve deepreinforce-ai/Ornith-1.0-397B \ --served-model-name Ornith-1.0-397B \ --tensor-parallel-size 8 \ --host 0.0.0.0 --port 8000 \ --max-model-len 262144 \ --gpu-memory-utilization 0.90 \ --enable-prefix-caching \ --enable-auto-tool-choice --tool-call-parser qwen3_xml \ --reasoning-parser qwen3 \ --trust-remote-code ``` #### SGLang ```bash python -m sglang.launch_server \ --model-path deepreinforce-ai/Ornith-1.0-397B \ --served-model-name Ornith-1.0-397B \ --tp 8 \ --host 0.0.0.0 --port 8000 \ --context-length 262144 \ --mem-fraction-static 0.85 \ --tool-call-parser qwen3_coder \ --reasoning-parser qwen3 ``` #### Hugging Face Transformers 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`. ```python from transformers import AutoModelForCausalLM, AutoTokenizer model_name = "deepreinforce-ai/Ornith-1.0-397B" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelForCausalLM.from_pretrained( model_name, dtype="auto", device_map="auto", ) messages = [ {"role": "user", "content": "Write a Python function is_prime(n). Keep it short."} ] text = tokenizer.apply_chat_template( messages, tokenize=False, add_generation_prompt=True, ) inputs = tokenizer(text, return_tensors="pt").to(model.device) generated = model.generate( **inputs, max_new_tokens=512, do_sample=True, temperature=0.6, top_p=0.95, top_k=20, ) output_ids = generated[0][inputs.input_ids.shape[1]:] # The reply contains a ... reasoning block followed by the answer. content = tokenizer.decode(output_ids, skip_special_tokens=True) print(content) ``` To split the reasoning trace from the final answer, parse on the `` marker: ```python text = tokenizer.decode(output_ids, skip_special_tokens=True) if "" in text: reasoning, answer = text.split("", 1) reasoning = reasoning.replace("", "").strip() answer = answer.strip() else: reasoning, answer = "", text.strip() ``` ### 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 from openai import OpenAI client = OpenAI( base_url="http://localhost:8000/v1", api_key="EMPTY", # any non-empty string works for a local server ) response = client.chat.completions.create( model="Ornith-1.0-397B", messages=[ {"role": "user", "content": "Write a one-line Python lambda that squares a number."} ], temperature=0.6, top_p=0.95, max_tokens=1024, ) message = response.choices[0].message # reasoning_content holds the trace; content holds the final answer. print("reasoning:", getattr(message, "reasoning_content", None)) print("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 tools = [ { "type": "function", "function": { "name": "get_weather", "description": "Get the current weather for a city", "parameters": { "type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"], }, }, } ] response = client.chat.completions.create( model="Ornith-1.0-397B", messages=[{"role": "user", "content": "What is the weather in Paris right now?"}], tools=tools, tool_choice="auto", temperature=0.6, max_tokens=2048, ) tool_call = response.choices[0].message.tool_calls[0] print(tool_call.function.name, tool_call.function.arguments) # -> 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 ``` **Examples of using Ornith with agent harness:** #### Hermes Agent ```bash ``` #### OpenHands ```bash ``` #### llama.cpp / Ollama ```bash ``` #### Unsloth Studio ```bash ``` #### OpenClaw ```bash ``` ### 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 ``` ### Citation If you find our work helpful, feel free to give us a cite. ```bibtex @misc{ornith_397b, title = {{Ornith-1.0-397B}: Agentic Coding, Open to All}, url = {https://deep-reinforce.com/ornith_1_0.html}, author = {{DeepReinforce Team}}, year = {2026} } ```