Skip to content

Pin tokenizers with transformers so Apple Silicon keeps Train and Export - #10431

Merged
danielhanchen merged 8 commits into
mainfrom
mlx-tokenizers-pair-fix
Sep 8, 2026
Merged

danielhanchen merged 8 commits into
mainfrom
mlx-tokenizers-pair-fix

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Problem

On macOS arm64 a fresh install.sh --local can leave transformers==5.5.0 beside tokenizers==0.23.2 in the same venv. transformers declares a tokenizers window and enforces it at import, so that venv cannot import transformers at all. The error it raises is the familiar one:

ImportError: tokenizers<=0.23.0,>=0.22.0 is required for a normal functioning of
this module, but found tokenizers==0.23.2.

mlx_lm imports transformers, so mlx_stack_blockers() reports a blocker and Studio settles chat-only with Train and Export disabled. The install itself exits 0, because the MLX health report at the end of install_python_stack.py is advisory by design.

How the pair comes apart

Reproduced with uv pip compile --python-platform aarch64-apple-darwin --python-version 3.13 against the requirement files in this repo:

step what runs transformers tokenizers
core phase, install.sh:5472 uv pip install unsloth "unsloth-zoo>=2026.9.1" with UV_OVERRIDE=single-env/overrides-darwin-arm64.txt and no -c constraints.txt 5.16.1 0.23.2
step 3b, install_python_stack.py:7225 uv pip install --no-deps -r extras-no-deps.txt 5.5.0 untouched, 0.23.2
result 5.5.0 rejects 0.23.2 at import ImportError Train and Export off

Two things make it fire:

  1. overrides-darwin-arm64.txt carried transformers>=5.5.0 with no upper bound. A uv override replaces every requirement on a package, including this repo's own transformers ... <=5.5.0 cap in pyproject.toml, and install.sh's core install is the one uv command that does not also pass single-env/constraints.txt. macOS arm64 is the only platform that sets UV_OVERRIDE.
  2. extras-no-deps.txt pinned transformers==5.5.0 under --no-deps, which skips transformers' own tokenizers requirement. Pinning one half of the pair leaves whatever the earlier resolve picked.

Why it started now

No commit here caused it. A third-party release walked into an unbounded override:

when what
2026-05-26 #5767 creates the darwin override with transformers>=4.57.6, unbounded
2026-08-09 #7989 raises it to transformers>=5.5.0, still unbounded
2026-08-26 12:32 UTC transformers 5.16.0 published, the first release requiring tokenizers>=0.23.1,<0.24 rather than >=0.22.0,<=0.23.0
2026-09-03 tokenizers 0.23.2 published

Bisected at the resolver: with the override forced to <5.16.0 the core phase resolves transformers 5.15.1 and tokenizers 0.22.2, which the later downgrade to 5.5.0 leaves consistent. Note tokenizers 0.23.0 was never published, so the newest release satisfying <=0.23.0 is 0.22.2, whose cp39-abi3 wheels cover every platform and interpreter these files reach.

