You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use expand/repeat if-else for MPS backward compat in block_utils
The unconditional .repeat(L, 1) on line 431 allocated an O(L^2) tensor
on every backend. .expand() is zero-copy but produces a non-contiguous
view that MPS torch.where cannot handle. Guard with an if-else so
CUDA/CPU keep the original expand path and MPS gets repeat.
Also runs ruff 0.8.3 format on files that were formatted with a
different ruff version.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments