|
1 | 1 | # SPDX-License-Identifier: Apache-2.0
|
2 | 2 | # SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
3 | 3 |
|
4 |
| -import dataclasses, inspect |
| 4 | +import dataclasses |
5 | 5 | from contextlib import ExitStack
|
6 | 6 | from typing import Any, Callable, Optional
|
7 | 7 | from unittest.mock import patch
|
@@ -97,9 +97,6 @@ def __init__(self, graph: fx.GraphModule, vllm_config: VllmConfig,
|
97 | 97 | need_to_compile=shape in self.compile_sizes,
|
98 | 98 | use_cudagraph=shape in self.cudagraph_capture_sizes,
|
99 | 99 | )
|
100 |
| - |
101 |
| - # DIEGO: to avoid printing all the stack of calls every single time |
102 |
| - self.print_stack_calls = True |
103 | 100 |
|
104 | 101 | def check_for_ending_compilation(self):
|
105 | 102 | if self.is_last_graph and not self.to_be_compiled_sizes:
|
@@ -164,11 +161,6 @@ def __call__(self, *args) -> Any:
|
164 | 161 | # We only log it in the debug mode.
|
165 | 162 | logger.debug("Capturing a cudagraph for shape %s",
|
166 | 163 | 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 |
| - |
172 | 164 |
|
173 | 165 | input_addresses = [
|
174 | 166 | x.data_ptr() for x in args if isinstance(x, torch.Tensor)
|
|
0 commit comments