Why CI stayed green

  • clean-machine-install-ci.yml runs the real install.sh --local on macos-15 and macos-26, is triggered by studio/backend/requirements/**, and then asserts import numpy, safetensors, tokenizers, torch. import tokenizers on its own succeeds at 0.23.2; transformers is not in that list.
  • studio-mac-install-matrix.yml and studio-mac-ui-smoke.yml install --no-torch, the one mode that already pins tokenizers (no-torch-runtime.txt, from fix: unblock 4 tests deselected/skipped in #5312 (real bugs) #5359).
  • mlx-ci.yml builds its own venv from studio.txt in a single clean resolve and never runs install.sh; its paths: filter does not match the requirements files.
  • interrupted-install-ci.yml runs --local on mac and checks that /api/health answers 200. A chat-only Studio answers 200.
  • The runtime self-heal repairs the pair about 20 seconds after first launch, which is why this reaches users as "Train was off until I ran the update" rather than as a failure anyone can catch twice.

Fix

extras-no-deps.txt names both halves of the pair. This is the file that decides the final versions, on every platform, on fresh install and on update alike.

single-env/constraints.txt carries the same window as a global cap, for the reason the anyio cap above it gives: a later with-deps step must not re-resolve it up.

single-env/overrides-darwin-arm64.txt is bounded to the version constraints.txt already pins, so the core phase resolves consistently on its own instead of being repaired one step later. This cannot go unsatisfiable the way the huggingface_hub override once did: that one replaced other packages' requirements on hub while a direct requirement still had to be satisfied, whereas no requirement on transformers survives this override to contradict it. A future mlx-vlm wanting a newer transformers gets this one installed, which is what an override is for.

no-torch-runtime.txt spells its existing cap as the same full window, so one canonical pair exists repo-wide.

studio/setup.sh gains a sibling of the anyio repair probe. An already-broken venv whose unsloth is current takes the fast update path, which never reaches the step that repairs the pair, so unsloth studio update would report "up to date" and fix nothing. The probe reads metadata rather than importing transformers, since importing is what is broken.

tests/studio/install/test_transformers_tokenizers_pair.py locks the shape.

Verification

Core phase resolve, aarch64-apple-darwin / py3.13, before and after the override bound, same command and same inputs:

before: transformers==5.16.1  tokenizers==0.23.2  mlx==0.32.1  mlx-lm==0.31.3  mlx-vlm==0.6.17
after:  transformers==5.5.0   tokenizers==0.22.2  mlx==0.32.1  mlx-lm==0.31.3  mlx-vlm==0.6.17

The MLX trio is unchanged, and huggingface-hub stays at 1.30.0.

The new test models the installer in order rather than as one joint compile, because a joint compile finds a consistent environment the installer never produces. On the tree before this PR, four of its seven checks fail:

FAILED test_every_installing_file_that_pins_transformers_also_bounds_tokenizers
FAILED test_the_tokenizers_bound_matches_the_pinned_transformers_release
FAILED test_the_tokenizers_line_covers_both_python_branches
FAILED test_a_fresh_macos_arm64_install_ends_with_a_consistent_pair

AssertionError: a fresh macOS arm64 install would end with transformers==5.5.0
beside tokenizers==0.23.2, outside the declared window <=0.23.0,>=0.22.0. That
venv cannot `import transformers`, so Train and Export stay off. Core phase
resolved tokenizers==0.23.2; step 3b left it at 0.23.2.

On this branch all seven pass, in 0.23s with a warm uv cache. It skips rather than fails when uv is absent or the index is unreachable, so a network flake cannot read as a dependency regression.

Also verified:

  • tests/sh/test_torch_constraint.sh: 49 passed, 0 failed, with the widened no-torch-runtime.txt line (its regression grep for fix: unblock 4 tests deselected/skipped in #5312 (real bugs) #5359 still matches).
  • TestE2ETokenizersFix::test_autoconfig_works_with_no_torch_runtime and TestE2EFullNoTorchSandbox::test_autoconfig_succeeds: 3 passed. Both were carrying a --deselect in studio-backend-ci.yml whose stated reason (no tokenizers pin in no-torch-runtime.txt) was fixed by fix: unblock 4 tests deselected/skipped in #5312 (real bugs) #5359, and both were redundant with the -m 'not server and not e2e' filter on the same command. Removed, with the comment corrected.
  • An end-to-end run on a real Apple Silicon runner is in flight (fast replay of the two install steps, plus install.sh --local end to end, both asserting import transformers, import mlx_lm, import mlx_vlm and mlx_stack_blockers() == [], with UNSLOTH_DISABLE_MLX_AUTOREPAIR=1 so the self-heal cannot repair the pair mid-job). I will post the before and after results here.

Not in this PR

  • Do not self-heal MLX into a --no-torch install #10409 is unrelated and independently mergeable; it only changes behaviour when the manifest records a --no-torch install, and this is a torch install.
  • Adding transformers to the import assertion in clean-machine-install-ci.yml is a one-word permanent Mac gate for this class of break. Worth doing, but it belongs in its own PR rather than riding along with the fix it would have caught.
  • Passing -c single-env/constraints.txt on install.sh's core install is the architecturally right single source of truth, and would also stop pandas, av, anyio and cryptography leaking on that command. It changes the core resolve on every platform, so it wants its own change and its own CI pass.

transformers declares a tokenizers window and enforces it at import, so a venv
holding a transformers that rejects its tokenizers cannot 'import transformers'
at all. mlx_lm imports transformers, so mlx_stack_blockers() reports a blocker
and Studio settles chat-only with Train and Export disabled.

A fresh 'install.sh --local' on macOS arm64 produced exactly that pair. The core
phase resolves with UV_OVERRIDE=overrides-darwin-arm64.txt and without
constraints.txt, and a uv override replaces every requirement on a package, so
that file's unbounded 'transformers>=5.5.0' also replaced pyproject's <=5.5.0
cap. Since transformers 5.16.0 (2026-08-26), the first release wanting
tokenizers>=0.23.1, that resolve lands transformers 5.16.1 + tokenizers 0.23.2;
step 3b of install_python_stack.py then installs extras-no-deps.txt with
--no-deps, which pins transformers back to 5.5.0 and leaves tokenizers stranded.
No commit here caused it: a third-party release walked into an unbounded
override, which is why the new gate checks the resolved pair rather than a
version number a diff would show.

extras-no-deps.txt now names both halves, which is the file that decides the
final versions on every platform and on both fresh install and update.
constraints.txt carries the same window globally, for the reason the anyio cap
gives: a later with-deps step must not re-resolve it up. no-torch-runtime.txt
spells its existing cap as the same full window so one canonical pair exists.

setup.sh gets a sibling of the anyio repair probe: an already-broken venv whose
unsloth is current takes the fast update path, which never reaches the step that
repairs the pair, so 'unsloth studio update' would report 'up to date' and fix
nothing. It reads metadata rather than importing transformers, since importing
is what is broken.

tests/studio/install/test_transformers_tokenizers_pair.py locks the shape: every
installing requirements file that pins transformers must bound tokenizers to the
window that release declares, no file may admit 0.23.2, and a sequential resolve
of the real macOS arm64 install (core phase, then the --no-deps overlay) must end
with a pair transformers accepts. On the tree before this commit, four of its six
checks fail.
Both named a tokenizers pin no-torch-runtime.txt was missing; #5359 added it and
both tests pass now. They were redundant regardless: the -m filter on the same
command already excludes their e2e class marker.
…ainst

The override existed to raise mlx-vlm/mlx-lm's transformers floor, but an
override replaces every requirement on the package, so the bare floor also
replaced unsloth's own transformers<=5.5.0 cap on the one uv command that does
not pass constraints.txt: install.sh's core install. From transformers 5.16.0
that resolve started landing 5.16.1 with tokenizers 0.23.2 on Apple Silicon,
which the later --no-deps pin turned into a stranded pair.

Capping at the version constraints.txt already pins makes the core phase resolve
consistently on its own rather than being repaired a step later. Verified with
uv pip compile for aarch64-apple-darwin / py3.13: transformers 5.5.0,
tokenizers 0.22.2, and mlx 0.32.1 / mlx-lm 0.31.3 / mlx-vlm 0.6.17 unchanged
from the uncapped resolve.

This cannot go unsatisfiable the way the huggingface_hub override once did: that
one replaced other packages' requirements on hub while a direct requirement still
had to be satisfied, whereas no requirement on transformers survives this
override to contradict it. A new test keeps the override and constraints.txt in
lockstep.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-08T05:50:38.020813Z 4149178 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@NilayYadav NilayYadav self-assigned this Sep 7, 2026
…control

setup.ps1 is what Windows updates run and it already carries the anyio repair
probe this one is modelled on, so the tokenizers probe belongs beside it rather
than only in setup.sh. Exercised against real venvs through pwsh: a stranded pair
forces the dependency pass, a healthy pair and an unreadable one do not, matching
the bash sibling case for case.

tests/python/test_tokenizers_and_torch_constraint.py's negative control dropped
the tokenizers line by comparing the whole line against "tokenizers". That
matched the bare entry #4748 added and matched nothing once #5359 gave it a
version bound, so the control installed tokenizers and then asserted an import
failure that could not happen. It has been failing on every tree since, unnoticed
because the class carries the e2e marker the CI lane filters out. Match by package
name instead, which survives the next bound too. The class passes 7/7.
@danielhanchen

Copy link
Copy Markdown
Member Author

Verification

Everything below was run before and after the change, so each line says what it rules out rather than only that it passed.

On a real Apple Silicon runner, before the fix

Two macOS-26 jobs on a staging repo, both with UNSLOTH_DISABLE_MLX_AUTOREPAIR=1 so the runtime self-heal could not repair the pair mid-job and turn the installer's output into the repair's output. One replays the two install steps into a fresh venv, the other runs bash install.sh --local end to end. On the tree before this PR both go red, and the shipped installer is the one that matters:

== the pinned transformers must accept the installed tokenizers ==
  FAIL: transformers==5.5.0 wants tokenizers<=0.23.0,>=0.22.0, found 0.23.2
  OK: import mlx.core
  FAIL: import mlx_lm
      ImportError: tokenizers>=0.22.0,<=0.23.0 is required for a normal functioning
      of this module, but found tokenizers==0.23.2.
  FAIL: import mlx_vlm
== the gate that decides chat-only must find nothing ==
  blockers: ["mlx_lm does not import (ImportError: tokenizers>=0.22.0,<=0.23.0 is required ...)"]
##[error]this venv would come up chat-only: Train and Export disabled

So the issue is real, it is what the shipped installer produces, and it is exactly the state that turns Train and Export off. The same two jobs on this branch are the after half.

Does it break anything else

uv pip compile over the product of six platform targets (linux gnu x86_64 and aarch64, linux musl, macOS arm64 and x86_64, windows msvc) by four interpreters (3.9, 3.10, 3.12, 3.13) by seven targets (the core phase, extras-no-deps.txt, no-torch-runtime.txt, extras.txt, studio.txt, data-designer-deps.txt, diffusers-pin.txt), each with -c constraints.txt, and with the override on the macOS arm64 leg only, exactly as the installers apply it. 168 combinations, run on this branch and on main:

main this branch
resolves that succeed 109 109
new failures none
packages whose resolved version changes tokenizers only, from unpinned to 0.22.2 in extras-no-deps.txt

The 59 failures are identical on both trees and pre-existing: py3.9 is below unsloth's floor, and macOS x86_64 has no mlx wheels. No other package moves by a single version anywhere in the matrix, which is the answer to "does the global cap disturb a working resolve".

Wheel coverage for the version the pin resolves to, from PyPI: tokenizers 0.22.2 ships cp39-abi3 wheels for manylinux and musllinux (x86_64, aarch64, i686, ppc64le, s390x, armv7l), macOS arm64 and x86_64, and win_amd64, win_arm64, win32. Every platform and every interpreter from 3.9 to 3.14, so no install anywhere falls back to the sdist and needs a Rust toolchain. Neither 0.22.2 nor 0.23.2 ships free-threaded wheels, so nothing changes there either.

Real installs on Linux, with this branch

Two full install.sh runs on a Linux box with NVIDIA GPUs, each into its own UNSLOTH_STUDIO_HOME:

run exit result
install.sh --local --no-torch 0 transformers 5.5.0, tokenizers 0.22.2, window satisfied, import transformers and AutoConfig fine, torch correctly absent
install.sh --local 0 transformers 5.5.0, tokenizers 0.22.2, torch 2.11.0+cu130 with torch.cuda.is_available() True, unsloth 2026.9.2 / unsloth-zoo 2026.9.1

The second one is the answer to whether the global cap can disturb the torch index: the CUDA build survives untouched, because TORCH_CONSTRAINT is a separate mechanism and tokenizers has no accelerator-specific variants. The no-torch run is the one that exercises the widened no-torch-runtime.txt line end to end.

Old installs

Real venvs on Linux, seeded into the states users are actually in:

state before after
pre-fix core phase, transformers 5.16.1 + tokenizers 0.23.2 import transformers raises 5.5.0 + 0.22.2, imports
the stranded pair, 5.5.0 + 0.23.2 raises repaired to 0.22.2, imports
same state, but with the OLD extras-no-deps.txt raises still raises (control: the file is what repairs it, not the command)
healthy, 5.5.0 + 0.22.2 imports untouched, imports

The setup.sh and setup.ps1 probes were driven against those same venvs, the PowerShell one through pwsh: the stranded pair forces the dependency pass, a healthy pair does not, and neither does a venv with no transformers, no tokenizers or no packaging. A probe that fired on every update would be its own bug, so all four negatives are pinned.

Forwards compatibility

The next transformers bump is the thing that caused this, so the new test was checked against it. Bumping the pin to 5.16.1 without moving tokenizers fails two checks, and adding the new window to the table while leaving the tokenizers line alone still fails:

AssertionError: extras-no-deps.txt pins transformers==5.16.1, which this test does not
know. Add its declared tokenizers window to DECLARED_TOKENIZERS_WINDOW and move the pins
together.
AssertionError: a fresh macOS arm64 install would end with transformers==5.16.1 beside
tokenizers==0.22.2, outside the declared window <0.24.0,>=0.23.1.

Suites

  • 3670 passed across tests/studio/install, tests/python/test_cross_platform_parity.py, tests/python/test_tokenizers_and_torch_constraint.py, tests/studio/test_hardware_dispatch_matrix.py and tests/studio/test_is_mlx_dispatch_gate.py. The hardware spoof matrices cover the OS by accelerator product; nothing in this change touches detection, and none of them moved.
  • tests/sh/test_torch_constraint.sh: 49 passed, 0 failed, including its fix: unblock 4 tests deselected/skipped in #5312 (real bugs) #5359 regression grep against the widened no-torch-runtime.txt line.
  • Not applicable, stated rather than skipped quietly: no file under studio/frontend is touched, so there is no browser surface to test on Firefox, Safari, Chrome or Edge.

Two things found while testing, fixed in the last commit

  1. setup.ps1 already carries the anyio repair probe that the new setup.sh one is modelled on, so Windows was left without the sibling. Added, and exercised through pwsh against the venvs above.
  2. test_negative_control_no_tokenizers dropped the tokenizers line by comparing the whole line against "tokenizers". That matched the bare entry fix: add tokenizers to no-torch deps and TORCH_CONSTRAINT for arm64 macOS py313+ #4748 added and matched nothing once fix: unblock 4 tests deselected/skipped in #5312 (real bugs) #5359 gave it a bound, so the control installed tokenizers and asserted an import failure that could not happen. It fails on pristine main today, unnoticed because its class carries the e2e marker the CI lane filters out. It now matches by package name, and the class passes 7 of 7.

@danielhanchen

Copy link
Copy Markdown
Member Author

The Apple Silicon half is finished. Same branch, same two macOS-26 jobs, same assertion script, one variable changed between them:

run conclusion
without this fix 34119864156 failure, both jobs
with it 34122682025 success, both jobs

Both jobs must pass for the run to conclude success, and the real-install one is bash install.sh --local end to end rather than a replay, so the shipped installer now leaves a venv where the pinned transformers accepts the installed tokenizers, transformers, mlx.core, mlx_lm and mlx_vlm all import, and mlx_stack_blockers() returns empty. UNSLOTH_DISABLE_MLX_AUTOREPAIR=1 was set in both runs, so neither result is the self-heal doing the work.

For the record, the failing half printed this before the fix, from the real installer's venv:

ImportError: tokenizers>=0.22.0,<=0.23.0 is required for a normal functioning of
this module, but found tokenizers==0.23.2.
blockers: ["mlx_lm does not import (ImportError: tokenizers>=0.22.0,<=0.23.0 ...)"]
##[error]this venv would come up chat-only: Train and Export disabled

The staging PR is closed and its branch deleted; the workflow it carried was disposable and is deliberately not part of this PR.

@NilayYadav

Copy link
Copy Markdown
Collaborator

Reproduced this end to end on an Apple Silicon Mac (macOS 26.3, Python 3.13): replayed the installer steps with main's files and with this branch's, installed studio.txt into both, and booted a backend from each with the self-heal disabled.

tree transformers / tokenizers /api/health
main 5.5.0 / 0.23.2 chat_only: true, MLX stack incomplete
this branch 5.5.0 / 0.22.2 chat_only: false, MLX detected

Also checked: the setup.sh probe fires on the stranded venv and stays quiet on a healthy one; the global tokenizers cap never reaches the sidecars or the MLX self-heal; the removed --deselect lines were already excluded by the e2e marker, and all 63 tests in that module pass here.

Pushed 1a1e9f9: the override test hardcoded 5.16.1 as an excess candidate without excluding the pinned version, so bumping the pin to 5.16.1 in lockstep made it fail on a correct change. Only candidates above the pin count now; an unbounded override still fails.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 1a1e9f9b7c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen

Copy link
Copy Markdown
Member Author

Confirmed on main that extras-no-deps.txt pins transformers with no tokenizers line and overrides-darwin-arm64.txt is still an unbounded floor, which is exactly the pair that leaves Apple Silicon chat-only after a fresh install. Will get this reviewed.

Building on the previous commit, which was right that the pinned release must not
count as excess. The remaining half is that a fixed pair of releases goes vacuous
once the pin passes them: with 5.16.1 pinned, neither 5.16.1 nor 5.15.1 is above
it and the check tests nothing. Derive the next minor and the next major from the
pin, keep the two named releases since they are the ones that shipped the
tokenizers window change, and the assertion keeps asking its question after every
future bump.

Verified both ways: passes on this branch, and against an unbounded override it
reports ['5.15.1', '5.16.1', '5.6.0', '6.0.0'].
@danielhanchen

Copy link
Copy Markdown
Member Author

Re-checked after the review round.

1a1e9f9 is right and I kept it. The pinned release must not count as excess, or the check fails against its own pin the day the pin moves.

I pushed one follow-up on top. The remaining half of that problem is that a fixed pair of releases goes vacuous once the pin passes them: with 5.16.1 pinned, neither 5.16.1 nor 5.15.1 is above it, so the assertion tests nothing at all. The candidates are now derived from the pin (next minor, next major) with the two named releases kept, since those are the ones that actually shipped the tokenizers window change. Verified both ways: 7 of 7 pass on this branch, and against an unbounded override it reports

AssertionError: the override admits transformers ['5.15.1', '5.16.1', '5.6.0', '6.0.0'],
above the pinned 5.5.0.

The red check is not this PR. parity (windows-latest) fails on test_a_non_ascii_marker_survives... in tests/python/test_windows_python_venv_hardening.py, reading PowerShell's stdout as the Windows ANSI code page:

assert 'C:\\Users\\r...käffee cache' == 'C:\\Users\\r...\k?ffee cache'

The same job fails identically on studio/rocm-torch-explicit-request, studio/amd-device-permissions, woa-native-arm64-cuda, uninstall-ownership-gate and studio-per-account-isolation, none of which touch installers or requirements. It is repo-wide and #10432 fixes it. Nothing else on this PR is red, and the whole parity step (631 tests, the 8 Windows PowerShell 5.1 cases skipped off Windows) passes locally on this head.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 2eb3b41761

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 8, 2026
Codex is right that this test runs in the ordinary CPU lane and reaches the index
twice plus a urlopen, so it had two ways to turn someone else's PR red for
reasons that say nothing about our pins: subprocess.TimeoutExpired was not caught
at all, and any uv failure whose stderr missed a four-word list became a hard
failure, which a 429 or an index 500 would.

Inverted instead of marked. Marking it e2e would take it out of the lane the
regression it guards actually reaches, and the e2e marker is registered in
tests/python/conftest.py, which does not cover this directory. Now the test fails
only when uv returns a resolution verdict (no solution found, unsatisfiable,
because, conflict) and skips on everything else, including a timeout, a missing
uv, an OSError, and a PyPI reply that is slow, throttled or not JSON. The compile
budget drops from 600s to 180s so a hung index cannot hold a job for ten minutes.

Verified all three ways against a live uv: an unreachable index skips, an
unsatisfiable pair still fails with 'No solution found when resolving
dependencies: Because transformers==5.5.0 depends on tokenizers>=0.22.0,<=0.23.0',
and a healthy resolve returns.
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 8, 2026
@unslothai unslothai deleted a comment from NilayYadav Sep 8, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 4149178f5c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 9735ec0 into main Sep 8, 2026
84 checks passed
@danielhanchen
danielhanchen deleted the mlx-tokenizers-pair-fix branch September 8, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants