Downloads · 30 days
13
19% of all-time downloads
PKSGIN/qwen3-30b-selective-quant
qwen3-30b-selective-quant is a text generation model from PKSGIN. Use it when you need the model to write or continue text. It is set up for transformers.
A selectively quantized version of Qwen3-30B-A3B optimized for local inference on Apple Silicon, with preserved precision on code analysis experts.
Downloads · 30 days
13
19% of all-time downloads
All-time downloads
68
Public
Parameters
6.3B
20.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors20.4 GB · 100%
How the weights are stored.
U323.9B · 61%
From the Hugging Face model README
A selectively quantized version of Qwen3-30B-A3B optimized for local inference on Apple Silicon, with preserved precision on code analysis experts.
PKSGIN/qwen3-30b-selective-quant-mlx
This model applies heterogeneous quantization to Qwen3-30B-A3B's Mixture-of-Experts architecture:
The result: 18 GB on disk, runs at 52 tokens/sec on MacBook Pro M4 (32GB), with materially better code analysis quality than uniform Q4.
Standard quantization tools (mlx_lm.convert, llama.cpp) compress all experts uniformly. For security and coding workloads, this degrades the exact experts you need most.
This model was profiled on 200 coding/security prompts to identify which experts activate for:
Those 9 experts are preserved at Q8 while compressing the rest to Q4.
Local inference for sensitive workloads:
Zero data exfiltration. Zero tokens leaving your device.
# Install MLX
pip install mlx mlx-lm
# Run inference
python -m mlx_lm.generate \
--model PKSGIN/qwen3-30b-selective-quant \
--prompt "Review this Terraform for security issues: ..."
| Metric | Value |
|---|---|
| Model size on disk | 18 GB |
| Peak memory | 18.1 GB |
| Tokens/sec (M4 Pro) | 52 |
| Prompt processing | 4.4 tokens/sec |
| Compression ratio | 3.0x vs FP16 |
Profiled experts (coding ratio > 0.65):
[21, 27, 31, 43, 59, 66, 71, 113, 126]
Memory breakdown:
switch_mlp format → final Q4Full pipeline: 4 scripts, ~$2 GPU rental, 72 minutes total.
@misc{qwen3-selective-quant-2026,
author = {Prasanna Kanagasabai},
title = {Qwen3-30B-A3B Selective Quantization for Security Workloads},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/PKSGIN/qwen3-30b-selective-quant}
}
Same as base model: Qwen License