diff --git a/python/sglang/srt/compilation/weak_ref_tensor_jit.py b/python/sglang/srt/compilation/weak_ref_tensor_jit.py index 094393fb2..ffd525c9e 100644 --- a/python/sglang/srt/compilation/weak_ref_tensor_jit.py +++ b/python/sglang/srt/compilation/weak_ref_tensor_jit.py @@ -1,6 +1,5 @@ import os -import torch from torch.utils.cpp_extension import load _abs_path = os.path.dirname(os.path.abspath(__file__)) @@ -10,7 +9,3 @@ load( sources=[f"{_abs_path}/weak_ref_tensor.cpp"], extra_cflags=["-O3"], ) - -x = torch.arange(12, device="cuda").reshape(3, 4) -y = torch.ops.jit_weak_ref_tensor.weak_ref_tensor(x) -print("alias:", x.data_ptr() == y.data_ptr()) diff --git a/python/sglang/srt/mem_cache/memory_pool_host.py b/python/sglang/srt/mem_cache/memory_pool_host.py index 8729e21db..60db37da6 100644 --- a/python/sglang/srt/mem_cache/memory_pool_host.py +++ b/python/sglang/srt/mem_cache/memory_pool_host.py @@ -32,8 +32,6 @@ if _is_npu: logger = logging.getLogger(__name__) SUPPORT_PIN_MEMORY = not _is_npu -if SUPPORT_PIN_MEMORY: - logger.warning("Current platform not support pin_memory") def synchronized(func): diff --git a/python/sglang/srt/tracing/trace.py b/python/sglang/srt/tracing/trace.py index 32d820fc6..c2551ec7b 100644 --- a/python/sglang/srt/tracing/trace.py +++ b/python/sglang/srt/tracing/trace.py @@ -66,7 +66,7 @@ except ImportError: class IdGenerator: pass - logger.info("opentelemetry package is not installed, tracing disabled") + logger.debug("opentelemetry package is not installed, tracing disabled") def is_tracing_enabled() -> bool: