diff --git a/python/sglang/srt/model_executor/cuda_graph_runner.py b/python/sglang/srt/model_executor/cuda_graph_runner.py index 3f4483728..6be1b11c6 100644 --- a/python/sglang/srt/model_executor/cuda_graph_runner.py +++ b/python/sglang/srt/model_executor/cuda_graph_runner.py @@ -534,7 +534,7 @@ class CudaGraphRunner: ) graph_fn = ( partial(memory_saver_adapter.cuda_graph, tag=GPU_MEMORY_TYPE_CUDA_GRAPH) - if memory_saver_adapter.log_timing + if memory_saver_adapter.enabled else self.device_module.graph ) with graph_fn(cuda_graph=graph, pool=pool, stream=stream):