Repository navigation
Conversation
d6963e5 to
f1c1322
Compare
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
tensorrt_llm/llmapi/trtllm-llmapi-launch (1)
28-28: Rename variable for clarity.The variable
free_portis misleading since it now holds an IPC path rather than a TCP port number.Apply this diff to improve clarity:
- local free_port=$(python3 -c "import uuid, tempfile, os; print(f'ipc://{os.path.join(tempfile.gettempdir(), \"rpc_test_\" + str(uuid.uuid4()))}')") - export TLLM_SPAWN_PROXY_PROCESS_IPC_ADDR=$free_port + local ipc_addr=$(python3 -c "import uuid, tempfile, os; print(f'ipc://{os.path.join(tempfile.gettempdir(), \"rpc_test_\" + str(uuid.uuid4()))}')") + export TLLM_SPAWN_PROXY_PROCESS_IPC_ADDR=$ipc_addr
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
tensorrt_llm/llmapi/trtllm-llmapi-launch(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Pre-commit Check
🔇 Additional comments (2)
tensorrt_llm/llmapi/trtllm-llmapi-launch (2)
26-33: Verify IPC socket cleanup and rename function from TCP to IPC.The switch to IPC addresses creates filesystem socket entries that require explicit cleanup. The codebase has proper cleanup patterns elsewhere (e.g.,
tensorrt_llm/bench/benchmark/utils/processes.pyusesos.remove(f"{self._socket_path}")in__del__), but this pattern is missing from the spawned proxy process code. While ZMQ'ssocket.close()andcontext.term()close the socket connection, they do not automatically remove the filesystem socket file.Additionally:
Function naming: Rename
export_free_tcp_addr_for_spawn_proxy_processtoexport_free_ipc_addr_for_spawn_proxy_process— the function generates IPC addresses, not TCP.Inconsistency: The shell script generates
ipc://format, buttensorrt_llm/commands/serve.py(line 637-638) sets the same env var totcp://format. Verify which format is intended and ensure consistency.
40-43: No issues found; code change is verified as correct.The IPC address setup is appropriately restricted to rank 0. Verification confirms that
create_mpi_comm_session()(which consumes the IPC address) has an explicit rank 0 assertion and is only invoked on rank 0. Worker nodes (mgmn_worker_node.py) do not referenceTLLM_SPAWN_PROXY_PROCESS_IPC_ADDRand only run anMPICommExecutorfor task execution, confirming they have no dependency on the proxy process IPC address.
f1c1322 to
d8d55ab
Compare
|
/bot run |
|
PR_Github #21910 [ run ] triggered by Bot. Commit: |
|
PR_Github #21910 [ run ] completed with state |
|
/bot run |
|
PR_Github #21953 [ run ] triggered by Bot. Commit: |
|
PR_Github #21953 [ run ] completed with state |
|
/bot run |
|
PR_Github #22000 [ run ] triggered by Bot. Commit: |
|
PR_Github #22000 [ run ] completed with state |
|
/bot run |
|
PR_Github #22126 [ run ] triggered by Bot. Commit: |
There was a problem hiding this comment.
Should we target the fix to https://github.com/NVIDIA/TensorRT-LLM/tree/release/1.1 branch?
There was a problem hiding this comment.
Yes, I will open another cherry-pick PR.
|
PR_Github #22126 [ run ] completed with state |
d8d55ab to
8f29050
Compare
|
/bot run |
|
PR_Github #22189 [ run ] triggered by Bot. Commit: |
|
PR_Github #22189 [ run ] completed with state |
|
/bot run |
|
PR_Github #22292 [ run ] triggered by Bot. Commit: |
|
PR_Github #22292 [ run ] completed with state |
Signed-off-by: Yan Chunwei <[email protected]>
8f29050 to
907a6de
Compare
|
/bot run |
|
PR_Github #22392 [ run ] triggered by Bot. Commit: |
|
PR_Github #22392 [ run ] completed with state |
|
/bot run |
|
PR_Github #22707 [ run ] triggered by Bot. Commit: |
|
PR_Github #22707 [ run ] completed with state |
|
@Superjomn What is the status of this PR? Did the fix land in? |
|
👋 Thanks for this contribution! As part of a one-time effort to trim the TensorRT-LLM open-PR backlog, we're closing PRs that have had no activity in over 180 days and currently have merge conflicts with |
Pull request was closed
Re-pin flashinfer-prims-ts-moe from FlashInfer main 855eece4 to 637f9c53, which adds FlashInfer NVIDIA#8497 (faster MXFP4 x MXFP8 MoE GEMMs: deeper-pipelined tile configs, 64-byte K-block weights and an opt-in fused FC2 finalize) and NVIDIA#8498. The integration patch applies unchanged, and the new launch arguments are optional, so the op keeps the unfused finalize. NVIDIA#8497 renumbers the tactics. Key the autotuner cache on a digest of the vendored config mapper and tables instead of a hand-kept version string, so tuned tactics from other config tables are not replayed. Signed-off-by: qgai <[email protected]>
Re-pin flashinfer-prims-ts-moe from FlashInfer main 855eece4 to 637f9c53, which adds FlashInfer NVIDIA#8497 (faster MXFP4 x MXFP8 MoE GEMMs: deeper-pipelined tile configs, 64-byte K-block weights and an opt-in fused FC2 finalize) and NVIDIA#8498. The integration patch applies unchanged, and the new launch arguments are optional, so the op keeps the unfused finalize. NVIDIA#8497 renumbers the tactics. Key the autotuner cache on a digest of the vendored config mapper and tables instead of a hand-kept version string, so tuned tactics from other config tables are not replayed. Signed-off-by: qgai <[email protected]>
Summary by CodeRabbit
Description
Test Coverage
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...Provide a user friendly way for developers to interact with a Jenkins server.
Run
/bot [-h|--help]to print this help message.See details below for each supported subcommand.
Details
run [--reuse-test (optional)pipeline-id --disable-fail-fast --skip-test --stage-list "A10-PyTorch-1, xxx" --gpu-type "A30, H100_PCIe" --test-backend "pytorch, cpp" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" --detailed-log --debug(experimental)]Launch build/test pipelines. All previously running jobs will be killed.
--reuse-test (optional)pipeline-id(OPTIONAL) : Allow the new pipeline to reuse build artifacts and skip successful test stages from a specified pipeline or the last pipeline if no pipeline-id is indicated. If the Git commit ID has changed, this option will be always ignored. The DEFAULT behavior of the bot is to reuse build artifacts and successful test results from the last pipeline.--disable-reuse-test(OPTIONAL) : Explicitly prevent the pipeline from reusing build artifacts and skipping successful test stages from a previous pipeline. Ensure that all builds and tests are run regardless of previous successes.--disable-fail-fast(OPTIONAL) : Disable fail fast on build/tests/infra failures.--skip-test(OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.--stage-list "A10-PyTorch-1, xxx"(OPTIONAL) : Only run the specified test stages. Examples: "A10-PyTorch-1, xxx". Note: Does NOT update GitHub check status.--gpu-type "A30, H100_PCIe"(OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.--test-backend "pytorch, cpp"(OPTIONAL) : Skip test stages which don't match the specified backends. Only support [pytorch, cpp, tensorrt, triton]. Examples: "pytorch, cpp" (does not run test stages with tensorrt or triton backend). Note: Does NOT update GitHub pipeline status.--only-multi-gpu-test(OPTIONAL) : Only run the multi-GPU tests. Note: Does NOT update GitHub check status.--disable-multi-gpu-test(OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.--add-multi-gpu-test(OPTIONAL) : Force run the multi-GPU tests in addition to running L0 pre-merge pipeline.--post-merge(OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline.--extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx"(OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx".--detailed-log(OPTIONAL) : Enable flushing out all logs to the Jenkins console. This will significantly increase the log volume and may slow down the job.--debug(OPTIONAL) : Experimental feature. Enable access to the CI container for debugging purpose. Note: Specify exactly one stage in thestage-listparameter to access the appropriate container environment. Note: Does NOT update GitHub check status.For guidance on mapping tests to stage names, see
docs/source/reference/ci-overview.mdand the
scripts/test_to_stage_mapping.pyhelper.kill
killKill all running builds associated with pull request.
skip
skip --comment COMMENTSkip testing for latest commit on pull request.
--comment "Reason for skipping build/test"is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.reuse-pipeline
reuse-pipelineReuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.