[Misc] Reduce logs on startup (#18649)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-05-25 14:03:53 +08:00
committed by GitHub
parent 44073a7ac3
commit 503f8487c2
3 changed files with 16 additions and 16 deletions

View File

@@ -62,10 +62,9 @@ class Fp8Config(QuantizationConfig):
weight_block_size: Optional[list[int]] = None,
) -> None:
super().__init__()
self.is_checkpoint_fp8_serialized = is_checkpoint_fp8_serialized
if is_checkpoint_fp8_serialized:
logger.warning("Detected fp8 checkpoint. Please note that the "
"format is experimental and subject to change.")
if activation_scheme not in ACTIVATION_SCHEMES:
raise ValueError(
f"Unsupported activation scheme {activation_scheme}")