From 1444756e46e439e105a0c17eb67464dd8fe61b23 Mon Sep 17 00:00:00 2001 From: Erin Ho <14718778+hchings@users.noreply.github.com> Date: Tue, 16 Sep 2025 21:03:24 +0000 Subject: [PATCH] address comments --- examples/ray/multi_nodes/README.md | 8 ++- examples/ray/multi_nodes/run_cluster.sh | 1 - .../_torch/distributed/communicator.py | 57 +++++++------------ .../pyexecutor/executor_request_queue.py | 15 ++--- tensorrt_llm/_torch/pyexecutor/py_executor.py | 10 +--- 5 files changed, 29 insertions(+), 62 deletions(-) diff --git a/examples/ray/multi_nodes/README.md b/examples/ray/multi_nodes/README.md index eba9dfb4e333..0fcf208965d4 100644 --- a/examples/ray/multi_nodes/README.md +++ b/examples/ray/multi_nodes/README.md @@ -17,10 +17,14 @@ TensorRT-LLM supports a prototype [Ray orchestrator](../README.md) as an alterna 2. Once on the head node, launch a multi-node Ray cluster: ```shell # Remember to set CONTAINER and MOUNTS env vars or variables inside the script to your path. + # You can add the TensorRT-LLM installation command in this script if it is not preinstalled in your container. >> bash -e run_cluster.sh ``` 3. Enter the head container and run your TensorRT-LLM driver script + + Note that this step requires TensorRT-LLM to be installed in the containers on all nodes. If it isn’t, install it manually inside each node’s container. + ```shell # On the head node >> sacct @@ -31,9 +35,7 @@ TensorRT-LLM supports a prototype [Ray orchestrator](../README.md) as an alterna >> enroot list -f # get process id >> enroot exec bash - # Under your work directory: - >> pip install -e . # if needed - # You can change this script to a model and parallel settings effective for multi-node inference (e.g., TP8 or TP4PP4) + # You can change this script to a model and parallel settings effective for multi-node inference (e.g., TP8 or TP4PP4). >> python examples/ray/llm_inference_async_ray.py ``` diff --git a/examples/ray/multi_nodes/run_cluster.sh b/examples/ray/multi_nodes/run_cluster.sh index 3e92d302a053..45bf3164fa42 100644 --- a/examples/ray/multi_nodes/run_cluster.sh +++ b/examples/ray/multi_nodes/run_cluster.sh @@ -78,7 +78,6 @@ echo -e "${BLUE}[INFO] Logs : $LOG_DIR${RESET}" ######################################################## # enabled dashboard only for debug -# Add cd tekit/ and pip install -e . to head_cmd and worker_cmd if needed # Add apt-get install -y --no-install-recommends libzmq3-dev for multi-node disagg head_cmd=$(cat <