GLM-5.2-NVFP4 / recipe.yaml
kylesayrs's picture
Add files using upload-large-folder tool
350d4cb verified
Raw
History Blame Contribute Delete
2.05 kB
default_stage:
default_modifiers:
QuantizationModifier:
config_groups:
attention:
targets: ['re:.*self_attn\..*']
weights:
num_bits: 8
type: float
symmetric: true
group_size: null
strategy: block
block_structure: [128, 128]
dynamic: false
actorder: null
scale_dtype: null
zp_dtype: null
observer: memoryless_minmax
observer_kwargs: {}
input_activations:
num_bits: 8
type: float
symmetric: true
group_size: 128
strategy: group
block_structure: null
dynamic: true
actorder: null
scale_dtype: null
zp_dtype: null
observer: null
observer_kwargs: {}
output_activations: null
format: null
mlp:
targets: ['re:.*mlp\..*']
weights:
num_bits: 4
type: float
symmetric: true
group_size: 16
strategy: tensor_group
block_structure: null
dynamic: false
actorder: null
scale_dtype: torch.float8_e4m3fn
zp_dtype: null
observer: memoryless_minmax
observer_kwargs: {}
input_activations:
num_bits: 4
type: float
symmetric: true
group_size: 16
strategy: tensor_group
block_structure: null
dynamic: local
actorder: null
scale_dtype: torch.float8_e4m3fn
zp_dtype: null
observer: static_minmax
observer_kwargs: {}
output_activations: null
format: null
targets: [Linear]
ignore: ['re:^model\.layers\.[0-2]\..*re:.*mlp\.gate.*', 're:.*indexer\.weights_proj$',
're:.*indexer\.wk$', 're:.*shared_experts.*', lm_head]
bypass_divisibility_checks: false