[#12257][fix] Use the first non-None result returned by hf download workers#12259
[#12257][fix] Use the first non-None result returned by hf download workers#12259Superjomn merged 2 commits intoNVIDIA:mainfrom
Conversation
📝 WalkthroughWalkthroughEnhanced robustness in model directory selection by filtering out None values when distributing models across nodes, and simplified the accompanying docstring for clarity. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip CodeRabbit can enforce grammar and style rules using `languagetool`.Configure the |
Superjomn
left a comment
There was a problem hiding this comment.
LGTM, thanks for the contribution.
|
/bot run |
|
PR_Github #39724 [ run ] triggered by Bot. Commit: |
|
PR_Github #39724 [ run ] completed with state
|
|
/bot run |
|
PR_Github #39739 [ run ] triggered by Bot. Commit: |
|
PR_Github #39739 [ run ] completed with state
|
|
/bot run |
|
PR_Github #39742 [ run ] triggered by Bot. Commit: |
|
PR_Github #39742 [ run ] completed with state
|
|
/bot run |
|
PR_Github #39745 [ run ] triggered by Bot. Commit: |
|
PR_Github #39745 [ run ] completed with state
|
|
/bot run |
|
PR_Github #39748 [ run ] triggered by Bot. Commit: |
|
PR_Github #39748 [ run ] completed with state
|
|
/bot run |
|
PR_Github #39752 [ run ] triggered by Bot. Commit: |
|
PR_Github #39752 [ run ] completed with state
|
|
/bot run |
|
PR_Github #39755 [ run ] triggered by Bot. Commit: |
|
PR_Github #39755 [ run ] completed with state
|
|
/bot run |
|
PR_Github #39758 [ run ] triggered by Bot. Commit: |
|
PR_Github #41656 [ run ] completed with state
|
|
/bot run |
|
PR_Github #41660 [ run ] triggered by Bot. Commit: |
|
PR_Github #41660 [ run ] completed with state
|
|
/bot run |
|
PR_Github #41662 [ run ] triggered by Bot. Commit: |
|
PR_Github #41662 [ run ] completed with state
|
|
/bot run |
|
PR_Github #41669 [ run ] triggered by Bot. Commit: |
|
PR_Github #41669 [ run ] completed with state
|
|
/bot run |
|
PR_Github #41676 [ run ] triggered by Bot. Commit: |
|
PR_Github #41676 [ run ] completed with state
|
|
/bot run |
|
PR_Github #41682 [ run ] triggered by Bot. Commit: |
|
PR_Github #41682 [ run ] completed with state
|
|
/bot run |
|
PR_Github #41716 [ run ] triggered by Bot. Commit: |
|
PR_Github #41716 [ run ] completed with state
|
|
/bot run |
|
PR_Github #41720 [ run ] triggered by Bot. Commit: |
|
PR_Github #41720 [ run ] completed with state
|
|
/bot run |
|
PR_Github #41756 [ run ] triggered by Bot. Commit: |
|
PR_Github #41756 [ run ] completed with state |
…load workers (NVIDIA#12259) Signed-off-by: Kevin <kevinbi@modular.com>
…load workers (NVIDIA#12259) Signed-off-by: Kevin <kevinbi@modular.com>
Summary by CodeRabbit
Description
This PR addresses the issue reported in #12257.
There seems to be an edge case when running the TensorRT-LLM backend in dynamo where
model_dirs[0]does not hold the rank-0 result. So rather than always use themodel_dirs[0]result change the code to iterate through non-Nonevalues inmodel_dirsand use the first is encountered. Since only the rank-0 worker is still downloading the model and all other workers will returnNonethere should be only one non-Nonevalue inmodel_dirsto use. Now we should handle both the assumed case wheremodel_dirs[0]does hold the result and the edge case where some other entry in the list holds the result.Test Coverage
The existing tests should cover, the
model_diris still fetched and assigned, it's just that the manner it is fetched is different. Let me know if it would be preferable to add a test where the edge case is triggered.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
Update tava architecture diagram if there is a significant design change in PR.
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
To see a list of available CI bot commands, please comment
/bot help.