[atom-vllm] LMCache offload for GLM-5.2 - #2142
Open
kliuae wants to merge 2 commits into
Open
Conversation
Signed-off-by: kliuae <kuanfu.liu@embeddedllm.com>
Signed-off-by: kliuae <kuanfu.liu@embeddedllm.com>
Contributor
🏷️ CI GuideRuns automatically on every eligible PR before approval:
Heavy model tests:
|
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.
Motivation
Adds support for KV cache offloading through LMCache for GLM-5.2 in ATOM-vLLM.
Technical Details
GLM-5.2's sparse MLA stores KV caches for MLA and indexer in a UniformTypeKVCacheSpecs group, but inherently they have different shapes. Overall, the group has 78 MLA and 21 indexer caches. LMCache's default connector uses the number of layers to size the caches, which is 78 for GLM-5.2, whereas there are 99 caches in total, causing conflict. This PR enables GLM-5.2 LMCache for atom-vllm by addressing the following.
Test Plan
lm_eval gsm8k on MI355X
AgentX test
MODEL_PATH=zai-org/GLM-5.2-FP8
Server command
lm_eval
AgentX profile
Test Result
lm_eval gsm8k baseline
lm_eval gsm8k with offload
AgentX baseline
AgentX LMCache CPU offload
Submission Checklist