OsaurusAI/Qwen3.6-27B-JANG_4M
<p align="center"> <a href="https://osaurus.ai"><img src="./osaurus-x-banner.png" alt="Osaurus AI"></a> </p>
<h3 align="center">Qwen 3.6 27B — JANG4M (MLX)</h3> <p align="center">Balanced 4-bit quantization of Alibaba's hybrid linear/full-attention dense 27B VL — full-attention <code>q/k/v/o</code>, embeddings and <code>lmhead</code> at 8-bit affine; dense FFN, linear-attention projections and vision tower at 4-bit affine.</p>
<p align="center"> <a href="https://osaurus.ai"><img src="https://img.shields.io/badge/Web-osaurus.ai-blue" alt="Website"></a> <a href="https://huggingface.co/OsaurusAI"><img src="https://img.shields.io/badge/HF-OsaurusAI-yellow?logo=huggingface" alt="OsaurusAI"></a> </p>
Model Details
JANG_4M bit allocation
Per-module bit overrides are encoded directly in config.json["quantization"] (65 overrides for the 8-bit tier), so any MLX-compatible runtime can load the bundle without custom decode paths.
Why mixed 4/8? This dense 27B has 16 full-attention layers whose q_proj is fused with a sigmoid(gate) multiplier — activation noise near the gate transition zone is amplifying if attention is 4-bit. JANG_4M keeps those projections at 8-bit while absorbing the compression into the 64-layer dense FFN.
Architecture notes
- Hybrid attention stack: 48 of 64 layers use
Gated DeltaNet, a linear-attention / delta-rule hybrid with a groupedconv1dinput path and per-headA_log/dt_biasstate — constant memory in sequence length. The other 16 layers (one every 4, given byfull_attention_interval: 4) use full softmax attention with `attn_output_gate: true` —q_projproduces a fused (queries, gate) tensor; attention output is multiplied bysigmoid(gate)beforeo_proj. - Partial rotary embeddings: only the first 25% of head dim rotates (
partial_rotary_factor: 0.25),rope_theta = 1e7. Position metadata for mixed text/image/video (mrope_section,mrope_interleaved: true) is preserved inconfig.json. - Dense FFN: no MoE. Each layer has
gate_proj/up_proj(5120 → 17408) +down_proj(17408 → 5120) with SwiGLU activation. - Vision tower:
qwen3_vlViT, 27 layers, hidden 1152, patch 16, temporal_patch 2. Produces video token sequences via 3D conv patch-embed (pairs of frames merge into one temporal patch).
Usage
Load in **Osaurus** on Apple Silicon (macOS) — single-click deploy, local chat + vision, no Python setup. The bundle also loads in any Apple Silicon MLX runtime that supports qwen3_5 VL bundles with per-module quantization config (see config.json["quantization"]).
Reasoning on/off, image inference, and video inference are all verified on this quant.
Verified modalities
The 4-frame RGBY video encodes as 2 temporal patches via temporal_patch_size=2, which the model perceives as a 2-region color composition — identical behavior to the BF16 source. This is not a quant artifact.
For synthetic PIL-frame video tests, set processor.video_processor.do_sample_frames = False so each frame maps 1:1 to a patch.
MMLU-200 (10 subjects × 20 questions, reasoning OFF)
Both quants evaluated on the same 200-question slice of MMLU with enable_thinking=False (direct answer, no <think> preamble). Same prompts, same greedy decode, same extraction.
Both quants are strong baselines on reasoning-OFF MMLU. MXFP4 edges ahead by 1 pp overall. JANG4M wins on the harder math-heavy subjects (`abstractalgebra +3, highschoolmathematics +2) — plausibly because the 8-bit full-attention projections carry more signal on multi-step symbolic chains. MXFP4 wins on rote-recall subjects (anatomy, world_religions`) by ~2 each, closer to ties on factual/scientific subjects.
Reasoning ON: not yet measured. Qwen 3.6 is a reasoning-optional model — withenable_thinking=Truethe model generates a<think>…</think>block before answering, which typically lifts MMLU significantly. Reasoning-ON benchmarks for both quants are planned as a follow-up.
Hardware notes
17.5 GB weights on disk; once loaded, expect ~18–22 GB resident plus KV cache.
License
Apache 2.0 — inherits from the base model.
<p align="center"> Packaged on Apple Silicon by <a href="https://osaurus.ai">Osaurus</a>.<br> © 2026 Osaurus AI — <a href="https://osaurus.ai">osaurus.ai</a> </p>
