Noctalin commited on
Commit
2b672f1
ยท
verified ยท
1 Parent(s): 2219ff1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +100 -10
README.md CHANGED
@@ -1,18 +1,108 @@
1
  ---
2
- library_name: mlx
 
 
 
 
3
  tags:
4
  - mlx
5
- - oq
6
- - quantized
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  ---
8
 
9
- # Ornith-1.0-35B-oQ4-fp16
10
 
11
- This model was quantized using [oQ](https://github.com/jundot/omlx) (oMLX v0.4.5.dev1) mixed-precision quantization.
12
 
13
- ## Quantization details
14
 
15
- - **Model type**: qwen3_5_moe
16
- - **Bits**: 4
17
- - **Group size**: 64
18
- - **Format**: MLX safetensors
 
1
  ---
2
+ license: mit
3
+ license_link: https://huggingface.co/deepreinforce-ai/Ornith-1.0-35B/blob/main/LICENSE
4
+ base_model:
5
+ - deepreinforce-ai/Ornith-1.0-35B
6
+ pipeline_tag: text-generation
7
  tags:
8
  - mlx
9
+ - code
10
+ - text-only
11
+ - omlx
12
+ - ornith
13
+ - ornith-1.0
14
+ - ornith-35B
15
+ - MoE
16
+ library_name: mlx
17
+ ---
18
+
19
+ # Ornith-1.0-35B oQ4 Text-Only (Optimized for Apple Silicon)
20
+
21
+ 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.
22
+
23
+ ## ๐ŸŽฏ Why This Was Created
24
+
25
+ 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.
26
+
27
+ 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)**:
28
+
29
+ * **The MoE Memory Optimization:** As a 35B Mixture-of-Experts model, Ornith-1.0-35B strikes an incredible balance between deep reasoning and high throughput. Quantizing it to **oQ4 (4-bit)** dramatically lowers its initial RAM footprint. This leaves maximum VRAM headroom dedicated entirely to holding massive KV caches during complex multi-file repository tasks.
30
+ * **Overcoming the 128k Context Wall:** Traditional backends often choke or suffer severe latency degradation when context sizes scale out. Moving to oMLX's specialized two-tier caching eliminates this overhead, allowing you to fluidly ingest giant codebases.
31
+ * **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 chips.
32
+ * **MTP Note:** Unlike some 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.
33
+
34
+ ---
35
+
36
+ ## ๐Ÿš€ Key Differences
37
+
38
+ | Feature / Attribute | Standard Ornith-1.0-35B | This Custom Build (`oQ4-fp16`) |
39
+ | :--- | :--- | :--- |
40
+ | **Native MTP Heads** | Not present in base architecture | **Not Available** (No base MTP tensors) |
41
+ | **Vision Model (VLM)** | N/A (Text-only coding agent) | **Stripped/Text-Only** |
42
+ | **Quantization Method** | Standard Uniform / HF / Unsloth | **oQ4** (Dynamic mixed-precision calibration) |
43
+ | **Non-Quant Weight DType**| `bfloat16` | **`float16`** (~20% faster prefill on M1/M2 Silicon) |
44
+
45
+ ---
46
+
47
+ ## ๐Ÿ’ป Hardware & RAM Recommendations
48
+
49
+ | Mac Hardware Configuration | RAM Recommendation | Status / Performance Expectation |
50
+ | :--- | :--- | :--- |
51
+ | **M1 Max / M2 Max / M3 Max (Base 32GB/36GB/48GB)** | **32GB/48GB Unified Memory** | **Supported** โ€” Fits comfortably due to the lean 4-bit MoE footprint. Leaves reasonable space for mid-sized context windows. |
52
+ | **M1 / M2 / M3 / M4 Max / Ultra** | **64GB Unified Memory** | **Recommended** โ€” Great overall performance, comfortably maps deep context lengths (~128k). |
53
+ | **M2 Max / M3 Max (96GB / 128GB)** | **96GB / 128GB Unified Memory** | **Optimal / Best Experience** โ€” Ideal configuration for a 96GB M2 Max. Allows operating at the full 262k context boundary with zero system memory pressure. |
54
+
55
+ ---
56
+
57
+ ## ๐Ÿ› ๏ธ Quantization Settings
58
+
59
+ This model was quantized using **oMLX v0.4.5.dev1** with the following specification:
60
+
61
+ * **Source Model:** `deepreinforce-ai/Ornith-1.0-35B`
62
+ * **Sensitivity Model:** `None`
63
+ * **oQ Level:** `oQ4`
64
+ * **Text Only:** `Enabled`
65
+ * **Preserve MTP weights:** `Disabled` (Not present in source architecture)
66
+ * **Non-quant weight dtype:** `float16`
67
+
68
+ ---
69
+
70
+ ## โš™๏ธ Optimized oMLX Settings (v0.4.5)
71
+
72
+ To seamlessly route this model through agentic development workspaces like **OpenCode**, apply the following server specifications in your oMLX dashboard:
73
+
74
+ ### Model Basic Settings
75
+ * **Reasoning Parser:** `qwen3` *(Isolates the `<think> ... </think>` blocks securely away from IDE syntax parsers)*
76
+ * **Tool Call Parser:** `qwen3_xml`
77
+ * **CTX Window:** `262,144`
78
+ * **Max Tokens:** `32,768`
79
+ * **Temperature:** `0.6` *(Use `1.0` if attempting to perfectly replicate official benchmark environments)*
80
+ * **Top P / Top K:** `0.95 / 20`
81
+ * **Min P:** `0`
82
+ * **Repetition / Presence Penalty:** `1 / 0`
83
+
84
+ ### Model Advanced Settings
85
+ * **Enabled Thinking:** Checked (True)
86
+ * **Chat Template Kwargs:** `enable_thinking: true, preserve_thinking: true`
87
+ * **Native MTP:** Unchecked (False)
88
+
89
+ ### Resource Management & Cache
90
+ * **Memory Guard:** `Aggressive` (Forces strict macOS memory/swap cleanup cycles)
91
+ * **Hot Cache Limit (RAM):** `40GB` (Allocated for hyper-speed Unified Memory history)
92
+ * **Cold Cache Limit (SSD):** `371GB` (Serialized safetensors storage for context overflow handles)
93
+ * **Max Concurrent Requests:** `2` (Protects the 400 GB/s bandwidth bus from degradation)
94
+ * **Embedding Batch Size:** `32`
95
+ * **Chunked Prefill:** Enabled (Prevents instantaneous out-of-memory crashes on massive project context ingestion)
96
+ * **Burst Decode:** `Aggressive` (Coalesces tokens for maximized typing speeds)
97
+ * **Initial Cache Blocks:** `256`
98
+ * **SSE Keepalive Mode:** `Chunk`
99
+
100
  ---
101
 
102
+ ## ๐ŸŒก๏ธ Thermal Optimization Notice
103
 
104
+ Sustained execution across massive context windows heavily taxes the Apple Silicon GPU/CPU complexes, causing rapid heat buildup. Because Apple's default fan profiles emphasize near-silent operation, they delay ramping up system fans until thermal throttling has already begun to affect generation tokens-per-second (TPS).
105
 
106
+ To protect performance integrity during prolonged coding sessions, it is highly recommended to run a custom fan utility to enforce proactive, aggressive cooling curves:
107
 
108
+ * Source Repository: [smc-command on Codeberg](https://codeberg.org/Noctalin/smc-command)