[Bugfix][HiSparse] Never allocate GPU pages without host backing (#59036)

Signed-off-by: Lucas Wilkinson <lwilkins@redhat.com>
Signed-off-by: Matthew Bonanni <mbonanni@redhat.com>
Co-authored-by: Matthew Bonanni <mbonanni@redhat.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas Wilkinson
2026-09-30 04:13:29 +00:00
committed by GitHub
co-authored by Matthew Bonanni Claude Opus 5.5
parent e006d761a5
commit 90e13fc757
8 changed files with 252 additions and 85 deletions
+8
View File
@@ -1822,6 +1822,14 @@ class VllmConfig:
raise ValueError(
"HiSparse does not support decode context parallelism."
)
if not self.scheduler_config.scheduler_reserve_full_isl:
# Without it, async loads admitted against free host blocks can
# each wait on host pages the others hold, and waiting requests
# are never preempted to free them.
raise ValueError(
"HiSparse requires --scheduler-reserve-full-isl; remove "
"--no-scheduler-reserve-full-isl."
)
if self.model_config is not None and not hasattr(
self.model_config.hf_config, "index_topk"
):