@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / bd292be0c0
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 10, 02:45 UTC

[BugFix] Python file source reading can fail on UnicodeDecodeError (#32416)

Signed-off-by: Richard Zou <zou3519@gmail.com>

Richard Zou committed Jan 15, 2026 at 15:01 UTC bd292be0c0fcdd139576fd83c8715af2eab4ca4f
1 file changed +1 -1
vllm/compilation/backends.py
+1 -1
@@ -606,7 +606,7 @@ class VllmBackend:
606 try:
607 with open(filepath) as f:
608 hash_content.append(f.read())
609 - except OSError:
609 + except (OSError, UnicodeDecodeError):
610 logger.warning("Failed to read file %s", filepath)
611 continue
612 code_hash = hashlib.sha256("\n".join(hash_content).encode()).hexdigest()