-
Notifications
You must be signed in to change notification settings - Fork 645
[Platform] Add import_kernels interface #3498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:
If CI fails, you can run linting and testing checks locally according Contributing and Testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces the import_kernels method to the NPUPlatform class, aligning it with an updated interface from the upstream vLLM project. The implementation correctly attempts to import the optional vllm._moe_C library for Mixture-of-Experts support, while gracefully handling an ImportError if the library is not available. This approach is consistent with how optional kernels are managed in other platform implementations within vLLM. The code is clean, correct, and follows best practices for handling optional dependencies. I have reviewed the changes and found no issues.
Signed-off-by: gcanlin <[email protected]>
|
@wangxiyuan Could you please take a look? Thanks! |
|
Closed for the stale CI. |
### What this PR does / why we need it? Add import_kernels interface to avoid import useless vLLM C library Closes #3488. Reopen #3498 for CI. ### How was this patch tested? CI tested. - vLLM version: v0.11.0 - vLLM main: vllm-project/vllm@2918c1b --------- Signed-off-by: gcanlin <[email protected]>
### What this PR does / why we need it? Add import_kernels interface to avoid import useless vLLM C library Closes vllm-project#3488. Reopen vllm-project#3498 for CI. ### How was this patch tested? CI tested. - vLLM version: v0.11.0 - vLLM main: vllm-project/vllm@2918c1b --------- Signed-off-by: gcanlin <[email protected]> Signed-off-by: luolun <[email protected]>
### What this PR does / why we need it? Add import_kernels interface to avoid import useless vLLM C library Closes vllm-project#3488. Reopen vllm-project#3498 for CI. ### How was this patch tested? CI tested. - vLLM version: v0.11.0 - vLLM main: vllm-project/vllm@2918c1b --------- Signed-off-by: gcanlin <[email protected]> Signed-off-by: hwhaokun <[email protected]>
### What this PR does / why we need it? Add import_kernels interface to avoid import useless vLLM C library Closes vllm-project#3488. Reopen vllm-project#3498 for CI. ### How was this patch tested? CI tested. - vLLM version: v0.11.0 - vLLM main: vllm-project/vllm@2918c1b --------- Signed-off-by: gcanlin <[email protected]> Signed-off-by: nsdie <[email protected]>
What this PR does / why we need it?
Closes #3488.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
CI passed.