### What this PR does / why we need it? This PR optimizes the `_compute_slot_mappings_kernel` for Ascend NPUs to improve performance. The key changes include: - A new Triton kernel implementation (`_compute_slot_mappings_kernel`) with NPU-specific optimizations, such as using `tl.gather` to handle non-contiguous memory access and replacing modulo operations. - A new method `compute_slot_mappings` in `AscendBlockTables` to use this new kernel. - An end-to-end test to verify the correctness of the new kernel against the reference GPU implementation. The optimization is needed to avoid performance degradation from scalar computation on Ascend devices. ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? - vLLM version: v0.18.0 - vLLM main: https://github.com/vllm-project/vllm/commit/ed359c497a728f08b5b41456c07a688ccd510fbc --------- Signed-off-by: lhp-deep <liuhaopeng1@huawei.com>
[Experimental] Model Runner V2
This directory contains the new model runner which is under active development.
please see Model Runner V2 to get specific plans.
supported vllm version: main@4034c3d32e30d01639459edd3ab486f56993876d related PR: https://github.com/vllm-project/vllm-ascend/pull/7110