Hy3-NVFP4-FP8 / recipe.yaml
kylesayrs's picture
Add files using upload-large-folder tool
74257af verified
Raw
History Blame Contribute Delete
1.92 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
experts:
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: [lm_head]
bypass_divisibility_checks: false