Skip to content

fix(gpu): finish generation independently for each batch row - #671

Open
Rudy Mizrahi Celekli (rudycelekli) wants to merge 1 commit into
microsoft:mainfrom
rudycelekli:fix/gpu-batch-end-of-turn
Open

Rudy Mizrahi Celekli (rudycelekli) wants to merge 1 commit into
microsoft:mainfrom
rudycelekli:fix/gpu-batch-end-of-turn

Conversation

@rudycelekli

Copy link
Copy Markdown

Batched generation stops the entire batch when one row finishes. Track completion independently and stop when all rows finish.

Validation:

  • python3 gpu/tests/test_batch_eos.py passed locally.
  • The regression fails against the unchanged upstream base and passes with this fix.

This change was prepared with AI assistance and independently reviewed locally. Focused tests use small fixtures or mocked dependencies; no full model inference or CUDA hardware validation is claimed.

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