Qwen3.6-35B-A3B-MLX-UD-8bit-512K

Extended context version of unsloth/Qwen3.6-35B-A3B-MLX-8bit with 512K context window (up from 256K).

What Changed

Context window extended from 256K → 512K using YaRN RoPE scaling (factor 2.0x).

Only config.json was modified — model weights are identical to the original.

Config Changes

"max_position_embeddings": 524288,
"rope_parameters": {
    "mrope_interleaved": true,
    "mrope_section": [11, 11, 10],
    "partial_rotary_factor": 0.25,
    "rope_theta": 10000000,
    "rope_type": "yarn",
    "factor": 2.0,
    "original_max_position_embeddings": 262144,
    "beta_fast": 32,
    "beta_slow": 1,
    "mscale": 1,
    "mscale_all_dim": 0
}

Why This Works Well

This model has a hybrid architecture that is naturally suited for long context:

  • 40 layers total: 30 linear attention (no position limit) + 10 full attention (RoPE)
  • Only 25% of layers need RoPE scaling
  • partial_rotary_factor: 0.25 — only 64 out of 256 head dimensions use rotary embeddings
  • Already high rope_theta: 10,000,000

Usage

# Install dependencies
curl -fsSL https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/scripts/install_qwen3_6_mlx.sh | sh
source ~/.unsloth/unsloth_qwen3_6_mlx/bin/activate

# Run with 512K context
python -m mlx_vlm.chat --model KCh3dRi4n/Qwen3.6-35B-A3B-MLX-UD-8bit-512K

Memory Requirements

  • Model weights: ~20GB (8-bit)
  • KV cache at 512K: ~5-6GB (only 10 full attention layers with GQA)
  • Total: ~26-30GB unified memory recommended

Credits

Downloads last month
73
Safetensors
Model size
10B params
Tensor type
BF16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for KCh3dRi4n/Qwen3.6-35B-A3B-MLX-UD-8bit-512K

Quantized
(776)
this model