[MUSA][1/N] sglang.check_env#16959
Conversation
Summary of ChangesHello @yeahdongcn, 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 lays the groundwork for integrating Moore Threads GPUs into the SGLang ecosystem by establishing robust environment detection and dependency management for MUSA. It ensures that SGLang can correctly identify and configure itself for MUSA-enabled hardware, which is a critical prerequisite for future work on accelerating large language model inference on these new GPU architectures. The changes are focused on system-level compatibility rather than direct performance optimizations at this stage. 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 introduces support for Moore Threads GPUs (MUSA) by adding environment checking capabilities and updating dependency configurations. The changes are well-structured and follow the existing pattern for platform support.
My review includes suggestions to improve security by avoiding shell=True in subprocess calls, enhance code clarity by removing unused variables and redundant checks, and fix a potential UnboundLocalError in the environment check script. I've also suggested an improvement to the new documentation to make it clearer for users.
|
/tag-and-rerun-ci |
|
@ispobock Thanks for reviewing this! I noticed there are 7 failing cases. After checking the logs, the failures are mainly due to OOM, timeouts, and connection issues, which don’t appear to be related to this PR. |
4752ae1 to
daebb82
Compare
|
Rebased onto |
Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
daebb82 to
b40605f
Compare
|
Rebased onto |
Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
Motivation
This PR is the first in a series of pull requests (tracked in #16565) to add full support for Moore Threads GPUs, leveraging MUSA (Meta-computing Unified System Architecture) to accelerate LLM inference.
Modifications
is_musato check the basic runtime environmentcheck_env.pyto fetch the device info, driver version, topology, etc.bidictis added in bothpyproject_other.tomlandpyproject.tomlfor futher handlingcuda_wrapper.pyandpynccl_wrapper.pyTesting Done
Tested in a clean torch_musa container.
Accuracy Tests
Benchmarking and Profiling
Checklist
Review Process
/tag-run-ci-label,/rerun-failed-ci,/tag-and-rerun-ci