Run this model with HF Jobs
Run OsaurusAI/Qwen4-35B-A3B-JANGHT3.0 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-JANGHT3.0. 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-JANGHT3.0 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-JANGHT3.0. 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.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/OsaurusAI/Qwen4-35B-A3B-JANGHT3.0. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use OsaurusAI/Qwen4-35B-A3B-JANGHT3.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OsaurusAI/Qwen4-35B-A3B-JANGHT3.0 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-JANGHT3.0") config = load_config("OsaurusAI/Qwen4-35B-A3B-JANGHT3.0") # 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-JANGHT3.0 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-JANGHT3.0"
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-JANGHT3.0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use OsaurusAI/Qwen4-35B-A3B-JANGHT3.0 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-JANGHT3.0"
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-JANGHT3.0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use OsaurusAI/Qwen4-35B-A3B-JANGHT3.0 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-JANGHT3.0"
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-JANGHT3.0" \ --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-JANGHT3.0
Memory vs. SSD at a Glance
- Stays in Unified RAM:
12.72 GiB(13.46 GiBwith optional DFlash2 drafter enabled) โ recommended 16 GB / 24 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:
25.64 GiBโ ~11.9 GiB larger than actual RAM usage because the Engram/PLE table stays on SSD.
87.56% top-1 agreement and 0.02337 median KL divergence against the BF16 source across 90,600 strictly disjoint held-out positions (2.961 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, untouched bit-exact BF16 Vision tower, 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.* BF16) |
12.23 GiB |
Unified RAM | Loaded into GPU/unified memory (2.961 bpw) |
Native MTP Layer (mtp.*) |
0.49 GiB |
Unified RAM | Included in main shards for native multi-token prediction |
| Total Loaded in RAM (Base Model) | 12.72 GiB |
Unified RAM | Fits on 16 GB / 24 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 | 25.64 GiB |
SSD Storage | 12.72 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.01591 |
0.09615 |
90.57% | +0.05807 |
coding |
35,853 | 0.02807 |
0.12070 |
88.12% | +0.06539 |
cyber |
11,757 | 0.04179 |
0.24056 |
85.42% | +0.20766 |
longctx |
15,216 | 0.06563 |
0.41743 |
81.53% | +0.10237 |
reasoning |
20,855 | 0.00131 |
0.11812 |
91.24% | +0.06648 |
vision |
332 | 0.01628 |
0.31829 |
87.35% | -0.11297 |
| Overall | 90,600 | 0.02337 |
0.18443 |
87.56% | +0.08913 |
By Variable Reasoning Effort
| Reasoning Effort | Positions | Median KL | Mean KL | Top-1 Agreement | Mean ฮNLL |
|---|---|---|---|---|---|
off |
4,306 | 0.00055 |
0.15529 |
91.78% | +0.11653 |
low |
8,601 | 0.01567 |
0.18004 |
87.35% | +0.12726 |
high |
18,862 | 0.02333 |
0.25502 |
86.62% | +0.12425 |
xhigh |
58,831 | 0.02722 |
0.16458 |
87.58% | +0.07029 |
Multimodal, Speculative Decoding & Bundle Verification
| Capability | Measured Result |
|---|---|
Vision Tower (visual.*) |
333/333 tensors bit-exact BF16 (multimodal VL calibrated & held-out KL verified) |
| Native MTP Depth-1 Acceptance | 71.28% (checkpoint q8 head) / 71.14% (calibrated q4 sidecar vs 70.86% 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.961bpw (2.209bpw routed experts; SSD-resident PLE n-gram table and drafters excluded per JANGHT naming convention; shipped BF16 vision tower included). - Non-Expert Trunk: Attention/GDN/QSA projections, shared experts, PLE projections,
embed_tokens, andlm_headquantized to 8-bit (group_size=64) via full-Hessian GPTQ. Routers,in_proj_a/in_proj_b, short convolutions,A_log,dt_bias, RMSNorms, and all Vision weights remain 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
- -
Quantized
Model tree for OsaurusAI/Qwen4-35B-A3B-JANGHT3.0
Base model
Qwen/Qwen4-35B-A3B