Text Generation
MLX
Safetensors
qwen3_5_moe
code
text-only
omlx
ornith
ornith-1.0
ornith-35B
MoE
conversational
4-bit precision
Instructions to use Noctalin/Ornith-1.0-35B-oQ4-fp16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Noctalin/Ornith-1.0-35B-oQ4-fp16 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("Noctalin/Ornith-1.0-35B-oQ4-fp16") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use Noctalin/Ornith-1.0-35B-oQ4-fp16 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Noctalin/Ornith-1.0-35B-oQ4-fp16"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Noctalin/Ornith-1.0-35B-oQ4-fp16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use Noctalin/Ornith-1.0-35B-oQ4-fp16 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Noctalin/Ornith-1.0-35B-oQ4-fp16"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Noctalin/Ornith-1.0-35B-oQ4-fp16" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Noctalin/Ornith-1.0-35B-oQ4-fp16", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use Noctalin/Ornith-1.0-35B-oQ4-fp16 with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Noctalin/Ornith-1.0-35B-oQ4-fp16"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Noctalin/Ornith-1.0-35B-oQ4-fp16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Noctalin/Ornith-1.0-35B-oQ4-fp16 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Noctalin/Ornith-1.0-35B-oQ4-fp16"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Noctalin/Ornith-1.0-35B-oQ4-fp16" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,18 +1,108 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
tags:
|
| 4 |
- mlx
|
| 5 |
-
-
|
| 6 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
-
#
|
| 10 |
|
| 11 |
-
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
|
| 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)
|
|
|
|
|
|
|
|
|