File size: 6,047 Bytes
858526b
326a54c
 
 
 
 
858526b
 
326a54c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
858526b
 
326a54c
858526b
326a54c
858526b
326a54c
858526b
326a54c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
license: mit
license_link: https://huggingface.co/deepreinforce-ai/Ornith-1.0-35B/blob/main/LICENSE
base_model:
- deepreinforce-ai/Ornith-1.0-35B
pipeline_tag: text-generation
tags:
- mlx
- code
- text-only
- omlx
- ornith
- ornith-1.0
- ornith-35B
- MoE
library_name: mlx
---

# Ornith-1.0-35B oQ5 Text-Only (Optimized for Apple Silicon)

This repository contains a custom-quantized, text-only configuration of the **Ornith-1.0-35B** Mixture-of-Experts (MoE) model, optimized explicitly for local repository-level agentic coding on Apple Silicon using the **oMLX** inference engine.

## ๐ŸŽฏ Why This Was Created

Ornith-1.0-35B is a state-of-the-art, self-improving MoE model specialized for agentic coding. It jointly optimizes search scaffolds and solution rollouts via Reinforcement Learning to discover superior code trajectories. 

This specific build was converted using **oMLX v0.4.5.dev1** to address long-context deployment constraints on a **MacBook Pro M2 Max (96GB Unified Memory, 400 GB/s memory bandwidth)**:

* **The MoE Precision Balance:** As a 35B Mixture-of-Experts model, Ornith-1.0-35B strikes an incredible balance between deep reasoning and high throughput. Quantizing it to **oQ5 (5-bit)** delivers a notable step up in code syntax retention and complex instruction adherence over 4-bit alternatives, while keeping the active footprint low enough to maximize headroom for deep KV caches during repository-wide multi-file edits.
* **Overcoming the 128k Context Wall:** Traditional backends often choke or suffer severe latency degradation when context windows approach 128k tokens due to unoptimized KV cache processing. Moving to oMLX's specialized two-tier caching eliminates this overhead, allowing you to ingest expansive codebases fluidly.
* **Prefill Speedup via float16:** While the base weights are distributed in `bfloat16`, this build explicitly targets Apple Silicon hardware by using **`float16`** for non-quantized weights, unlocking a **~20% faster prefill speed** on M1/M2 Max architectures.
* **MTP Note:** Unlike standard Qwen base models, the original Ornith-1.0 weights do not contain Multi-Token Prediction (`mtp.*`) headers. As a result, native MTP decoding is not available for this model layout.

---

## ๐Ÿš€ Key Differences

| Feature / Attribute | Standard Ornith-1.0-35B | This Custom Build (`oQ5-fp16`) |
| :--- | :--- | :--- |
| **Native MTP Heads** | Not present in base architecture | **Not Available** (No base MTP tensors) |
| **Vision Model (VLM)** | N/A (Text-only coding agent) | **Stripped/Text-Only** |
| **Quantization Method** | Standard Uniform / HF / Unsloth | **oQ5** (Dynamic mixed-precision calibration) |
| **Non-Quant Weight DType**| `bfloat16` | **`float16`** (~20% faster prefill on M1/M2 Silicon) |

---

## ๐Ÿ’ป Hardware & RAM Recommendations

| Mac Hardware Configuration | RAM Recommendation | Status / Performance Expectation |
| :--- | :--- | :--- |
| **M1 Max / M2 Max / M3 Max (Base 32GB/36GB/48GB)** | **48GB Unified Memory** | **Supported** โ€” Fits nicely due to the lean MoE memory footprint. 32GB/36GB variations can deploy it but will face tighter constraints on extreme context scaling. |
| **M1 / M2 / M3 / M4 Max / Ultra** | **64GB Unified Memory** | **Recommended** โ€” Great overall execution, mapping deep context lengths (~128k) comfortably. |
| **M2 Max / M3 Max (96GB / 128GB)** | **96GB / 128GB Unified Memory** | **Optimal / Best Experience** โ€” The 96GB/128GB setup is ideal. Allows running maximum context extensions (262k) with zero slowdowns and substantial system memory overhead. |

---

## ๐Ÿ› ๏ธ Quantization Settings

This model was quantized using **oMLX v0.4.5.dev1** with the following configuration:

* **Source Model:** `deepreinforce-ai/Ornith-1.0-35B`
* **Sensitivity Model:** `None`
* **oQ Level:** `oQ5`
* **Text Only:** `Enabled`
* **Preserve MTP weights:** `Disabled` (Not present in source architecture)
* **Non-quant weight dtype:** `float16`

---

## โš™๏ธ Optimized oMLX Settings (v0.4.5)

To replicate a highly stable workspace inside coding environments like **OpenCode**, utilize these server parameters in your oMLX dashboard:

### Model Basic Settings
* **Reasoning Parser:** `qwen3` *(Isolates the `<think> ... </think>` block safely away from standard IDE syntax highlights)*
* **Tool Call Parser:** `qwen3_xml`
* **CTX Window:** `262,144`
* **Max Tokens:** `32,768`
* **Temperature:** `0.6` *(Apply `1.0` if you want to explicitly match the official benchmark configuration)*
* **Top P / Top K:** `0.95 / 20`
* **Min P:** `0`
* **Repetition / Presence Penalty:** `1 / 0`

### Model Advanced Settings
* **Enabled Thinking:** Checked (True)
* **Chat Template Kwargs:** `enable_thinking: true, preserve_thinking: true`
* **Native MTP:** Unchecked (False)

### Resource Management & Cache
* **Memory Guard:** `Aggressive` (Enforces strict macOS memory/swap garbage cleanup)
* **Hot Cache Limit (RAM):** `40GB` (Allocated for high-speed Unified Memory history)
* **Cold Cache Limit (SSD):** `371GB` (Serialized context overflow storage protection)
* **Max Concurrent Requests:** `2` (Prevents dividing the 400 GB/s bandwidth bus unnecessarily)
* **Embedding Batch Size:** `32`
* **Chunked Prefill:** Enabled (Eliminates localized memory spikes during giant codebase file indexing)
* **Burst Decode:** `Aggressive` (Coalesces tokens for swift user-facing code rendering)
* **Initial Cache Blocks:** `256`
* **SSE Keepalive Mode:** `Chunk`

---

## ๐ŸŒก๏ธ Thermal Optimization Notice

Sustained execution over deep contexts heavily loads the Apple Silicon SoC, raising internal core temperatures. Because native macOS fan curves prioritize absolute quiet over proactive temperature maintenance, they often delay full fan deployment until minor thermal throttling occurs.

To prevent generational speed degradation during deep code agent sessions, run a specialized CLI fan control package to manage system thermals directly:

* Source Repository: [smc-command on Codeberg](https://codeberg.org/Noctalin/smc-command)