feat: [Qwen3.5] Support block-wise FP8 quantization and model adaptation (#18926)
This commit is contained in:
@@ -171,8 +171,11 @@ class Fp8Config(QuantizationConfig):
|
||||
config, ["ignored_layers", "modules_to_not_convert"], None
|
||||
)
|
||||
if ignored_layers:
|
||||
# hack for ministral
|
||||
ignored_layers = [layer.replace("model.", "") for layer in ignored_layers]
|
||||
if "mistral3" in config.get("model_type", ""):
|
||||
# hack for ministral
|
||||
ignored_layers = [
|
||||
layer.replace("model.", "") for layer in ignored_layers
|
||||
]
|
||||
weight_block_size = cls.get_from_keys_or(config, ["weight_block_size"], None)
|
||||
if use_mxfp8 and weight_block_size is not None:
|
||||
logger.warning(
|
||||
|
||||
Reference in New Issue
Block a user