nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 13 lines 685 B view raw
1diff --git a/vllm/model_executor/models/registry.py b/vllm/model_executor/models/registry.py 2index a2de597c8..4c2410209 100644 3--- a/vllm/model_executor/models/registry.py 4+++ b/vllm/model_executor/models/registry.py 5@@ -1121,7 +1121,7 @@ def _run_in_subprocess(fn: Callable[[], _T]) -> _T: 6 # cannot use `sys.executable __file__` here because the script 7 # contains relative imports 8 returned = subprocess.run( 9- _SUBPROCESS_COMMAND, input=input_bytes, capture_output=True 10+ _SUBPROCESS_COMMAND, input=input_bytes, capture_output=True, env={'PYTHONPATH': ':'.join(sys.path)}, 11 ) 12 13 # check if the subprocess is successful