Skip to content

tests : fix comp_padding CUDA graph reservation - #31344

Merged
ggerganov merged 1 commit into
ggml-org:masterfrom
developer0hye:fix/dsv4-padding-test-ubatch
Oct 29, 2026
Merged

ggerganov merged 1 commit into
ggml-org:masterfrom
developer0hye:fix/dsv4-padding-test-ubatch

Conversation

@developer0hye

Copy link
Copy Markdown
Contributor

Overview

The comp_padding test added in #31300 exposes an existing DSV4.1 allocation issue on CUDA with GGML_SCHED_DEBUG_REALLOC=1: the single-sequence context reserves the 64-token attention path, then switches to the small-batch gather path during its 32-token prefill.

Use n_ubatch=32 so that the single-sequence reserve covers the path being tested. The largest batch checked for graph reuse is 14 tokens, so it still fits in one ubatch. The reuse assertions and reallocation check stay enabled.

This fixes the test's CI failure; the general DSV4.1 reservation issue across attention paths remains separate. Reproduction on the pre-change runtime is recorded here.

Validation

  • With the updated test, the parent of llama : remove simple batch splitting for DSV4 #31300 still fails the graph-reuse assertion for V4 (6 tokens) and V4.1 (3 tokens), on both CPU and CUDA. The merged runtime passes both.
  • The context suite passes for all 137 generated models on CPU and CUDA.
  • All runs use GGML_SCHED_DEBUG_REALLOC=1. CUDA validation uses an RTX A6000 and CUDA 13.

Requirements

  • I have read and agree with the contributing guidelines.
  • AI usage disclosure: YES. Codex assisted with reproduction, testing, the change, and this description.

@am17an am17an left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix the dsv4.1 graph. Approving now to unblock CI. Thanks for the fix!

@ggerganov

Copy link
Copy Markdown
Member

We'll try to add CI that runs the test-llama-context tests in the PRs soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants