Repository navigation
[ROCm][Kernel] Add shared route switches and kernel configs for amd-kernels - #69415
Open
shen-shanshan wants to merge 1 commit into
Open
shen-shanshan wants to merge 1 commit into
shen-shanshan wants to merge 1 commit into
Conversation
The MiniMax-M3.1, DeepSeek-V4.1 and Kimi-K3.1 integrations of amd-kernels each define their own KernelConfig.amd_kernels and their own copy of the route switches. Land the shared, model-agnostic part once: AmdKernelsConfig (enabled, disabled_routes; compile factors include the routes and the installed amd_kernels revision) and vllm/model_executor/amd_kernels_routes.py (AmdKernelsRoutes with prerequisites, on/fail, covered, dp_max_tokens, available). Nothing calls it yet. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: shen-shanshan <467638484@qq.com>
amd_kernels route switches and KernelConfig.amd_kernels
shen-shanshan
marked this pull request as ready for review
November 23, 2026 12:54
shen-shanshan
requested review from
ProExpertProg,
WoosukKwon,
houseroad,
mgoin,
robertgshaw2-redhat,
tlrmchlsmth,
yewentao256 and
youkaichao
as code owners
November 23, 2026 12:54
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
The MiniMax-M3.1 (#67850 / #69097), DeepSeek-V4.1 (#69097) and Kimi-K3.1 (#69172) integrations of
amd-kernels each define their own
KernelConfig.amd_kernels(twoincompatible versions) and their own copy of the route switches (
akr_config.py). This PR lands the shared part once,model-agnostic, so the model PRs only declare their routes:
KernelConfig.amd_kernels(AmdKernelsConfig):enabledanddisabled_routes(route names, validated by themodels that declare them). Its compile factors include the sorted routes and the installed
amd_kernelsrevision.vllm/model_executor/amd_kernels_routes.py:AmdKernelsRoutes(model, routes, needs): a model's routes and their prerequisites;on(route): whether the route runs in this process, resolved once from the config, the platform and theprerequisites;
fail(route, reason): takes a route and its dependents out at load time;covered(op, reason): logs a library blocker's reason once;dp_max_tokens(n): the DP-group maximum a collective route decides on;available(): ROCm gfx950 withamd_kernelsimportable.Nothing calls the module yet; with no model routes, behaviour is unchanged on every platform.
Test Plan
Test Result
test_amd_kernels_routes.py: 7 passed. It covers:failtaking out dependents;tests/test_config.py: 664 passed. 6 failed, and the same 6 fail on main in this environment (gated HF models,B200 / B300 defaults).
available()is True withamd-kernelson the path and False without it.🤖 Generated with Claude Code