---
license: other
library_name: transformers
base_model: Dingdust/Ornith-1.5-9B-heretic
tags:
- flm
- fastflowlm
- npu
- npu2
- amd-xdna
- lemonade
---
# Ornith-1.5-9B-heretic-NPU2 (FastFlowLM / Lemonade NPU2 Quantization)
> [!IMPORTANT]
> **Quantization & NPU Compatibility Note:**
> This repository contains **Q4NX quantized weights** converted from [Dingdust/Ornith-1.5-9B-heretic](https://huggingface.co/Dingdust/Ornith-1.5-9B-heretic) to run natively on **FastFlowLM (`flm`) v1.0.3+** and **Lemonade** on AMD XDNA NPU hardware.
>
> * **Model Type**: Quantized model conversion (NPU Q4NX format)
> * **Parent / Base Model**: [Dingdust/Ornith-1.5-9B-heretic](https://huggingface.co/Dingdust/Ornith-1.5-9B-heretic)
> * **Details**: Re-quantized to Q4NX format for FastFlowLM v1.0.3+ and Lemonade on AMD XDNA NPU. Abliterated / uncensored variant configured with complete EOS stop token IDs ([248044, 248046]).
> * **Architecture**: Ornith 1.5 9B Heretic (Abliterated)
> * **Quantization Format**: Q4_K / Q4_1 / Q8_0 hybrid Q4NX
> * **Format**: `Q4NX` (safetensors format with AMD NPU block packing). Note that this is **not** a standard GGUF file; it is executed natively via `flm` / Lemonade on AMD Ryzen AI NPUs.
---
## Serving with Lemonade & FastFlowLM
To serve this model via Lemonade or FastFlowLM:
```bash
# Pull and run with FLM:
flm pull Ornith-1.5-9B-heretic-NPU2
flm serve Ornith-1.5-9B-heretic-NPU2 --ctx-len 32768 --port 8001
```
Or configure via Lemonade:
```bash
lemonade run Ornith-1.5-9B-heretic-NPU2
```
---
## Original Model Information (Dingdust/Ornith-1.5-9B-heretic)
Below is the model card from the upstream repository [Dingdust/Ornith-1.5-9B-heretic](https://huggingface.co/Dingdust/Ornith-1.5-9B-heretic):
---
# This is a decensored version of a model, made using [Heretic](https://heretic-project.org) v1.4.0
## Abliteration parameters
| Parameter | Value |
| :-------- | :---: |
| **direction_index** | 17.12 |
| **attn.o_proj.max_weight** | 1.21 |
| **attn.o_proj.max_weight_position** | 19.32 |
| **attn.o_proj.min_weight** | 1.01 |
| **attn.o_proj.min_weight_distance** | 14.48 |
| **mlp.down_proj.max_weight** | 1.28 |
| **mlp.down_proj.max_weight_position** | 19.62 |
| **mlp.down_proj.min_weight** | 1.14 |
| **mlp.down_proj.min_weight_distance** | 18.09 |
## Performance
| Metric | This model | Original model (a model) |
| :----- | :--------: | :---------------------------: |
| **KL divergence** | 0.0053 | 0 *(by definition)* |
| **Refusals** | 33/100 | 84/100 |
-----
# Ornith-1.5-9B
Chirp Chirp! 🐦 We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement.
Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For more details on the task, harness, and rollout reward design, please refer to our [blog](https://ornith.ai/ornith_1_5.html).
## Ornith 1.5 9B
This model card documents **Ornith-1.5-9B**, the most lightweight member of the Ornith-1.5 family — a 9B dense model designed for efficient single-GPU deployment, and edge-deployable on mobile devices via its quantized Ornith-1.5-9B-Mobile variant.
### Benchmarks
| Ornith-1.5-9B | Ornith-1.0-9B | Qwen3.5-9B | Qwen3.6-35B-A3B | Gemma-4-31B | |
|---|---|---|---|---|---|
| Coding | |||||
| Terminal-Bench 2.1 (Terminus-2) | 46.2 | 43.1 | 21.3 | 52.5 | 42.1 |
| Terminal-Bench 2.1 (Claude Code) | 47 | 40.6 | 18.9 | 49.2 | - |
| SWE-bench Verified | 70.6 | 69.4 | 53.2 | 73.4 | 52 |
| SWE-bench Pro | 47.5 | 42.9 | 31.3 | 49.5 | 35.7 |
| SWE-bench Multilingual | 54.4 | 52 | 39.7 | 67.2 | 51.7 |
| NL2Repo | 32.4 | 27.2 | 16.2 | 29.4 | 15.5 |
| SWE Atlas - QnA | 20.6 | 17.9 | 9.2 | 15.5 | - |
| Reasoning | |||||
| HLE (no tools) | 20.2 | 16.8 | 14.7 | 21.4 | 19.5 |
| HLE (with tools) | 30.5 | 26.4 | 24.5 | 28.9 | 26.5 |
| GPQA Diamond | 86.4 | 82.5 | 81.7 | 86 | 84.3 |
| Agentic | |||||
| MCP-Atlas | 54.2 | 49.4 | 46.8 | 62.8 | 55 |
| Toolathlon-Verified | 41.2 | 33.4 | 29.6 | 41.7 | 52.8 |
| WideSearch | 59.5 | 55.8 | 53.6 | 60.1 | 54.2 |
| BrowseComp | 56.4 | 44.8 | 41.5 | 62 | - |
| ClawEval | 66.5 | 63.1 | 53.2 | 68.7 | 48.5 |
* All results reported for Ornith-1.5 are averaged over five independent runs.
* 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/ornith-ai/Ornith-1.5-9B/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. Anti-hacking safeguards are applied throughout evaluation: Git history is removed from the local repository image to prevent access to prior solutions or commits; network access is disabled, preventing the model from retrieving external information or resources.
* DeepSWE: Evaluated using the Claude Code harness with temperature=1.0, top_p=0.95, and a 256K context window.
* SWE Atlas QnA: 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. Access to specified GitHub repositories and pip packages is blocked to prevent reward hacking.
* HLE: Evaluated using Claude 4.6 Opus as the judge model.
* MCP-Atlas: All models were evaluated in thinking mode on the 500-task public subset, with a 10-minute timeout per task. We use Claude 4.8 Opus as the judge model.
* Toolathlon-Verified: We use the official evaluation service with the maximum token limit set to 128K.
* ClawEval: An agentic code benchmark over real-user task distributions; temp=0.6 and 256K context.
Ornith-1.5-9B 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.5-9B requires recent runtimes:
Recommended sampling parameters:
temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=1.5, repetition_penalty=1.0temperature=0.6, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=0.0, repetition_penalty=1.0Open-source runtimes implement YaRN statically: the same scaling factor is applied to every request regardless of its length, which can slightly hurt quality on ordinary-length inputs. Only enable rope_scaling when your workload genuinely needs the longer window, and size factor to match it — the target window is roughly factor × 262,144, so if your requests top out around 524,288 tokens, factor: 2.0 is the better setting.