Fixed: "NOTE: Redirects are currently not supported in MacOs."
On a Mac, every script that used Hugging Face Transformers 5.24.1 started with NOTE: Redirects are currently not supported in MacOs., from a PyTorch file named redirects.py. The note is harmless: Transformers loaded a part of PyTorch it didn't need, and that part prints it on macOS. Transformers 5.25.0 and later no longer load it, so upgrading Transformers removes the note.
What I Was Doing
I was running a short sentiment-analysis script with Transformers 5.24.1 and PyTorch 2.15.0, on Python 3.14, on an Apple M1 Pro. The script prints the Transformers version, then classifies one sentence:
import transformers
from transformers import pipeline
print(transformers.__version__)
classifier = pipeline(
"sentiment-analysis",
model="distilbert/distilbert-base-uncased-finetuned-sst-2-english",
revision="714eb0fa89d2f80546fda750413ed43d93601a13",
)
print(classifier("This works on my Mac."))
uv run python check.py
What I Expected
The version, then the label and its score.
What I Got
W1204 11:25:36.243000 1664 .venv/lib/python3.14/site-packages/torch/distributed/elastic/multiprocessing/redirects.py:35] NOTE: Redirects are currently not supported in MacOs.
5.24.1
Loading weights: 100%|██████████████████████████████████████████| 104/104 [00:00<00:00, 7359.17it/s]
[{'label': 'POSITIVE', 'score': 0.9949631690979004}]

The script worked, but the note came first, even before the version: it's printed while Transformers is being imported. The W at the start of the line marks a warning, followed by the date, the time, the process number and the file that printed it.
What I Checked
Who prints it. The note comes from PyTorch, not from Transformers. In torch/distributed/elastic/multiprocessing/redirects.py, a function that looks for the system's C library logs it on macOS, and the module calls that function as soon as it's imported:
def get_libc():
if IS_MACOS:
logger.warning("NOTE: Redirects are currently not supported in MacOs.")
return None
That module belongs to PyTorch's tools for training across several machines (torch.distributed). Redirecting a worker process's output to files is one of those tools, and it isn't available on macOS.
Why a sentiment script imports it. My script uses nothing from torch.distributed. Transformers 5.24.1 does: its modeling_utils.py imports transformers/distributed/checkpoint.py, which imports PyTorch's torch.distributed.checkpoint.hf_storage at the top of the file. Python's import timing (python -X importtime) showed that importing hf_storage loads torch.distributed.elastic.multiprocessing.redirects, and the note appeared at that moment.
Whether Transformers has fixed it. Pull request huggingface/transformers#50927, merged on 27 November 2026, moved that hf_storage import from the top of transformers/distributed/checkpoint.py into the functions that use it. The same file already did this for another import, with the comment "Import here because otherwise it emits a warning every time it's imported on some hardware". GitHub's comparison of the tags shows the change is in Transformers 5.25.0 (released 1 December 2026) and not in 5.24.1.
Why It Happens
Transformers 5.24 imports a module of PyTorch's distributed training tools when it loads, even when no distributed training happens. On macOS, that module logs a note that output redirects aren't supported. The note changes nothing in your script or its results.
The Fix
Upgrade Transformers to 5.25.0 or later. In a uv project:
uv sync --upgrade-package transformers
Resolved 62 packages in 201ms
Prepared 1 package in 1ms
Uninstalled 1 package in 304ms
Installed 3 packages in 47ms
+ kernels==0.19.1
+ tomlkit==0.15.3
- transformers==5.24.1
+ transformers==5.26.0
uv sync brings the project's environment in line with its lockfile, and --upgrade-package transformers lets it move that one package to its newest allowed version while every other package stays where it is. uv's reference describes the option as "Allow upgrades for a specific package, ignoring pinned versions in any existing output file". Transformers went from 5.24.1 to 5.26.0, and two packages the newer Transformers needs, kernels and tomlkit, were installed with it.
After the Fix
uv run python check.py
5.26.0
Loading weights: 100%|█████████████████████████████████████████| 104/104 [00:00<00:00, 16321.47it/s]
[{'label': 'POSITIVE', 'score': 0.9949631690979004}]

The note is gone, and the result is the same as before. The commands work unchanged in PowerShell.
Common Mistakes
| Mistake | What happens | Do this instead |
|---|---|---|
| Treating the note as a reason the script fails | It's only a note; the real error, if there is one, comes later in the output | Read past it to the actual error |
| Upgrading every package to get rid of it | Many versions change at once, for one harmless line | Upgrade only Transformers, with --upgrade-package transformers |
| Upgrading in a project that must stay on one version | The rest of the project may expect the older Transformers | Leave the note: it changes nothing |
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
uv sync --upgrade-package transformers keeps 5.24.1 | pyproject.toml limits the version, such as transformers==5.24.1 | Change the requirement: uv add "transformers>=5.25.0" |
| The note still appears with Transformers 5.25.0 or later | Something else in your project imports torch.distributed | Look for code that uses PyTorch's distributed tools |
FAQ
Does the note mean PyTorch can't use the Mac's GPU?
No. It's about redirecting the output of worker processes in distributed training. With Transformers 5.24.1 and the note showing, a pipeline on this Mac still ran on the GPU, mps:0, as How to Choose the Device a Hugging Face Pipeline Runs On shows.
Do I see it on Windows or Linux?
No. The note is only logged when PyTorch runs on macOS.
Conclusion
NOTE: Redirects are currently not supported in MacOs. came from PyTorch's distributed tools, which Transformers 5.24.1 imported on startup. It was harmless, and uv sync --upgrade-package transformers moved to Transformers 5.26.0, which no longer imports them, and the note was gone.
Additional Resources
- huggingface/transformers#50927 — the change that moved the import, released in 5.25.0.
- Transformers releases — what changed in each version.
- uv sync —
--upgrade-packageand the other options.
