Skip to content

Commit 7f931c1

Browse files
kylesayrsdsikka
andauthored
Remove tracing blame when encountering runtime errors (#1655)
## Purpose ## * Make debugging easier by not assuming that runtime errors are always the fault of tracing * The new autowrapper logic has made tracing issues much less likely to occur --------- Signed-off-by: Kyle Sayers <[email protected]> Co-authored-by: Dipika Sikka <[email protected]>
1 parent e628e13 commit 7f931c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/llmcompressor/pipelines/sequential/helpers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ def forward(self, *args, **kwargs) -> Dict[str, Any]:
7474
except Exception as exception:
7575
raise RuntimeError(
7676
"Raised an exception during execution of the following code:\n"
77-
f"```\n{add_line_numbers(self._code.src)}\n```\n"
78-
"This is likely due to a violation of shape assumptions made when "
79-
"tracing"
77+
f"```\n{add_line_numbers(self._code.src)}\n```"
8078
) from exception
8179

8280
return outputs

0 commit comments

Comments
 (0)