Repository navigation
Studio: move the highest transformers sidecar from 5.13.1 to 5.15.1 (macOS XProtect block) - #18888
Merged
Merged
Conversation
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.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 ... | shinstall against Google Safe Browsing. It reads a dotted version the wayinet_atondoes, sotransformers==5.13.1becomeshttp://5.13.0.1/. Google Safe Browsing currently lists that URL as phishing (a fresh VirusTotal scan today returnsGoogle Safe Browsing: phishing; its stored 2016 record was clean). The block idurl-3a20768066824ab0...in the macOS log is the SHA-256 ofhttp://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
import transformersnext to tokenizers 0.22.2gemma4_unified,gemma4_assistant,gemma4_unified_assistant>=0.22.0,<=0.23.0>=0.22.0,<=0.23.0>=0.22.0,<=0.23.0>=0.23.1,<0.24.0tokenizers>=0.23.1,<0.24.0 is required ... but found tokenizers==0.22.2The sidecar is installed
--no-depsand 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_510audit, 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 requiressafetensors>=0.8.0).Existing installs update automatically
unsloth studio updateor rerunning the install command:_sidecar_current/Test-SidecarCurrentsee 5.13.1 where 5.15.1 is required, then wipe and rebuild.venv_t5_510._ensure_venv_t5_510_exists, which compares the installedVersion:withTRANSFORMERS_510_VERSIONand rebuilds on a mismatch.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.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.shclean; pre-commit ruff clean.Not covered