[Feat][Test] script: support check model support without loading weight - #1276
Open
flesher0813 wants to merge 4 commits into
Open
[Feat][Test] script: support check model support without loading weight#1276flesher0813 wants to merge 4 commits into
flesher0813 wants to merge 4 commits into
Conversation
flesher0813
requested review from
Infinite666,
harrisonyhq,
mag1c-h and
ygwpz
as code owners
August 25, 2026 01:20
flesher0813
force-pushed
the
develop_sglang
branch
from
August 25, 2026 06:20
646395f to
e173dec
Compare
flesher0813
force-pushed
the
develop_sglang
branch
from
August 31, 2026 02:45
bb64330 to
b571bf4
Compare
flesher0813
force-pushed
the
develop_sglang
branch
from
August 31, 2026 06:41
b571bf4 to
62b23dd
Compare
Contributor
|
I don’t think This would also provide a clearer place for unit tests and future extensions. I would keep it separate from the default environment precheck because it allocates real accelerator KV-cache tensors and is therefore relatively heavyweight. |
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
Add no-weight model compatibility checkers for environments with limited accelerator memory.
The checkers validate whether a model's native vLLM KV-cache layout is compatible with UCM without loading weights. Unlike shape-only mock tests, they continue to exercise the production vLLM model structure, ModelRunner, Scheduler, KVCacheManager, and UCM dump/load paths.
This provides a faster way to identify model-specific KV-cache compatibility issues while avoiding the accelerator-memory cost of loading full model weights.
Modifications
Common compatibility-checking flow
Add
examples/model_check/ucm_model_check_common.pyto provide the platform-independent validation workflow:VllmConfigand UCM connector configuration.metadevice without invoking loading weights.KVCacheSpecthrough the productionModelRunner.KVCacheGroupSpecKVCacheConfignum_gpu_blocks_override.Schedulerand submit synthetic source and target requests.KVCacheManagerto allocate group-aware block tables.SchedulerOutputpath.CUDA checker
Add
examples/model_check/ucm_model_check_cuda.py:GPUModelRunner.metawhile redirecting unintended device allocations.Ascend checker
Add
examples/model_check/ucm_model_check_ascend.py:NPUModelRunner.metawithout loading checkpoint weights.UniformTypeKVCacheSpecsthrough the native unwrap and manager factory path.User configuration
Each platform launcher exposes a small configuration section for:
The compatibility checker intentionally rejects command-line arguments so that each test configuration remains explicit and reproducible.
Test
Edit the
User configurationandUCM configurationsections in the corresponding launcher before running.Tested on vllm 0.26.0 and vllm-ascend 0.23.0rc1/0.26.0 using models: Qwen2.5-14B、deepseek-v2-ite、GLM5.2、deepseek-v4-flash、Qwen-Next、Minimax-M2.5 etc.
Located the KV cache layout changed problem: #1259.