Instructions to use OsaurusAI/Ling-3.2-Air-JANGHT2.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OsaurusAI/Ling-3.2-Air-JANGHT2.5 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/Ling-3.2-Air-JANGHT2.5") config = load_config("OsaurusAI/Ling-3.2-Air-JANGHT2.5") # 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/Ling-3.2-Air-JANGHT2.5 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/Ling-3.2-Air-JANGHT2.5"
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/Ling-3.2-Air-JANGHT2.5" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use OsaurusAI/Ling-3.2-Air-JANGHT2.5 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/Ling-3.2-Air-JANGHT2.5"
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/Ling-3.2-Air-JANGHT2.5
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use OsaurusAI/Ling-3.2-Air-JANGHT2.5 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/Ling-3.2-Air-JANGHT2.5"
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/Ling-3.2-Air-JANGHT2.5" \ --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.15 or newer (
osaurus.json:required_osaurus_version1.0.15,model_version1).
OsaurusAI/Ling-3.2-Air-JANGHT2.5
39.92 GB (37.18 GiB) on disk (39.05 GB target including untouched BF16 vision + 0.87 GB native Layer-42 MTP speculative drafter) โ 3.24ร smaller than the 129.3 GB FP8 checkpoint, achieving 86.77% top-1 agreement and 0.0347 median KL divergence against the full FP8 source across 34,185 strictly held-out positions (2.502 bits per source parameter).
This is an Apple Silicon JANGHT quantization of dealignai/Ling-3.2-Air-UNCENSORED-FP8 (upstream architecture inclusionAI/Ling-3.2-air): a 124B-total / 5.5B-active hybrid Vision-Language Mixture-of-Experts model (42 decoder layers: 35 Kimi Delta Attention + 7 Gated Multi-Latent Attention, 2 dense + 40 sparse MoE layers with 512 routed experts top-8 + 1 shared expert, native 1M-token YaRN context, untouched BF16 Vision encoder, and bundled Layer-42 Multi-Token Prediction drafter).
Fits comfortably on 48 GB and 64 GB+ Unified Memory Apple Silicon Macs.
Held-Out Fidelity vs FP8 Source
Measured on 40 strictly disjoint held-out conversations (34,185 next-token prediction positions) against dealignai/Ling-3.2-Air-UNCENSORED-FP8 (top-128 renormalized KL divergence, Top-1 exact token agreement, and mean ฮNLL):
| Held-Out Domain | Positions | Median KL | Mean KL | Top-1 Agreement | Mean ฮNLL |
|---|---|---|---|---|---|
| Multilingual (ZH/JA/KO/ES/FR/DE/RU) | 4,494 | 0.0088 |
0.1209 |
90.01% | +0.1268 |
| Wide Coding (30+ languages & systems) | 4,494 | 0.0250 |
0.0840 |
89.10% | +0.0735 |
| Long-Context (YaRN multi-doc) | 9,768 | 0.0324 |
0.0768 |
87.49% | +0.0254 |
| General Knowledge | 642 | 0.0344 |
0.1736 |
85.20% | +0.1582 |
| Agentic & Multi-Turn Tool Calling | 5,381 | 0.0450 |
0.2032 |
84.80% | +0.1166 |
| Deep Reasoning & Math | 8,301 | 0.0531 |
0.1366 |
84.82% | +0.0341 |
| Cybersecurity & Systems | 1,105 | 0.0604 |
0.1469 |
82.99% | +0.1145 |
| Overall Held-Out (40 conversations) | 34,185 | 0.0347 |
0.1220 |
86.77% | +0.0669 |
Benchmarks & Live Verification
| Benchmark / Check | Uncensored FP8 (129.3 GB) |
Uncensored MXFP4 (78.4 GB) |
Ling-3.2-Air-JANGHT2.5 (39.92 GB) |
|---|---|---|---|
| On-Disk Size (incl. Vision + MTP) | 129.30 GB | 78.42 GB | 39.92 GB (37.18 GiB) |
| Whole-Model Precision | 8.0 bpw | 4.8 bpw | 2.502 bpw (2.270 experts) |
| Held-Out Top-1 / Median KL vs FP8 | Reference | โ | 86.77% / 0.0347 |
| GSM8K-100 (Reasoning ON, T=1.0) | 94.0% (0 loops) |
94.0% (0 loops) |
90.0% (0 loops) |
| MMLU-570 (exact logit, 57 subjects) | 81.58% | 82.46% | 77.72% (443/570) |
| Vision-Language Live Q&A | 4/4 (333/333 BF16) |
4/4 (333/333 BF16) |
4/4 (333/333 bit-exact BF16) |
| Compliance Retention (320-prompt eval) | 100.0% | 100.0% | 99.4% (2/320 flagged) |
| Native Layer-42 MTP Acceptance (d=1) | ~65% | ~64% | 58.8% |
Apple Silicon Performance (vmlx-swift, M5 Ultra)
Measured directly via vmlx-swift (BailingMoeV3VL fused JANGT/JANGH Metal kernels + post-SiLU clamped SwiGLU on L35โL41):
| Mode | Decode Speed | Tail Speed | Cold Load Time | Runtime Footprint | Integrity |
|---|---|---|---|---|---|
| Autoregressive (AR) | 80.6 tok/s |
82.3 tok/s |
9.93s |
37.1 GiB |
loop=NO, unclosedReasoning=NO, leaks=none |
Native Layer-42 MTP (depth=2) |
103.8 tok/s |
106.8 tok/s |
5.86s |
38.2 GiB |
loop=NO, unclosedReasoning=NO, leaks=none |
Quantization Architecture & Calibration
- Routed Experts (
L02โL41, 120.80B params โ34.28 GB,2.270 bpw): Mixed JANGT (Hadamard-128 12-state trellis with block-LDL error feedback, per-layer/per-expert fp16 outlier columns, and unit-gain row refit) and JANGH (Hadamard-32 odd-cubic codebook with act-order GPTQ andf^0.5row-gain calibration), allocated per layer and per projection (gate_upvsdown) via frozen-routing KL sensitivity and convex-hull greedy optimization (down:jh2ร 15,down:jh3ร 18,down:jt2.5ร 7,gate_up:jt2ร 35,gate_up:jt2.5ร 5). - Non-Expert Trunk (
~4.67 GB): Attention projections, denseL00โL01MLPs, shared experts,word_embeddings, andlm_headquantized to affine 8-bit (group_size=64). Routers (mlp.gate),expert_bias, RMSNorms, short convolutions,A_log,dt_bias, and small gating projections stay untouched in FP32/BF16. - Vision Tower (
model.visual.*+linear_proj.*,0.87 GB): Kept 100% bit-exact in BF16 (333/333tensors verified against source). - Native Layer-42 MTP Drafter (
model.layers.42.*,0.87 GB): Untouched BF16eh_proj/MLA/shared-expert/router weights paired with calibrated JANGHT routed experts (gate_up: jt2,down: jh2), automatically discovered by Osaurus (bundleHasMTP=true). - Context Window: 1,048,576 tokens (1M YaRN default) preserved (
factor=4.0,original_max_position_embeddings=262144). - Extreme Multi-Domain Calibration: Full-Hessian capture across 1,002,556+ tokens (plus multimodal Vision+Text sequences) spanning 30+ programming languages (Rust, C, C++, Go, Python, TypeScript, Java, Swift, Metal, CUDA, Zig, Haskell, OCaml, Elixir, SQL, Bash, SystemVerilog, ARM64 assembly), multi-turn XML agentic tool calling, deep
<think>reasoning & math, multilingual (ZH/JA/KO/ES/FR/DE/RU/AR/PT/HI), long-context YaRN, and cybersecurity/systems โ achieving 100% (512/512) routed-expert coverage in every MoE layer (L02โL42) with median ~10,000+ calibration tokens per expert.
Serving Contract
- Reasoning: Controlled via
chat_template.jinja(enable_thinking=trueopens<think>...</think>reasoning;enable_thinking=falseskips reasoning directly into the answer). - Tool Calling: Native XML tool protocol (
<tool_call>/<arg_key>/<arg_value>) with tool definitions injected via the chat template. - Recommended Sampling:
temperature=1.0,top_p=0.95,top_k=20(generation_config.json). - Context Length: 1,048,576 tokens (1M YaRN default,
factor=4.0,original_max_position_embeddings=262144). 35 of 42 layers use linear-time Kimi Delta Attention (constant recurrent state); only the 7 Gated MLA layers (L5, L11, L17, L23, L29, L35, L41) maintain growing KV caches. - Vision & MTP: Untouched BF16 Vision tower (
model.visual.*+linear_proj.*) and native Layer-42 MTP speculative drafter (model.layers.42.*) are bundled in-place and auto-detected by Osaurus.
Attribution & License
- License: MIT (matching inclusionAI/Ling-3.2-air and dealignai/Ling-3.2-Air-UNCENSORED-FP8).
- Quantization & Runtime: Osaurus AI (
JANGHT/vmlx-swift).
- Downloads last month
- -
Quantized
Model tree for OsaurusAI/Ling-3.2-Air-JANGHT2.5
Base model
inclusionAI/Ling-3.2-air