Using the llmcompressor to quantify Qwen3.5-35B-A3B-MOE, Some layers cannot be quantified.

#7
by David-LR - opened

Using the llmcompressor to quantify model, AWQ always skips the linear layer because Qwen3.5-MOE is a 3D Parameter structure. The final quantized model is 62GB in size. I would like to ask how this was resolved.

from llmcompressor.modifiers.awq import AWQModifier, AWQMapping
recipe = AWQModifier(
targets="Linear",
config_groups={
"group_0": QuantizationScheme(
targets=["Linear"],
weights=QuantizationArgs(
num_bits=4, type="int", symmetric=True,
group_size=128, strategy="group",
observer="mse", observer_kwargs={},
block_structure=None, dynamic=False,
actorder=None, scale_dtype=None, zp_dtype=None,
),
input_activations=None,
output_activations=None,
),
},
ignore=[
"re:mtp[.]fc$",
"re:model[.]visual.*",
"re:.*shared_expert_gate$",
"re:.*mlp[.]gate$",
"lm_head",
],

Sign up or log in to comment