RepoJournal
PyTorch

@pytorch

PyTorch and the broader machine-learning ecosystem

Keep up with PyTorch in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Python AI / ML Full archive →

The Wire · Showcase

DYNAMO CLOSES GENERATOR AND RANGE GAPS, HELION SHIPS REDUCTION HEURISTICS

By RepoJournal · Filed · About PyTorch

PyTorch's JIT compiler fixed three critical tracing failures that were breaking real workloads: deque re-initialization, __index__ coercion in range() arguments, and pre-existing generator iteration.

Dynamo landed three consecutive fixes addressing fundamental tracer blind spots. First, deque.__init__ now works inside compiled code [1], mirroring CPython's reset logic so you can re-initialize an existing deque with a new iterable and maxlen without graph-breaking. Second, __index__ coercion now propagates correctly through range() arguments and slice members [2], fixing both range(I(2), I(5)) patterns and subscript chains like range(10)[:I(5)]. Third, pre-existing generators can now be consumed at compile time [3], solving the graph-break that blocked TestOnlySetsGenerator under PYTORCH_TEST_WITH_DYNAMO=1. Separately, NCCL extension linking now follows torch's linkage strategy [4]: static linking for source builds, dynamic for wheel builds on USE_SYSTEM_NCCL=ON. Over in Helion, the autotuner landed its reduction seed heuristic [5] backed by new reduction fact layers [6] that capture accumulator and memory operation provenance. The team also shipped pallas_loop_type='compact_worklist' [7], a new loop strategy that compacts jagged iteration spaces into dense work items, eliminating wasted compute on padded sequences for kernels like jagged flash attention.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Add Dynamo support for deque.__init__ (#187128) pytorch/pytorch
  2. [2] Add Dynamo __index__ coercion for range() args and slice members (#187129) pytorch/pytorch
  3. [3] Fix Dynamo set operations over pre-existing generators (#186042) pytorch/pytorch
  4. [4] Dynamically link NCCL EP for USE_SYSTEM_NCCL=ON (wheel) builds (#187385) pytorch/pytorch
  5. [5] [autotuner] Triton reduction seed heuristic (generalizable core) ↗ pytorch/helion
  6. [6] [autotuner] Reduction fact layer: ReductionFact + AccumulatorFact + enriched MemoryOpFact ↗ pytorch/helion
  7. [7] [Pallas] Add pallas_loop_type = compact_worklist ↗ pytorch/helion

Quick answers

What shipped in PyTorch on June 18, 2026?
PyTorch's JIT compiler fixed three critical tracing failures that were breaking real workloads: deque re-initialization, __index__ coercion in range() arguments, and pre-existing generator iteration. In total, 86 commits, 25 pull requests, and 1 releases landed.
Who contributed to PyTorch on June 18, 2026?
2 developers shipped this update, including calebmkim and ethche.
What were the notable PyTorch updates?
Add Dynamo support for deque.__init__ (#187128), Add Dynamo __index__ coercion for range() args and slice members (#187129), and Fix Dynamo set operations over pre-existing generators (#186042).

More from @pytorch

Daily updates, in your inbox

Follow PyTorch

Keep up with PyTorch in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.