-
Notifications
You must be signed in to change notification settings - Fork 624
[Platform] Add import_kernels interface #3694
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 a new import_kernels interface to the NPUPlatform class. My review identifies a significant issue of code duplication. The new method's implementation is nearly identical to the existing enable_custom_op function in vllm_ascend/utils.py. This duplication increases maintenance overhead and could lead to inconsistencies. I've suggested refactoring the new method to reuse the existing function, which also benefits from caching logic that the new implementation lacks.
|
we make custom_ops lazy load here #884 please consider this case. |
Signed-off-by: gcanlin <[email protected]>
Signed-off-by: gcanlin <[email protected]>
Signed-off-by: gcanlin <[email protected]>
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. Reopen #3498 for CI.
Does this PR introduce any user-facing change?
How was this patch tested?
CI tested.