Skip to content

Conversation

zaristei
Copy link
Contributor

@zaristei zaristei commented Jul 20, 2025

Overview:

Fix issues with blackwell support on both GB200 and B200 with latest build script.

Details:

Where should the reviewer start?

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • closes GitHub issue: #xxx

Summary by CodeRabbit

  • Chores
    • Updated installation process to use specific PyTorch versions for both ARM64 and AMD64.
    • Improved error handling during installation by removing automatic fallback to latest stable versions.
    • Adjusted installation commands for vllm to enhance compatibility and reliability.

Copy link

copy-pr-bot bot commented Jul 20, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Copy link

👋 Hi zaristei! Thank you for contributing to ai-dynamo/dynamo.

Just a reminder: The NVIDIA Test Github Validation CI runs an essential subset of the testing framework to quickly catch errors.Your PR reviewers may elect to test the changes comprehensively before approving your changes.

🚀

@github-actions github-actions bot added the external-contribution Pull request is from an external contributor label Jul 20, 2025
Copy link
Contributor

coderabbitai bot commented Jul 21, 2025

Walkthrough

The installation script for vllm has been updated to alter the way PyTorch and its related packages are installed for both ARM64 and AMD64 architectures. Version pinning for PyTorch on ARM64 now targets earlier nightly builds, removes fallback to stable versions, and enforces strict failure on install errors. For AMD64, explicit PyTorch version installation and the use of the --no-build-isolation flag during vllm installation have been added.

Changes

File(s) Change Summary
container/deps/vllm/install_vllm.sh Updated PyTorch nightly versions for ARM64, removed fallback to stable; enforced strict install. Added explicit PyTorch version install for AMD64 and used --no-build-isolation for vllm pip install.

Poem

In the burrow where scripts are spun,
New torchlight shines for everyone.
No fallback now, strict we go—
If PyTorch fails, the script says "no!"
AMD hops with versions set,
And build isolation? Not just yet!
🐇✨


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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
container/deps/vllm/install_vllm.sh (1)

125-128: --no-build-isolation can leak host-level build deps – confirm you really need it
Disabling build isolation speeds things up but forces the build to rely on whatever happens to be in the invoking environment, which hurts reproducibility and hermeticity. Verify that vllm genuinely cannot build in an isolated env; if not, consider removing the flag or documenting the justification next to the command.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cb6de94 and e7a2873.

📒 Files selected for processing (1)
  • container/deps/vllm/install_vllm.sh (2 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: krishung5
PR: ai-dynamo/dynamo#1388
File: examples/multimodal/utils/model.py:47-53
Timestamp: 2025-06-09T17:52:06.761Z
Learning: The current get_vision_embeddings_size() function in examples/multimodal/utils/model.py uses a hardcoded fallback of 4096 for hidden_size, which assumes all VLMs follow the LLaVA architecture pattern. This is problematic because different VLMs like Qwen2-VL, MiniCPM-V, and others have different hidden dimensions, making the fallback unreliable and potentially causing tensor shape mismatches.
⏰ 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: Build and Test - vllm
🔇 Additional comments (1)
container/deps/vllm/install_vllm.sh (1)

131-138: Audit redundant Torch installation in install_vllm.sh

It looks like we explicitly pin and install torch==2.7.1 (plus torchvision/torchaudio) on lines 131–138, then immediately invoke python use_existing_torch.py, which may itself install or override CUDA-/compute-specific wheels:

  • container/deps/vllm/install_vllm.sh:130–138

Double-installing PyTorch can waste ~1 GB and risks mixing binaries if one step only partially succeeds.

Options to consider:

  • Drop the hard-coded uv pip install torch==2.7.1… and let use_existing_torch.py handle both CPU and GPU wheel selection.
  • Or add a guard around python use_existing_torch.py to skip it when the pre-install already provided the correct wheels.

Please review the logic inside use_existing_torch.py to confirm its behavior on GB200/B200 images and adjust the script accordingly.

@rmccorm4 rmccorm4 changed the title Fixes for Blackwell Builds build: Fixes for vLLM Blackwell Builds Jul 21, 2025
@github-actions github-actions bot added the build label Jul 21, 2025
@zaristei zaristei force-pushed the zaristei/vllm-blackwell-fixes branch from 82f659b to e45b3ab Compare July 22, 2025 20:26
@zaristei
Copy link
Contributor Author

Tested on GB200. Currently the pinned flashinfer cannot be pipped install due to a dependency conflict, but the latest stable for flashinfer seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build external-contribution Pull request is from an external contributor size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants