gpustack/Qwen3.8-27B-Coder390-MLX-4bit-dynamic

An MLX-native AWQ-calibrated mixed-precision affine (group_size = 64) 4-bit dynamic quantization of nerkyor/Qwen3.8-27B-Coder390-EfficientThink-Opus5.5-GPT6Astra-Grok4.7-DSV4Pro-K3-SFT-RLOO-MTP-DFlash2 for Apple Silicon (mlx-lm, mlx-vlm, and mlx-dspark), preserving the full BF16 multimodal vision tower and bundling the matched DFlash2-FP8 drafter under speculator/.

Original Model & License

Quantization Details (4-bit dynamic + AWQ, ~17.01 GiB weights, 4 Shards)

  • Calibration: offline AWQ activation-aware scale folding over 256 samples (seq_len = 1024) from bartowski-v3 (128 / 128 RMSNorm groups calibrated; zero extra runtime ops).
  • Packing: standard MLX affine (mode = "affine", group_size = 64) with per-module precision overrides in config.json:
Precision Modules Module Count
8-bit (Q8G64) embed_tokens, lm_head, GDN linear_attn.in_proj_a, linear_attn.in_proj_b 98
6-bit (Q6G64) All self_attn.{q,k,v,o}_proj, all linear_attn.out_proj, first (layers.0) & last (layers.63) mlp.{gate,up,down}_proj 118
4-bit (Q4G64) Interior mlp.{gate,up,down}_proj (layers.1..62), linear_attn.in_proj_{qkv,z} 282
BF16 (preserved) Vision encoder (model.visual.*), all RMSNorm weights, A_log, dt_bias, conv1d.weight 686
Speculator (speculator/) Bundled DFlash2-FP8 speculative drafter โ€”

Usage with MLX

Text (mlx-lm)

pip install -U mlx-lm

mlx_lm.generate \
  --model gpustack/Qwen3.8-27B-Coder390-MLX-4bit-dynamic \
  --max-tokens 256 \
  --prompt "Write a concise Rust function to merge two sorted slices."

Multimodal (mlx-vlm)

pip install -U mlx-vlm

python -m mlx_vlm generate \
  --model gpustack/Qwen3.8-27B-Coder390-MLX-4bit-dynamic \
  --max-tokens 256 \
  --prompt "Describe this image." \
  --image <path-to-image>
Downloads last month
1
Safetensors
Model size
27B params
Tensor type
U32
ยท
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for gpustack/Qwen3.8-27B-Coder390-MLX-4bit-dynamic

Collection including gpustack/Qwen3.8-27B-Coder390-MLX-4bit-dynamic