请求加入做种队列,或现在用 pf download happypatrick/Qwen3.5-122B-A10B-heretic-int4-AutoRound 获取(CLI 指南)。
The first INT4 AutoRound quantization of the Heretic (uncensored) Qwen3.5-122B — with vision preserved.
A 4-bit symmetric quantization of trohrbaugh/Qwen3.5-122B-A10B-heretic, generated using Intel AutoRound v0.12.0. The original multimodal architecture (Qwen3_5MoeForConditionalGeneration) is fully preserved — text, vision, video, and reasoning all work.
| Base Model | Qwen/Qwen3.5-122B-A10B → trohrbaugh/Qwen3.5-122B-A10B-heretic |
| Quantization | INT4 symmetric, group_size 128, AutoRound (sign-gradient descent) |
| Packing | auto_round:auto_gptq (GPTQ Marlin compatible) |
| Size on Disk | 63 GB (vs 234 GB BF16 original — 73% smaller) |
| Format | 63 safetensors shards |
| Architecture | 122B total params, 10B active/token (256 experts, 8 routed + 1 shared) |
| Context | 262,144 tokens natively |
| Capabilities | Text, Code, Reasoning, Tool Calling, Vision, Video |
| License | Apache 2.0 (inherited from Qwen) |
This model has a three-step provenance chain:
Qwen/Qwen3.5-122B-A10B ← Qwen team's flagship 122B MoE (BF16, 234GB)
└─► trohrbaugh/heretic ← Abliterated with Heretic v1.2.0 (KL=0.0916, 9/100 refusals)
└─► THIS MODEL ← INT4 AutoRound quantization (63GB, vision preserved)
Qwen3.5-122B-A10B — Qwen team's 122B Mixture-of-Experts model with DeltaNet hybrid attention, 256 experts (8 active + 1 shared per token), native 262K context, and multimodal vision support.
trohrbaugh/Qwen3.5-122B-A10B-heretic — Abliterated (uncensored) variant using Heretic v1.2.0 by p-e-w. Uses parametrized directional ablation with interpolated direction index (41.20), applied to attn.o_proj and mlp.down_proj. Reduces refusals from 99/100 to 9/100 while maintaining low KL divergence (0.0916).
This model — INT4 AutoRound quantization targeting unified-memory GPU systems (NVIDIA DGX Spark / ASUS Ascent GX10). All 333 vision weights, 192 shared expert layers, 48 MoE gate layers, and lm_head preserved at full precision. Text module quantized to INT4 W4G128.
| Parameter | Value |
|---|---|
| Method | Intel AutoRound v0.12.0 (sign-gradient descent) |
| Bits | 4 (INT4) |
| Group Size | 128 |
| Symmetric | Yes |
| Packing | auto_round:auto_gptq (GPTQ Marlin backend in vLLM) |
| Block Quantized | model.language_model.layers (text module only) |
| Layers Quantized | 37,092 / 37,395 (99.2%) |
Keeping critical layers at full precision is essential for MoE model quality:
model.visual.blocks.*) — BF16gate_proj, up_proj, down_proj) — FP16shared_expert_gate) — FP16The shared expert is activated for every token (unlike routed experts), so preserving its precision is critical for maintaining output quality. The vision encoder is kept at BF16 to preserve multimodal capabilities.
AutoRound uses sign-gradient descent to optimize weight rounding decisions, achieving better accuracy than RTN (round-to-nearest) and competitive results with GPTQ/AWQ while being faster and more robust. The GPTQ-compatible packing format (auto_round:auto_gptq) means this model works with vLLM's optimized Marlin CUDA kernels out of the box.
| Variant | Size on Disk | Reduction |
|---|---|---|
| Qwen3.5-122B-A10B (BF16) | ~234 GB | — |
| Intel/Qwen3.5-122B-A10B-int4-AutoRound (canonical) | ~72 GB | 69% |
| This model (Heretic INT4) | 63 GB | 73% |
The 9 GB difference from Intel's canonical INT4 is because the Heretic fork does not include MTP (Multi-Token Prediction) weights that are present in the base Qwen model.
Tested on a 2-node NVIDIA DGX Spark cluster (2× Grace Blackwell GB10, 128GB unified memory each) with tensor parallelism over 200Gbps RoCE RDMA:
| Metric | Value |
|---|---|
| Decode Speed | 24–27 tok/s (single user) |
| Context Window | 225,000 tokens (tested) |
| GPU Memory | 50% utilization per node (TP=2) |
| Thinking Mode | Toggleable (/think and /no_think) |
| Tool Calling | Parallel tool calls with correct argument generation |
We ran identical test batteries against both this model and Intel/Qwen3.5-122B-A10B-int4-AutoRound on the same hardware:
| Test | Cardinal (Canonical INT4) | Heretic INT4 (This Model) |
|---|---|---|
| Code Generation (rate limiter module, thinking enabled) | 7,060 tokens, 284s | 7,150 tokens, 291s |
| Reasoning (distributed systems architecture) | 4,176 tokens, 24.9 tok/s | 3,495 tokens, 27.5 tok/s |
| Tool Calling (parallel function calls) | 2 calls, correct args | 2 calls, correct args |
Verdict: Quality is essentially identical. The Heretic is slightly faster on reasoning tasks (27.5 vs 24.9 tok/s). Both models produced complete, working code with proper error handling and TypeScript types. The Heretic's code generation included a clock.ts time abstraction — a marginally more mature architectural pattern.
pip install vllm>=0.17.0
vllm serve happypatrick/Qwen3.5-122B-A10B-heretic-int4-AutoRound \
--served-model-name qwen3.5-122b \
--host 0.0.0.0 \
--port 8000 \
--max-model-len 131072 \
--gpu-memory-utilization 0.85 \
--enforce-eager \
--enable-prefix-caching \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_xml \
--trust-remote-code
Then query with any OpenAI-compatible client:
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.5-122b",
"messages": [{"role": "user", "content": "Write a Python quicksort implementation"}],
"temperature": 0.6
}'
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "happypatrick/Qwen3.5-122B-A10B-heretic-int4-AutoRound"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_name,
device_map="auto",
trust_remote_code=True,
)
messages = [{"role": "user", "content": "Hello!"}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
This model was specifically tested on NVIDIA DGX Spark (also sold as ASUS Ascent GX10) — a desktop workstation with a Grace Blackwell GB10 SoC and 128 GB unified CPU+GPU memory. Here's how to run it:
# Conservative settings — leaves room for ~50GB KV cache
vllm serve /path/to/heretic-int4-autoround-v2 \
--served-model-name qwen3.5-122b \
--host 0.0.0.0 --port 8000 \
--gpu-memory-utilization 0.75 \
--max-model-len 131072 \
--enforce-eager \
--enable-prefix-caching \
--reasoning-parser qwen3 \
--trust-remote-code
Warning: Do NOT set
--gpu-memory-utilizationabove 0.85 on unified memory systems. Higher values can cause system freezes. Start at 0.75 and increase carefully.
For two DGX Sparks connected via 200Gbps RoCE RDMA (the setup we tested on):
# Node 2 (worker) — start first
docker run -d --name vllm-worker \
--gpus all --network=host --ipc=host --privileged \
--shm-size 10.24g \
-v /path/to/models:/models \
-e NCCL_SOCKET_IFNAME=enP2p1s0f0np0 \
-e NCCL_IB_HCA=roceP2p1s0f0 \
-e NCCL_P2P_DISABLE=1 \
-e VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS=3600 \
vllm/vllm-openai:latest \
bash -c "ray start --address=<NODE1_IP>:6399 --num-gpus=1 --node-ip-address=<NODE2_IP> --block"
# Node 1 (head) — start second
docker run -d --name vllm-head \
--gpus all --network=host --ipc=host --privileged \
--shm-size 10.24g \
-v /path/to/models:/models \
-e NCCL_SOCKET_IFNAME=enP2p1s0f0np0 \
-e NCCL_IB_HCA=roceP2p1s0f0 \
-e NCCL_P2P_DISABLE=1 \
-e VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS=3600 \
vllm/vllm-openai:latest \
bash -c "ray start --head --port=6399 --num-gpus=1 --node-ip-address=<NODE1_IP> && \
vllm serve /models/heretic-int4-autoround-v2 \
--served-model-name qwen3.5-122b \
--host 0.0.0.0 --port 8000 \
--tensor-parallel-size 2 \
--distributed-executor-backend ray \
--max-model-len 225000 \
--gpu-memory-utilization 0.50 \
--enforce-eager \
--enable-prefix-caching \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_xml \
--trust-remote-code"
--shm-size 10.24g is critical for multi-node Ray — without it, model loading can hang at ~57% (NCCL deadlock)VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS=3600 prevents non-streaming requests from timing out at the default 300s for TP>1 configurations--enforce-eager is recommended — CUDA graph compilation is slow on GB10 and the memory savings aren't worth it at these model sizesNCCL_P2P_DISABLE=1 is required for GB10's unified memory architecture — P2P transfers hangvm.swappiness=1 at the OS level (sysctl vm.swappiness=1) to prevent the kernel from swapping GPU-mapped pages# Create a RunPod instance with 2x H200 SXM, 2TB RAM
# SSH in and install dependencies
pip install torch>=2.5.0
pip install git+https://github.com/intel/auto-round.git # v0.12.0+ (PyPI is too old)
pip install git+https://github.com/huggingface/transformers.git # v5.3.0+
# Download the Heretic base model (~234GB, takes a while)
huggingface-cli download trohrbaugh/Qwen3.5-122B-A10B-heretic \
--local-dir /workspace/heretic-bf16
auto-round \
--model_name "/workspace/heretic-bf16" \
--output_dir "/workspace/output/heretic-int4" \
--ignore_layers shared_expert \
--device_map "auto"
That's it. AutoRound handles everything else — calibration data, iteration count, group size, and format are all set to sensible defaults.
--ignore_layers shared_expertmodel.language_model.layers)Use auto-round from git, not PyPI. The PyPI release (0.10.2) doesn't support Qwen3.5 MoE models. You need the merged PR #1476 which adds Qwen3_5MoeForConditionalGeneration support.
Transformers must also be from git. The released version doesn't have the Qwen3.5 model class yet.
PyTorch 2.4 will fail with AttributeError: 'Linear' object has no attribute 'set_submodule'. Use PyTorch 2.5+.
--ignore_layers shared_expert is important. The shared expert is activated for every single token (unlike the 255 routed experts where only 8 fire per token). Quantizing it hurts output quality disproportionately. Intel uses the same flag for the canonical model.
--device_map "auto" distributes across GPUs correctly. With 2× H200, the model splits cleanly and quantization runs in parallel where possible.
The Heretic fork has no MTP weights. This is why our output is 63GB instead of the 72GB you'd get from quantizing the canonical Qwen model. Not a quality issue — MTP (Multi-Token Prediction) is a speculative decoding feature, not a capability.
Vision is automatically preserved. Because we set block_name_to_quantize to model.language_model.layers, the vision encoder (model.visual.*) is never touched. You get full multimodal support in the quantized model.
This model is based on the "Heretic" variant of Qwen3.5-122B-A10B, which has had safety refusals significantly reduced using directional ablation (Heretic v1.2.0 by p-e-w).
attn.o_proj and mlp.down_proj across all 48 layers.This model will follow instructions that the original Qwen model would refuse. Please use responsibly. The creators are not responsible for misuse.
This model inherits the Apache 2.0 license from Qwen/Qwen3.5-122B-A10B.
--ignore_layers shared_expert recipe on the canonical modelIf you use this model, please cite both the AutoRound quantization method and the original Qwen model:
@article{cheng2024optimize,
title={Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs},
author={Cheng, Wenhua and Zhang, Weiwei and Shen, Haihao and Cai, Yiyang and He, Xin and Lv, Kaokao and Liu, Yi},
journal={arXiv preprint arXiv:2309.05516},
year={2024}
}
@misc{qwen3.5,
title={Qwen3.5 Technical Report},
author={Qwen Team},
year={2025},
url={https://qwenlm.github.io/blog/qwen3.5/}
}
Quantized on 2026-03-15 using RunPod 2× H200 SXM. Tested on a 2-node DGX Spark cluster with 200Gbps RoCE RDMA.
有文件?提交种子。
发布种子model-00061-of-00063.safetensors 1.5 GBmodel-00063-of-00063.safetensors 1.5 GBmodel-00059-of-00063.safetensors 1.1 GBmodel-00027-of-00063.safetensors 1.1 GBmodel-00043-of-00063.safetensors 1.1 GBmodel-00054-of-00063.safetensors 1.1 GBmodel-00022-of-00063.safetensors 1.1 GBmodel-00038-of-00063.safetensors 1.1 GBmodel-00011-of-00063.safetensors 1.1 GBmodel-00006-of-00063.safetensors 1.1 GBmodel-00021-of-00063.safetensors 1.1 GBmodel-00037-of-00063.safetensors 1.1 GBmodel-00015-of-00063.safetensors 1.1 GBmodel-00026-of-00063.safetensors 1.1 GBmodel-00031-of-00063.safetensors 1.1 GBmodel-00042-of-00063.safetensors 1.1 GBmodel-00047-of-00063.safetensors 1.1 GBmodel-00020-of-00063.safetensors 1.1 GBmodel-00036-of-00063.safetensors 1.1 GBmodel-00052-of-00063.safetensors 1.1 GBmodel-00025-of-00063.safetensors 1.1 GBmodel-00041-of-00063.safetensors 1.1 GBmodel-00057-of-00063.safetensors 1.1 GBmodel-00030-of-00063.safetensors 1.1 GBmodel-00046-of-00063.safetensors 1.1 GBmodel-00028-of-00063.safetensors 1.1 GBmodel-00023-of-00063.safetensors 1.1 GBmodel-00035-of-00063.safetensors 1.1 GBmodel-00040-of-00063.safetensors 1.1 GBmodel-00051-of-00063.safetensors 1.1 GBmodel-00055-of-00063.safetensors 1.1 GBmodel-00056-of-00063.safetensors 1.1 GBmodel-00018-of-00063.safetensors 1.1 GBmodel-00045-of-00063.safetensors 1.1 GBmodel-00050-of-00063.safetensors 1.1 GBmodel-00013-of-00063.safetensors 1.1 GBmodel-00005-of-00063.safetensors 1.1 GBmodel-00010-of-00063.safetensors 1.1 GBmodel-00012-of-00063.safetensors 1.1 GBmodel-00003-of-00063.safetensors 1.1 GBmodel-00007-of-00063.safetensors 1.1 GBmodel-00008-of-00063.safetensors 1.1 GBmodel-00002-of-00063.safetensors 1.1 GBmodel-00001-of-00063.safetensors 1.1 GBmodel-00017-of-00063.safetensors 1.1 GBmodel-00033-of-00063.safetensors 1.1 GBmodel-00053-of-00063.safetensors 1.1 GBmodel-00058-of-00063.safetensors 1.1 GBmodel-00014-of-00063.safetensors 1.1 GBmodel-00024-of-00063.safetensors 1.1 GBmodel-00044-of-00063.safetensors 1.1 GBmodel-00019-of-00063.safetensors 1.1 GBmodel-00029-of-00063.safetensors 1.1 GBmodel-00034-of-00063.safetensors 1.1 GBmodel-00039-of-00063.safetensors 1.1 GBmodel-00004-of-00063.safetensors 1.1 GBmodel-00009-of-00063.safetensors 1.1 GBmodel-00049-of-00063.safetensors 1.1 GBmodel-00016-of-00063.safetensors 1.1 GBmodel-00032-of-00063.safetensors 1.1 GBmodel-00048-of-00063.safetensors 1.1 GBmodel-00060-of-00063.safetensors 976 MBmodel-00062-of-00063.safetensors 6.2 kBtrohrbaugh/Qwen3.5-122B-A10B-heretic