Run this model with HF Jobs
Run OsaurusAI/Qwen4-35B-A3B-JANGHT2.3 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/OsaurusAI/Qwen4-35B-A3B-JANGHT2.3. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/OsaurusAI/Qwen4-35B-A3B-JANGHT2.3 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/OsaurusAI/Qwen4-35B-A3B-JANGHT2.3. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use OsaurusAI/Qwen4-35B-A3B-JANGHT2.3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OsaurusAI/Qwen4-35B-A3B-JANGHT2.3 with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("OsaurusAI/Qwen4-35B-A3B-JANGHT2.3") config = load_config("OsaurusAI/Qwen4-35B-A3B-JANGHT2.3") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use OsaurusAI/Qwen4-35B-A3B-JANGHT2.3 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/Qwen4-35B-A3B-JANGHT2.3"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "OsaurusAI/Qwen4-35B-A3B-JANGHT2.3" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use OsaurusAI/Qwen4-35B-A3B-JANGHT2.3 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 "OsaurusAI/Qwen4-35B-A3B-JANGHT2.3"
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 OsaurusAI/Qwen4-35B-A3B-JANGHT2.3
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use OsaurusAI/Qwen4-35B-A3B-JANGHT2.3 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/Qwen4-35B-A3B-JANGHT2.3"
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 "OsaurusAI/Qwen4-35B-A3B-JANGHT2.3" \ --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"
Runtime: Osaurus v1.0.17 or newer (
osaurus.json:required_osaurus_version1.0.17,model_version1).
OsaurusAI/Qwen4-35B-A3B-JANGHT2.3
Memory vs. SSD at a Glance
- Stays in Unified RAM:
9.86 GiB(~9.29 GiBin text-only sessions when Vision is not loaded) (10.59 GiBwith optional DFlash2 drafter enabled) โ recommended 16 GB+ Apple Silicon Mac.- Stays on SSD (NOT loaded into RAM):
11.92 GiB(20.5B-parameter Engram / PLE n-gram table in isolated 4 KiB-alignedq4/g32shards, streamed on demand viapread).- Total Download / Disk Footprint:
22.78 GiBโ ~11.9 GiB larger than actual RAM usage because the Engram/PLE table stays on SSD.
84.25% top-1 agreement and 0.03967 median KL divergence against the BF16 source across 90,600 strictly disjoint held-out positions (2.314 bpw whole-model excluding the SSD-resident Engram/PLE table and drafters).
This is an Apple Silicon JANGHT (mixed Hadamard-128 trellis + Hadamard-32 odd-cubic codebook experts) quantization of Qwen/Qwen4-35B-A3B: a hybrid Gated DeltaNet + QSA block-sparse Vision-Language Mixture-of-Experts model (40 layers, 256 routed experts top-8 + shared expert, 20.5B-parameter SSD-streamed PLE/Engram n-gram table, native 1M-token context, high-precision Vision tower (q8/g64 linears + BF16 patch/pos/norms), native Multi-Token Prediction with calibrated 4-bit proposal head, bundled RadixArk DFlash2 drafter, and variable reasoning effort off / low / high / xhigh + preserve_thinking).
Memory vs. SSD Footprint
| Component | Size | Where It Lives | Notes |
|---|---|---|---|
Core Model + Vision (visual.* q8/BF16) |
9.56 GiB |
Unified RAM | Loaded into GPU/unified memory (2.314 bpw) |
Native MTP Layer (mtp.*) |
0.30 GiB |
Unified RAM | Included in main shards for native multi-token prediction |
| Total Loaded in RAM (Base Model) | 9.86 GiB |
Unified RAM | Fits on 16 GB+ Apple Silicon Mac (+ KV cache) |
Engram / PLE N-Gram Table (20.5B params, q4/g32) |
11.92 GiB |
SSD Only (Disk-Streamed) | Never loaded into RAM โ only active token rows are read from NVMe SSD via pread |
Optional DFlash2 Drafter (dflash2/) |
0.74 GiB |
SSD (RAM only when enabled) | Bundled lossless BF16 RadixArk/Qwen4-35B-A3B-Dflash2 (block_size=8) |
Optional MTP Proposal Head (mtp_draft/) |
0.27 GiB |
SSD (RAM only when enabled) | Calibrated 4-bit MTP proposal head sidecar |
| Total Bundle on Disk / Download | 22.78 GiB |
SSD Storage | 9.86 GiB in RAM + 11.92 GiB SSD-only PLE + 1.00 GiB optional drafters |
Held-Out Fidelity vs BF16 Source
Measured on 112 strictly disjoint held-out sequences (90,600 next-token positions including Vision-Language image prompts and >2,048-token QSA block-sparse contexts) against Qwen/Qwen4-35B-A3B BF16:
By Domain
| Held-Out Domain | Positions | Median KL | Mean KL | Top-1 Agreement | Mean ฮNLL |
|---|---|---|---|---|---|
agentic |
6,587 | 0.02611 |
0.15091 |
87.79% | +0.10744 |
coding |
35,853 | 0.04769 |
0.19274 |
84.48% | +0.11160 |
cyber |
11,757 | 0.06689 |
0.34974 |
81.80% | +0.31858 |
longctx |
15,216 | 0.10429 |
0.54397 |
77.98% | +0.15541 |
reasoning |
20,855 | 0.00257 |
0.18795 |
88.69% | +0.11751 |
vision |
332 | 0.02370 |
0.42628 |
84.34% | -0.08048 |
| Overall | 90,600 | 0.03967 |
0.26881 |
84.25% | +0.14617 |
By Variable Reasoning Effort
| Reasoning Effort | Positions | Median KL | Mean KL | Top-1 Agreement | Mean ฮNLL |
|---|---|---|---|---|---|
off |
4,306 | 0.00120 |
0.22221 |
89.29% | +0.19005 |
low |
8,601 | 0.02964 |
0.27425 |
84.47% | +0.20370 |
high |
18,862 | 0.04076 |
0.35048 |
83.24% | +0.19144 |
xhigh |
58,831 | 0.04546 |
0.24525 |
84.17% | +0.12004 |
Multimodal, Speculative Decoding & Bundle Verification
| Capability | Measured Result |
|---|---|
Vision Tower (visual.*) |
250/333 BF16 + 83/333 q8/g64 linears (max weight rel-L2 0.0077, multimodal VL verified) |
| Native MTP Depth-1 Acceptance | 69.82% (checkpoint q8 head) / 69.67% (calibrated q4 sidecar vs 69.49% RTN q4) |
Bundled DFlash2 Drafter (dflash2/) |
RadixArk/Qwen4-35B-A3B-Dflash2 (BF16 lossless, block_size=8, target_layer_ids=[19,23,27,31,35], 81 verified tensors) |
| M-Chip Runtime Layout | 4 KiB-aligned shards, isolated SSD q4/g32 PLE shards, TokenizersBackend root tokenizer, reasoning_parser="qwen3", tool_parser="qwen" |
| Variable Reasoning & Tool Calling | Held-out calibrated & verified across off / low / high / xhigh, preserve_thinking, reasoning_parser="qwen3", and XML tool_parser="qwen" |
Quantization & M-Chip Optimization Details
- Whole-Model Precision:
2.314bpw (1.781bpw routed experts; SSD-resident PLE n-gram table and drafters excluded per JANGHT naming convention; shipped BF16 vision tower included). - Non-Expert Trunk:
lm_head, QSAself_attn+indexer, PLE projections, andhyper_connectionprojections at 8-bit (group_size=64) GPTQ; GDNlinear_attnandshared_expertat 6-bit (group_size=64) full-Hessian GPTQ;embed_tokensat 4-bit (group_size=64);mtp.switch_mlpat 2-bit (group_size=64) GPTQ; routers,in_proj_a/in_proj_b, short convolutions,A_log,dt_bias, and RMSNorms untouched in BF16/FP32. - SSD-Resident Engram / PLE N-Gram Table (
q4/g32,11.92 GiB): Isolated into dedicated 4 KiB-alignedmodel-*shard files for cleanpreadand macOS unified page-cache separation (41% smaller row reads vs 8-bit at0.000181median KL vs BF16). - Calibration: Full-Hessian capture across 1,091,856 tokens (1,001 sequences including 24 real Vision-Language prompts, 85 >2,048-token QSA block-sparse sequences, wide multi-language coding, XML agentic tool calling, cybersecurity, multilingual text, and authentic BF16 variable-reasoning traces across
off,low,high, andxhigh), achieving full routed-expert calibration across all 40 trunk layers + native MTP.
Recommended Generation Settings
- Thinking / Agentic Coding (default,
reasoning_effort="high",preserve_thinking=True):temperature=1.0,top_p=0.95,top_k=20,min_p=0.0,presence_penalty=0.0,repetition_penalty=1.0 - Non-Thinking / Instruct (
reasoning_effort="off"/enable_thinking=False):temperature=0.7,top_p=0.80,top_k=20,min_p=0.0,presence_penalty=1.5,repetition_penalty=1.0
Credits
- Base Model: Qwen/Qwen4-35B-A3B
- DFlash2 Drafter: RadixArk/Qwen4-35B-A3B-Dflash2
- Quantization & Runtime: Osaurus AI
- Downloads last month
- -
8-bit
Model tree for OsaurusAI/Qwen4-35B-A3B-JANGHT2.3
Base model
Qwen/Qwen4-35B-A3B