$ the-wire · showcase
Helion puts fake-quantized attention on M5 accelerators
By RepoJournal · Filed · About PyTorch · Composed from the cited sources · methodology
Helion shipped a stack of Metal codegen changes that route fragment matmuls onto the M5's neural accelerators, while PyTorch cleaned up XPU dtype coverage, memory stats, and a quadratic AOTAutograd overlap check.
[metal] Run fragment MMAs on the M5's neural accelerators pytorch/helion
Fragment runs on Metal now emit a 16x16 matmul2d atom at SIMD-group scope instead of the 8x8 simdgroup_matrix form, because the M5's neural accelerators clock 56-60 TFLOP/s on half and bfloat inputs versus 16 TFLOP/s for the old path on a 40-core M5 Max. That is over three times the matmul throughput for the same fragment kernel, with no code change required on your side.
[metal] Hoist, row-split and stage fragment runs, and search the grid order pytorch/helion
The same stack hoists, row-splits, and stages fragment runs, holding 4 to 8 SIMD groups of query rows per threadgroup and sharing each K and V tile through threadgroup memory, and it searches grid order. It is the attention-kernel shape the fast Metal kernels already use, applied to Helion's generated code.
[dynamo] Sweep large storage buckets when computing tensor overlap (#206571) pytorch/pytorch
compute_overlapping_tensors called tensors_definitely_do_not_overlap on every pair, and it now sweeps large storage buckets instead, making the aliased-input overlap check near-linear rather than quadratic for typical layouts. A companion change runs the analysis on meta tensors with hinted layouts rather than symbolic FakeTensors, removing the symbolic cost from the check entirely.
[xpu] Track and expose num_ooms in torch.xpu.memory_stats() (#206756) pytorch/pytorch
torch.xpu.memory_stats()["num_ooms"] raised KeyError and torch.accelerator.memory_stats()["num_ooms"] always returned 0, because XPUCachingAllocator never counted OOMs and THXPModule_memoryStats never exported the key. Both now report real counts, so XPU OOM monitoring that worked on CUDA works here too.
[aotautograd] Run input overlap analysis on hinted layouts (#206572) pytorch/pytorch
compute_overlapping_inputs, which decides whether AOTAutograd can treat inputs as disjoint, no longer pays symbolic cost: it runs on meta tensors carrying the inputs' hinted layouts. Same decision, cheaper to reach.
[BugFix] Update replay priorities when the Trainer has an optimization stepper pytorch/rl
With an optimization_stepper, Trainer.optim_steps skipped the post_loss ops where ReplayBufferTrainer updates priorities, so CQLTrainer, which always uses a stepper, kept a prioritized buffer's initial priorities forever. The stepper branch now runs post_loss after the step unless the stepper sets updates_replay_priority, matching the rule the Ray backend already used.
[BugFix] Register TargetNetUpdaterHook at post_optim in register() pytorch/rl
TargetNetUpdaterHook.register() hooked at post_steps, updating the target network once per collected batch instead of after every optimizer step; it now registers at post_optim as the docstring and built-in trainers always said it did.
Build CUDA 13.2/13.4/13.5 on nightly and test; drop CUDA getting-started and Windows exclusion lists (#9636) pytorch/test-infra
The test channel now builds and tests CUDA 13.2, 13.4, and 13.5, release stays at 13.2 and 13.4, and the two exclusion lists are gone: 13.5 is offered on pytorch.org for nightly and test, and Windows builds and validates the same versions as Linux.