Summary
Compressed Qwen3.6-35B-A3B-abliterated-v2 (uncensored MoE, 70.2 GB FP16) to 19.94 GB using a 4-stage pipeline: AWQ + QuaRot + mixed 3/4-bit quantization + bias compensation.
PPL: +0.03% (28.377 → 28.387) measured in-memory on 50 calibration texts (~682 tokens).
Table with columns: Metric, Value| Metric | Value |
|---|
| FP16 PPL | 28.377 |
| Compressed PPL | 28.387 |
| Delta | +0.03% |
| FP16 size | 70.2 GB |
| Compressed size | 19.94 GB |
| Compression ratio | 3.5x |
⚠️ Important — Loading Limitations
This model uses custom QuantizedLinear layers not recognized by transformers.AutoModelForCausalLM. Loading via standard HF API produces random weights — the model will not work.
To use this model you need the pipeline code which defines QuantizedLinear and QuantizedMoeExperts classes. A proper load_quantized_model() function is not yet implemented — this is a research artifact, not a production-ready quantized model.
Not compatible with: llama.cpp, GGUF, vLLM, SGLang, Ollama, MLX, or any standard inference engine.
For production inference use lmstudio-community/Qwen3.6-35B-A3B-GGUF (Q4_K_M = 21.2 GB, works everywhere).
Architecture
- Base: Qwen3.6-35B-A3B (MoE, 256 experts, top-8 routing, 3B active params)
- Layers: 40 (30 GatedDeltaNet linear attention + 10 full attention)
- Hidden dim: 2048
- MoE experts: mixed 3-bit (40%) / 4-bit (60%), group_size=64
- Attention/embed/lm_head: 8-bit
- Vision encoder: not quantized (preserved from base)
Pipeline
Stage 1: AWQ (Activation-aware Weight Quantization)
Scales salient weight channels based on activation magnitudes. Scales fused into RMSNorm weights.
Stage 2: QuaRot (Hadamard Rotation)
Rotates weight matrices with random Hadamard matrix to remove outlier features. RMSNorm weights fused into adjacent linear layers before rotation (required for rotation equivariance). Final RMSNorm fused into lm_head.
Stage 3: Mixed-Precision Quantization
Per-expert sensitivity analysis → 3-bit for less sensitive experts, 4-bit for sensitive ones. Group quantization (group_size=64) with scale + zero-point.
Stage 4: Bias Compensation
Corrects systematic quantization bias by comparing FP16 vs quantized layer outputs on calibration data.
Key Bug Fixes
7 bugs found and fixed during development:
Table with columns: #, Bug, Effect, Fix| # | Bug | Effect | Fix |
|---|
| 1 | GatedDeltaNet wrong projection names | 30/40 layers unrotated | Fixed: in_proj_qkv/z/b/a + out_proj |
| 2 | MoE gate/router not rotated | Routing broken | Added gate + shared_expert_gate rotation |
| 3 | --skip-deltanet-rotation default=True | 30/40 layers skipped | Default=False |
| 4 | Per-layer hooks caused double rotation |
Key insight: Qwen3.6 RMSNorm uses output = x_norm * (1 + weight), not x_norm * weight. Weight init=zeros, effective multiplier = 1+w. Fusion must multiply by (1+w) and set weight to zeros after.
Run History
Table with columns: Run, Config, PPL, Delta, Size| Run | Config | PPL | Delta | Size |
|---|
| run1 | QuaRot only (pre-fix) | 71893 | +253246% | 17.9 GB |
| run2 | QuaRot + 3/4-bit (pre-norm-fix) | 45.8 | +61.5% | 17.9 GB |
| run3 | QuaRot + 3/4-bit (all fixes) | 30.89 | +8.87% | 17.9 GB |
|
Evaluation
Table with columns: Test, Status, Notes| Test | Status | Notes |
|---|
| PPL (50 samples, 682 tokens) | ✓ | +0.03% vs FP16 (in-memory) |
| QuaRot rotation lossless | ✓ | -0.11% without quantization |
| HumanEval | ✗ | Not run |
| MMLU | ✗ | Not run |
| HellaSwag | ✗ | Not run |
| ARC | ✗ |
Limitations:
- PPL measured in-memory before saving — not verified after save/load cycle
- No standard benchmarks run
- Custom format — model does not load via standard HF API
- +0.03% on 682 tokens is within noise — real degradation unknown
load_quantized_model() function not implemented
Files
model-*.safetensors — quantized weights (custom format)
config.json — model config (quantization_config: custom)
quantization_meta.json — per-layer quantization metadata
zero_loss_pipeline_cuda.py — pipeline code (QuantizedLinear, QuantizedMoeExperts)
METHODS_LOG.md — full development history
RESULTS.md — run results table
References
Base Model
License
Tongyi Qianwen (same as base model).