[WIP][feat](kt-kernel): Add Ascend NPU CPU-MoE backend + llama.cpp b3173 patch support - #2153
Draft
Nikonz wants to merge 3 commits into
Draft
[WIP][feat](kt-kernel): Add Ascend NPU CPU-MoE backend + llama.cpp b3173 patch support#2153Nikonz wants to merge 3 commits into
Nikonz wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Nikonz
marked this pull request as draft
August 13, 2026 05:10
2 tasks
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.
What does this PR do?
Adds an Ascend NPU (CANN) backend to kt-kernel's CPU-expert-offload engine (
CPUINFER_USE_ASCEND_NPU), including a CPU-side MXFP4 MoE kernel path, together with the llama.cpp b3173 patches it needs to build (gguf-pyNumPy-2 reader fix,GGML_TYPE_MXFP4), auto-applied at CMake configure time.This is part of a DeepSeek-V4-Flash CPU-offload port to Ascend 910B. Companion sglang-side PR: sgl-project/sglang#TBD (KT wiring for the AscendTP dispatcher).
Box-verified: full kt-kernel build from these exact commits succeeds — Ascend backend selected, both llama.cpp patches auto-applied by the new CMake step against a pristine checkout,
.sobuilds andimport kt_kernel_extsucceeds.Opening as Draft/WIP for early visibility while the companion sglang PR is finalized — not requesting review yet.
Fixes # (issue)
N/A — new hardware backend, not a bug report.
Before submitting