-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[None][fix] Scope KVCM warmup capacity constraints to DeepSeek V4 #19213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
209b7b9
b1d7f2b
26033aa
8aee228
06a47f0
8662968
edaa0fe
e3eaecf
e4820bd
42f0f00
3ca96e8
2876088
cf8bd33
141fc0b
45fc4ac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6126,7 +6126,8 @@ class TestSeedOss_36B(LlmapiAccuracyTestHarness): | |
| @pytest.mark.timeout(14400) | ||
| @pytest.mark.skip_less_device_memory(140000) | ||
| def test_auto_dtype(self): | ||
| kv_cache_config = KvCacheConfig(free_gpu_memory_fraction=0.8) | ||
| kv_cache_config = KvCacheConfig(free_gpu_memory_fraction=0.8, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If the intent is a regression guard for this fix, parametrizing over |
||
| use_kv_cache_manager_v2=True) | ||
| chat_template_kwargs = dict(thinking_budget=-1) | ||
|
|
||
| with LLM(self.MODEL_PATH, kv_cache_config=kv_cache_config) as llm: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This constraint has no unit coverage —
test_deepseek_v4_cache_manager.pynever referencesconstraintsor_build_cache_config, and the generic V2 test now only asserts its absence. Since this is the second time the constraint has moved, please add a CPU-only test that builds the V4 config and asserts the emittedBatchDesc(onemax_seq_lendecode plusmax_batch_size - 1minimal decodes, with1 + max_draft_len + num_extra_kv_tokenscapacity), plus a case withpool_ratioset asserting it is omitted.Separately: the gate here is
config.initial_pool_ratio is Nonewhile the base gates the same block onkv_cache_config.pool_ratio is None. They agree today only because_build_base_configassignsinitial_pool_ratio=kv_cache_config.pool_ratio. A one-line comment noting that coupling would save the next reader the trip.