From 9c34570ffc503f05166ccb2a579e708e0e716ae8 Mon Sep 17 00:00:00 2001 From: Pedro Augusto <16762743+pedronaugusto@users.noreply.github.com> Date: Wed, 22 Apr 2026 01:10:56 +0100 Subject: [PATCH] deps: pin torch>=2.11.0 in requirements_macos.txt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The mtlgemm Metal extension's metal_context.mm calls at::mps::dispatch_sync_with_rethrow, which was added to that namespace in PyTorch 2.11.0 (pytorch/pytorch#167445, merged 2025-11-11). Earlier stable releases (2.6 – 2.10) only expose it under at::native::mps::, so installing mtlgemm against them fails the C++ extension build. torchvision pinned to >=0.26.0 (matches torch 2.11) to keep the torch/torchvision wheel pair ABI-compatible on resolution. --- requirements_macos.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/requirements_macos.txt b/requirements_macos.txt index fe93378..ebda466 100644 --- a/requirements_macos.txt +++ b/requirements_macos.txt @@ -2,8 +2,13 @@ # NO: flash_attn, spconv, torchsparse (CUDA-only) # Core -torch>=2.2.0 -torchvision>=0.17.0 +# torch >= 2.11.0 is required because mtlgemm's metal_context.mm calls +# at::mps::dispatch_sync_with_rethrow, which was promoted from +# at::native::mps:: to at::mps:: in PyTorch 2.11 (PR #167445, merged +# 2025-11-11). Earlier stable versions (2.6 – 2.10) only expose it under +# at::native::mps:: and won't link. +torch>=2.11.0 +torchvision>=0.26.0 transformers>=4.40.0,<5 safetensors huggingface_hub