Add AMD GPU support for Nemotron-Nano-12B-v2-VL#210
Add AMD GPU support for Nemotron-Nano-12B-v2-VL#210jiacao-amd wants to merge 2 commits intovllm-project:mainfrom
Conversation
Summary of ChangesHello @jiacao-amd, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the existing documentation for the Nemotron-Nano-12B-v2-VL model by integrating a new guide for users with AMD GPUs. The added content provides a step-by-step process, from preparing the Docker environment with ROCm to configuring and running the vLLM server and executing benchmarks, thereby broadening the model's accessibility to a wider range of hardware platforms. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds valuable documentation for running Nemotron-Nano-12B-v2-VL on AMD GPUs. The instructions are well-structured. However, I've identified a critical security issue in the provided docker run command that needs to be addressed immediately. I've also pointed out a likely incorrect Docker image version that would prevent users from following the guide, and a point of confusion regarding the number of GPUs assumed in the example commands. My feedback aims to improve the security and clarity of the instructions.
NVIDIA/Nemotron-Nano-12B-v2-VL.md
Outdated
| --group-add video \ | ||
| --cap-add=SYS_PTRACE \ | ||
| --security-opt seccomp=unconfined \ | ||
| -v /:/work \ |
There was a problem hiding this comment.
Mounting the host's root filesystem (/) into the container with read-write access is extremely dangerous and presents a major security risk. It gives the container unrestricted access to the entire host system. Please change this to mount only a specific, necessary directory. It would also be beneficial to add a security warning for users regarding the use of --privileged and other powerful flags in the docker run command.
| -v /:/work \ | |
| -v <path_to_your_project>:/work \ |
NVIDIA/Nemotron-Nano-12B-v2-VL.md
Outdated
| Pull the latest vllm docker: | ||
| ```shell | ||
| docker pull vllm/vllm-openai-rocm:v0.14.1 |
There was a problem hiding this comment.
The instruction 'Pull the latest vllm docker:' is contradicted by the command which pins version v0.14.1. This specific version tag also appears to be invalid for the vllm/vllm-openai-rocm image, which will likely cause the setup to fail. Please verify the correct, working version tag and update both the instruction text and the command. If a specific version is required, the text should state that instead of 'latest'.
|
|
||
| ### Step 3: Start the vLLM server | ||
|
|
||
| Run the vllm online serving with this sample command: |
There was a problem hiding this comment.
The sample command uses --tensor-parallel-size 8, which assumes an 8-GPU setup. This might be confusing for users, as the preceding text doesn't mention this requirement. Please add a note to clarify that this value should be adjusted based on the user's number of available GPUs (e.g., --tensor-parallel-size 1 for a single GPU).
6f70abb to
4e013fc
Compare
Signed-off-by: jiacao-amd <jiahui.cao@amd.com> add uv launch support Signed-off-by: jiacao-amd <jiahui.cao@amd.com>
4e013fc to
6496587
Compare
… CUDA sections Merged ROCm installation and running instructions from separate AMD GPU Support section into main content with CUDA/ROCm subheaders for better organization and consistency. Signed-off-by: jiacao-amd <jiahui.cao@amd.com>
No description provided.