Skip to content

Commit 7c82af2

Browse files
revert changes in cuda_piecewise_backend.py
Signed-off-by: Diego-Castan <[email protected]>
1 parent e77ad46 commit 7c82af2

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

vllm/compilation/cuda_piecewise_backend.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: Apache-2.0
22
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
33

4-
import dataclasses, inspect
4+
import dataclasses
55
from contextlib import ExitStack
66
from typing import Any, Callable, Optional
77
from unittest.mock import patch
@@ -97,9 +97,6 @@ def __init__(self, graph: fx.GraphModule, vllm_config: VllmConfig,
9797
need_to_compile=shape in self.compile_sizes,
9898
use_cudagraph=shape in self.cudagraph_capture_sizes,
9999
)
100-
101-
# DIEGO: to avoid printing all the stack of calls every single time
102-
self.print_stack_calls = True
103100

104101
def check_for_ending_compilation(self):
105102
if self.is_last_graph and not self.to_be_compiled_sizes:
@@ -164,11 +161,6 @@ def __call__(self, *args) -> Any:
164161
# We only log it in the debug mode.
165162
logger.debug("Capturing a cudagraph for shape %s",
166163
runtime_shape)
167-
# if self.print_stack_calls:
168-
# self.print_stack_calls = False
169-
# for frame_info in inspect.stack():
170-
# logger.debug(f"DIEGO: File: {frame_info.filename}, Line: {frame_info.lineno}, Function: {frame_info.function}")
171-
172164

173165
input_addresses = [
174166
x.data_ptr() for x in args if isinstance(x, torch.Tensor)

0 commit comments

Comments
 (0)