Skip to content

Studio: move the highest transformers sidecar from 5.13.1 to 5.15.1 (macOS XProtect block) - #18888

Merged
danielhanchen merged 1 commit into
mainfrom
studio-sidecar-transformers-5.15.1
Nov 22, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio-sidecar-transformers-5.15.1

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Move the highest transformers sidecar from 5.13.1 to 5.15.1

Related: #18699, #18883.

Why

On macOS 26/27, XProtect checks the command line of processes started from a pasted curl ... | sh install against Google Safe Browsing. It reads a dotted version the way inet_aton does, so transformers==5.13.1 becomes http://5.13.0.1/. Google Safe Browsing currently lists that URL as phishing (a fresh VirusTotal scan today returns Google Safe Browsing: phishing; its stored 2016 record was clean). The block id url-3a20768066824ab0... in the macOS log is the SHA-256 of http://5.13.0.1/.

#18883 keeps the sidecar pins off argv. This PR also moves the pin itself, so the version string no longer appears in any process, log line or doc snippet that a user might paste.

Why 5.15.1

Version tokenizers window import transformers next to tokenizers 0.22.2 gemma4_unified, gemma4_assistant, gemma4_unified_assistant
5.13.1 (current) >=0.22.0,<=0.23.0 OK yes
5.14.1 >=0.22.0,<=0.23.0 OK yes
5.15.1 >=0.22.0,<=0.23.0 OK yes
5.16.1 >=0.23.1,<0.24.0 fails: tokenizers>=0.23.1,<0.24.0 is required ... but found tokenizers==0.22.2 n/a

The sidecar is installed --no-deps and imports the main env's tokenizers (pinned <=0.23.0), so 5.15.1 is the newest release that is a drop-in. 5.16 and later would need their own tokenizers in the sidecar.

The IP forms of all three sidecar pins after this change (5.15.0.1, 5.5.0.4, 5.3.0.0) came back clean from a fresh Google Safe Browsing scan via VirusTotal.

Change

  • studio/setup.sh, studio/setup.ps1: .venv_t5_510 audit, offline-defer loops, install call and step labels use 5.15.1.
  • studio/backend/utils/transformers_version.py: TRANSFORMERS_510_VERSION = "5.15.1"; the runtime repair reads its package list from it.
  • studio/backend/requirements/studio.txt: comment only (5.15.1 also requires safetensors>=0.8.0).
  • Tests: tokenizers-window table keyed on 5.15.1; kernels sidecar-scan fixtures; the custom-code routing tests now pin the tier version where a case depends on it being below the fake main release.

Existing installs update automatically

  • unsloth studio update or rerunning the install command: _sidecar_current / Test-SidecarCurrent see 5.13.1 where 5.15.1 is required, then wipe and rebuild .venv_t5_510.
  • Without an update: the first load of a 510-tier model (Gemma 4 Unified / 12B, custom code saved by 5.11 to 5.15) runs _ensure_venv_t5_510_exists, which compares the installed Version: with TRANSFORMERS_510_VERSION and rebuilds on a mismatch.
  • Offline (UV_OFFLINE): deferred to the next online update, as for every sidecar.

Verification

  • studio/backend/tests/test_transformers_latest.py, studio/backend/tests/test_kernels_compat.py, tests/studio/install/test_transformers_tokenizers_pair.py: 169 passed, 1 skipped.
  • Wider set (transformers_version, tiktoken, tokenizers/torch constraint, fast-path guard, update idempotency, manifest pass evidence, cap sites) on this change: 752 passed, 13 skipped. The one failure, test_main_offered_when_pypi_is_behind, relied on the old pin being below its fake 5.14 main release and is fixed here.
  • bash -n studio/setup.sh clean; pre-commit ruff clean.

Not covered

macOS XProtect reads transformers==5.13.1 on a pasted install's argv as
http://5.13.0.1/, which Google Safe Browsing lists as phishing, and kills
the session (#18699). 5.15.1 is the newest release that keeps the same
tokenizers window (>=0.22.0,<=0.23.0) as the main env, imports next to
tokenizers 0.22.2, and still ships the Gemma 4 Unified model types.
Existing sidecars rebuild on the next update or first 510-tier load.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T13:38:30.610845Z d817bd4 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.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: d817bd4e23

ℹ️ 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 f03997e into main Nov 22, 2026
@danielhanchen
danielhanchen deleted the studio-sidecar-transformers-5.15.1 branch November 22, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant