Skip to content

Commit c070819

Browse files
committed
fix: update ray executor import for vLLM 0.20
vLLM 0.20 renamed the executor module from ray_distributed_executor to ray_executor; the class name RayDistributedExecutor and its collective_rpc method are unchanged. Without this fix, any FP8 generation path that goes through monkey_patch_vllm_ray_executor() with TP*PP > 1 (i.e. any multi-GPU vllm_cfg.precision='fp8' run) fails at worker init with: ModuleNotFoundError: No module named 'vllm.v1.executor.ray_distributed_executor' Signed-off-by: Aurelien Chartier <2567591+achartier@users.noreply.github.com>
1 parent 7f85849 commit c070819

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • nemo_rl/models/generation/vllm/quantization

nemo_rl/models/generation/vllm/quantization/fp8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def monkey_patch_vllm_ray_executor(fp8_config):
8282
if fp8_config.model_parallel_size > 1:
8383
# we patch vllm's collective_rpc so that before vllm initalizes the model on each rank, we execute
8484
# a ray remote that patches each worker with the required fp8 vllm patches
85-
from vllm.v1.executor.ray_distributed_executor import RayDistributedExecutor
85+
from vllm.v1.executor.ray_executor import RayDistributedExecutor
8686

8787
original_run_workers = RayDistributedExecutor.collective_rpc
8888

0 commit comments

Comments
 (0)