Skip to content

Commit 5795b8f

Browse files
zou3519lk-chen
authored andcommitted
Ignore '<string>' filepath (vllm-project#17330)
Signed-off-by: rzou <[email protected]>
1 parent 6a32bec commit 5795b8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vllm/compilation/backends.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ def __call__(self, graph: fx.GraphModule, example_inputs) -> Callable:
382382
hash_content = []
383383
for filepath in forward_code_files:
384384
hash_content.append(filepath)
385+
if filepath == "<string>":
386+
# This means the function was dynamically generated, with
387+
# e.g. exec(). We can't actually check these.
388+
continue
385389
with open(filepath) as f:
386390
hash_content.append(f.read())
387391
import hashlib

0 commit comments

Comments
 (0)