[Misc] Restrict deep_gemm's log output (#20827)

Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
Jee Jee Li 2025-07-12 11:50:42 +08:00 committed by GitHub
parent a8593237c0
commit 44d02f54db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@ def _valid_deep_gemm(hidden_states: torch.Tensor, w1: torch.Tensor,
aligned by `dg.get_m_alignment_for_contiguous_layout()`.
"""
if not has_deep_gemm():
logger.debug("DeepGemm disabled: deep_gemm not available.")
logger.debug_once("DeepGemm disabled: deep_gemm not available.")
return False
M = hidden_states.size(0)