Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Studio: drop the MPS attention guard from the training worker, whose …
…MPS fallback runs on CPU tensors

[skip ci]
  • Loading branch information
danielhanchen committed Nov 21, 2026
commit bd0ee08d452a34bf5659ea8520c8db178314f6e5
5 changes: 0 additions & 5 deletions studio/backend/core/training/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -4704,11 +4704,6 @@ def run_training_process(*, event_queue: Any, stop_queue: Any, config: dict) ->

install_windows_rocm_wide_head_sdpa_guard(logger)

# torch < 2.13 MPS attention is wrong past about 2^29 score elements: split those calls by query rows.
from core._mps_sdpa_guard import install_mps_large_attention_guard

install_mps_large_attention_guard(logger)

# Single-GPU never inits the process group, but transformers/trl import these torch.distributed attrs anyway.
_td_stubs = {
"is_initialized": lambda: False,
Expand Down