Skip to content

feat: Enable PyTorch2 Batching - #196

Merged
mattwittwer merged 8 commits into
mainfrom
mwittwer/enable_pytorch2_batching
Jun 11, 2026
Merged

feat: Enable PyTorch2 Batching#196
mattwittwer merged 8 commits into
mainfrom
mwittwer/enable_pytorch2_batching

Conversation

@mattwittwer

@mattwittwer mattwittwer commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

What does the PR do?

Enables default (first‑dimension) batching and sequence batching for the AOT Inductor (PT2) backend. Fixes the output responder to scatter batched results per‑request (first_dim_batching), implements control‑input + implicit‑state validation/registration and adds an io_data alias mechanism so control/state tensors resolve via ordinal (INPUT__N), forward (ARGS[...]), or descriptive (__) names - matching pt1.

Checklist

  • PR title reflects the change and is of format <commit_type>: <Title>
  • Changes are described in the pull request.
  • Related issues are referenced.
  • Populated github labels field
  • Added test plan and verified test passes.
  • Verified that the PR passes existing CI.
  • Verified copyright is correct on all changed files.
  • Added succinct git squash message before merging ref.
  • All template sections are filled out.
  • Optional: Additional screenshots for behavior/output changes with before/after.

Commit Type:

Check the conventional commit type
box here and add the label to the github PR.

  • build
  • ci
  • docs
  • feat
  • fix
  • perf
  • refactor
  • revert
  • style
  • test

Related PRs:

triton-inference-server/server#8814

Where should the reviewer start?

Test plan:

  • CI Pipeline ID:

Caveats:

Background

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • closes GitHub issue: #xxx

@mattwittwer mattwittwer self-assigned this Jun 2, 2026
@mattwittwer mattwittwer changed the title draft: enable pytorch2 batching feat: enable pytorch2 batching Jun 4, 2026
@mattwittwer mattwittwer changed the title feat: enable pytorch2 batching feat: Enable PyTorch2 Batching Jun 4, 2026
Comment thread src/pt2/io_data.hh Outdated
Comment thread README.md Outdated
yinggeh
yinggeh previously approved these changes Jun 8, 2026
Comment thread src/pt2/model_instance_state.cc Outdated
pskiran1
pskiran1 previously approved these changes Jun 9, 2026
whoisj
whoisj previously approved these changes Jun 9, 2026
@mattwittwer
mattwittwer dismissed stale reviews from whoisj, pskiran1, and yinggeh via 6c047da June 9, 2026 20:57
yinggeh
yinggeh previously approved these changes Jun 9, 2026
whoisj
whoisj previously approved these changes Jun 9, 2026

@whoisj whoisj 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.

LGTM

@mattwittwer
mattwittwer dismissed stale reviews from whoisj and yinggeh via 7349ea8 June 10, 2026 18:45
@mattwittwer
mattwittwer requested review from whoisj and yinggeh June 10, 2026 23:04
@mattwittwer
mattwittwer merged commit b4f284c into main Jun 11, 2026
1 check passed
mc-nv pushed a commit that referenced this pull request Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants