[Refactor] Clean up log once scope="local" (#40540)
Signed-off-by: yewentao256 <zhyanwentao@126.com> Signed-off-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent
cfa49213d7
commit
8f87eb4622
@@ -106,16 +106,14 @@ def is_deep_gemm_e8m0_used() -> bool:
|
||||
_lazy_init()
|
||||
|
||||
if _fp8_gemm_nt_impl is None:
|
||||
logger.info_once(
|
||||
"DeepGEMM E8M0 disabled: _fp8_gemm_nt_impl not found", scope="local"
|
||||
)
|
||||
logger.info_once("DeepGEMM E8M0 disabled: _fp8_gemm_nt_impl not found")
|
||||
return False
|
||||
|
||||
if envs.VLLM_USE_DEEP_GEMM_E8M0:
|
||||
logger.info_once("DeepGEMM E8M0 enabled on current platform.", scope="local")
|
||||
logger.info_once("DeepGEMM E8M0 enabled on current platform.")
|
||||
return True
|
||||
|
||||
logger.info_once("DeepGEMM E8M0 disabled on current configuration.", scope="local")
|
||||
logger.info_once("DeepGEMM E8M0 disabled on current configuration.")
|
||||
return False
|
||||
|
||||
|
||||
|
||||
@@ -66,14 +66,12 @@ def import_triton_kernels():
|
||||
|
||||
logger.debug_once(
|
||||
f"Loading module triton_kernels from {triton_kernels.__file__}.",
|
||||
scope="local",
|
||||
)
|
||||
elif _has_module("vllm.third_party.triton_kernels"):
|
||||
import vllm.third_party.triton_kernels as triton_kernels
|
||||
|
||||
logger.debug_once(
|
||||
f"Loading module triton_kernels from {triton_kernels.__file__}.",
|
||||
scope="local",
|
||||
)
|
||||
sys.modules["triton_kernels"] = triton_kernels
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user