Skip to content

Size mixed prefill rows to quoted checkpoint work - #389

Merged
yatesdr merged 1 commit into
NVIDIA:mainfrom
yatesdr:fix/helios-mixed-prefill-resize
Nov 19, 2026
Merged

yatesdr merged 1 commit into
NVIDIA:mainfrom
yatesdr:fix/helios-mixed-prefill-resize

Conversation

@yatesdr

@yatesdr yatesdr commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Size mixed prefill rows to quoted checkpoint work

Follows up #357. When checkpoint storage is short, the quoted cut can
move past the estimated one used to choose a mixed graph (prompt
prefill combined with decode or verification rows, from packages
exported with --mixed-prefill). #357 resized ordinary prefill plans to
the quoted work; mixed plans kept their prompt capacity and the quoted
work was clipped to it, so the prompt row ran short and was finished in
another step.

Apply the same resize to a mixed plan's prompt row: pick the smallest
mixed shape with the plan's batch and decode width whose prompt
capacity covers the quoted work, and recompute the duration and the
combined prompt and decode value. Decode rows, refresh and discovery
plans are unchanged, and a shape without a measured duration keeps the
plan as on main.

The regression schedules a 200-token prompt as 200 tokens on a
256-token mixed shape; main runs 128 tokens on a 128-token shape. It
also covers 300- and 1,024-token prompts (the latter bounded by the
512-token catalog maximum), ordinary and speculative decode rows and
the missing-duration fallback. It fails on main and passes with the
fix (Linux aarch64). On cn4 (Linux x86_64, release) the scheduler and
runtime phase tests pass: 426 passed, 4 ignored.

Not tested: serving on a --mixed-prefill package, scored prefill or
image spans under shortage, more than one decode row.

Follows up NVIDIA#357. When checkpoint storage is short, the quoted cut can
move past the estimated one used to choose a mixed graph (prompt
prefill combined with decode or verification rows, from packages
exported with --mixed-prefill). NVIDIA#357 resized ordinary prefill plans to
the quoted work; mixed plans kept their prompt capacity and the quoted
work was clipped to it, so the prompt row ran short and was finished in
another step.

Apply the same resize to a mixed plan's prompt row: pick the smallest
mixed shape with the plan's batch and decode width whose prompt
capacity covers the quoted work, and recompute the duration and the
combined prompt and decode value. Decode rows, refresh and discovery
plans are unchanged, and a shape without a measured duration keeps the
plan as on main.

The regression schedules a 200-token prompt as 200 tokens on a
256-token mixed shape; main runs 128 tokens on a 128-token shape. It
also covers 300- and 1,024-token prompts (the latter bounded by the
512-token catalog maximum), ordinary and speculative decode rows and
the missing-duration fallback. It fails on main and passes with the
fix (Linux aarch64). On cn4 (Linux x86_64, release) the scheduler and
runtime phase tests pass: 426 passed, 4 ignored.

Not tested: serving on a --mixed-prefill package, scored prefill or
image spans under shortage, more than one decode row.

Design-Signed-Off-By: yatesdr; design-review=1af4
@yatesdr
yatesdr merged commit 18be8fb into NVIDIA:main Nov 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant