Skip to content

[Conductor] Unify GPU/NPU cache tier as device - #4588

Merged
Chase-Rong merged 1 commit into
kvcache-ai:mainfrom
Misak2333:main
Oct 12, 2026
Merged

Chase-Rong merged 1 commit into
kvcache-ai:mainfrom
Misak2333:main

Conversation

@Misak2333

@Misak2333 Misak2333 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

Rename Conductor’s normalized device-cache tier from npu to device to avoid platform-specific naming.

  • Update internal tier names, cache ownership fields, and instance/rank query results. Preserve the cumulative semantics of device / cpu_local / cpu_share / disk.
  • Keep upstream vLLM/SGLang GPU event labels unchanged. Event handling and prefix-matching behavior remain unchanged.
  • Update tests and fixtures, and add bidirectional RPC wire-compatibility coverage.

Module

  • Transfer Engine (mooncake-transfer-engine)
  • Mooncake Store (mooncake-store)
  • Mooncake Conductor (mooncake-conductor)
  • Reshard (mooncake-reshard)
  • Mooncake EP (mooncake-ep)
  • Mooncake PG (mooncake-pg)
  • Integration (mooncake-integration)
  • P2P Store (mooncake-p2p-store)
  • Python Wheel (mooncake-wheel)
  • Common (mooncake-common)
  • Mooncake RL (mooncake-rl)
  • CI/CD
  • Docs
  • Other

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Breaking change
  • Documentation update
  • Performance improvement
  • Other

How Has This Been Tested?

Test commands:

# Example: bash scripts/run_ci_test.sh

Test results:

  • Unit tests pass
  • Integration tests pass (if applicable)
  • Manual testing done (describe below)

Checklist

  • I have performed a self-review of my own code
  • I have formatted my code using ./scripts/code_format.sh
  • I have run pre-commit on the files changed in this PR and all hooks pass
  • I have updated the documentation (if applicable)
  • I have added tests to prove my changes are effective
  • For changes >500 LOC: I have filed an RFC issue

AI Assistance Disclosure

  • No AI tools were used
  • AI tools were used (specify below)

Rename Conductor’s normalized device-cache tier from `npu` to `device` to avoid platform-specific naming.
Co-authored-by: rch <lolopop.rong@gmail.com>
Co-authored-by: Misak2333 <jzxscp173@163.com>
@github-actions github-actions Bot added run-ci Mooncake Conductor Changes related to mooncake-conductor labels Oct 12, 2026
@Chase-Rong
Chase-Rong self-requested a review October 12, 2026 09:18
@Misak2333 Misak2333 changed the title [Conductor] Unified GPU/NPU cache tier as device [Conductor] Unify GPU/NPU cache tier as device Oct 12, 2026
@Chase-Rong

Copy link
Copy Markdown
Collaborator

LGTM

@Chase-Rong
Chase-Rong merged commit 8c9af6c into kvcache-ai:main Oct 12, 2026
27 checks passed
@whn09

whn09 commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

Heads-up: #4469 and #4588 were merged about a minute apart, and together they break the build on main (8c9af6c9). #4469 added mooncake-integration/conductor/conductor_py.cpp, which reads m.npu and hit.npu. #4588 renamed those fields to device in RankCacheHitResult / CacheHitResult. Each PR's CI passed on its own base.

From the CTest unit tests job on current main-based PRs (e.g. #4608, log):

mooncake-integration/conductor/conductor_py.cpp:25:26: error: '...RankCacheHitResult' has no member named 'npu'
mooncake-integration/conductor/conductor_py.cpp:32:23: error: 'const struct mooncake::conductor::prefixindex::CacheHitResult' has no member named 'npu'

The fix looks like a two-line change in conductor_py.cpp: m.npu -> m.device (line 25) and hit.npu -> hit.device (line 32). The Python-facing key is already "device", so the API does not change. Until this lands, every PR rebased on current main fails CTest unit tests. @Chase-Rong @Misak2333, could one of you push the fix? Happy to send it if you prefer.

@he-yufeng

Copy link
Copy Markdown
Collaborator

Heads up: the pybind client still read the old member name (m.npu / hit.npu in mooncake-integration/conductor/conductor_py.cpp), so _conductor stopped compiling and main CI is red. Fix in #4610.

he-yufeng added a commit to he-yufeng/Mooncake that referenced this pull request Oct 12, 2026
kvcache-ai#4588 renamed the cache tier member of CacheHitResult and
RankCacheHitResult from npu to device but did not touch
conductor_py.cpp, so the _conductor module stopped compiling and
every CI run on main now fails at
mooncake-integration/conductor/conductor_py.cpp:25.

Point the two dict exports at the renamed member. Verified with a
syntax-only compile of the translation unit: the pre-fix source fails
with the same two "no member named 'npu'" errors seen in CI, the fixed
source is clean.

(cherry picked from commit 1dc4ca5)
Aionw pushed a commit that referenced this pull request Oct 13, 2026
…4610)

#4588 renamed the cache tier member of CacheHitResult and
RankCacheHitResult from npu to device but did not touch
conductor_py.cpp, so the _conductor module stopped compiling and
every CI run on main now fails at
mooncake-integration/conductor/conductor_py.cpp:25.

Point the two dict exports at the renamed member. Verified with a
syntax-only compile of the translation unit: the pre-fix source fails
with the same two "no member named 'npu'" errors seen in CI, the fixed
source is clean.
@Chase-Rong Chase-Rong mentioned this pull request Oct 21, 2026
8 of 32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mooncake Conductor Changes related to mooncake-conductor run-ci

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants