From 165cb56329e6cdbf58741b420c349793ec2390b3 Mon Sep 17 00:00:00 2001 From: Richard Zou Date: Mon, 28 Apr 2025 22:23:29 -0400 Subject: [PATCH] Ignore `''` filepath (#17330) Signed-off-by: rzou --- vllm/compilation/backends.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vllm/compilation/backends.py b/vllm/compilation/backends.py index a1d12b5175504..7012131d05321 100644 --- a/vllm/compilation/backends.py +++ b/vllm/compilation/backends.py @@ -382,6 +382,10 @@ class VllmBackend: hash_content = [] for filepath in forward_code_files: hash_content.append(filepath) + if filepath == "": + # This means the function was dynamically generated, with + # e.g. exec(). We can't actually check these. + continue with open(filepath) as f: hash_content.append(f.read()) import hashlib