Repository navigation
CI: fix llama.cpp seed caching, Diffusers wheel installs, and isolated test coverage - #9979
Conversation
Codex Review SummaryThis 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. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 40099b07ea
ℹ️ 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".
| onClick={(e) => { | ||
| if (e.currentTarget.closest('[data-pill-compact="true"]')) | ||
| return; | ||
| e.stopPropagation(); | ||
| setMcpEnabledForChat(false); |
There was a problem hiding this comment.
Let the unavailable MCP glyph open management
When a loaded model lacks tool support (usable is false) on the non-compact composer, clicking the MCP glyph still stops the dropdown-trigger event and calls setMcpEnabledForChat(false). Because the pill is rendered only while that flag is true, this click removes the pill instead of opening the newly reachable menu and its “Manage MCP servers” action; let the click bubble when !usable rather than applying the active-state off switch.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
The click does turn MCP off, but that is the glyph's job on every composer pill, and the menu is not lost: the label and caret still open it, and compact mode already lets glyph clicks fall through to the trigger. The affordance is shown in this state too - index.css:1885-1894 reveals the hover X for any pill whose glyph is role="button", independent of data-active, so an unusable MCP pill still swaps to an X under the cursor. Special-casing the off switch away exactly when the pill is least useful is the wrong trade, so no change there.
There was a real problem next to it, though: the preset rows carried disabled={!usable || ...}, which made the newly reachable menu useless and failed MCP arguments end to end (Playwright) at playwright_mcp_arguments.py:359 (expect(preset).to_be_enabled()). Note that check reached line 359 at all only because of this PR - on main it dies at line 106 clicking the aria-disabled button this PR removes. Dropped the !usable gate in 9d16b0c: a row is persistent server configuration, not a tool call, and the new menu label already states that the loaded model cannot run them.
…the stored backend
|
Codex Review: Didn't find any major issues. Can't wait for the next one! 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". |
_apply_seeded_llama_request compares the seed in llama.cpp's uint32 domain, so -1, 4294967295 and 2**64-1 are all LLAMA_DEFAULT_SEED and all keep prompt caching. _choice_seed still exempted the literal -1, so for n > 1 the two helpers disagreed inside one request: choice 0 kept the caller's random seed and its cache, while choice 1 was offset to ((seed & 0xFFFFFFFF) + 1) % 0xFFFFFFFF, a fixed seed with the cache turned off. seed=4294967295 with n=3 served [4294967295, 1, 2]. Confirmed against a real llama-server: -1, 4294967295 and 2**64-1 each varied across repeated requests, while 4294967294 and 0 did not. llama.cpp applies the same test at its own multi-choice offset in tools/server/server-task.h, where the guard is seed != LLAMA_DEFAULT_SEED rather than a literal.
The keep path answers a transient update failure by exiting 0 with the tree already on disk. Both setup scripts only distinguish exit 0 by looking for "already matches", so a kept install took the other branch and printed "prebuilt installed and validated", naming a release that was never fetched. setup.ps1 also went on to print the old release as the installed one. The in-app updater had the same problem on macOS. start_update passes no pin_release_tag there, so the "pinned release X but installer produced Y" check that catches this on Linux and Windows does not run, and the phase reported "Updated llama.cpp to <the tag the user already had>". It now compares the marker before and after and says the install is already up to date, which is what happened.
mlx_group is passed to pytest unquoted so the list word-splits into file arguments, which means an empty list passes no files at all and pytest collects the whole rootdir serially instead: green, much slower, and no longer the group the step describes. The glob only has to stop matching once, upstream renaming the family for instance, for that to be what runs. Also pass each rerun's own filename to _keep. Exit 5 stays tolerated, but a module-level skip and a file that stopped collecting for a new reason both produce it, and only the log says which file it was.
_existing_install_runs and _kept_install_payload_is_healthy decide whether an install the user already has survives a transient update failure, and they had no direct tests: the existing keep-path cases drive install_prebuilt with a hand-built two-key marker. UNSLOTH_PREBUILT_INFO.json has grown twelve shapes since unslothai#4562 with no version field and no migration, so an absent key is the normal case for anything installed before the release that added it. Covers each shipped shape on Linux, Windows and macOS hosts, including the S1-S8 markers that carry no backend key and resolve through the asset name, and the S1-S11 Windows CUDA installs that predate runtime_asset and so must not be asked for a cudart trio they cannot record. Also pins two boundaries that were unasserted: a source build has no marker, so confirm_install_tree rejects it and it still falls through to the source-build fallback, while a corrupt marker keeps the tree eligible and holds it to every kind's shared payload. Adds the missing SIGSEGV and hang cases for the --version probe. Platforms are simulated through HostInfo, as the rest of this suite does. That covers the path decisions and the payload tables; it does not cover the Windows loader or macOS dyld, which no Linux runner can answer.
|
Went through this end to end: reproduced the red CI, validated each of the four changes against real hardware and real tooling where possible, and pushed four commits to this branch ( The red
|
| zoo SHA | this PR's arrangement | main's arrangement |
|---|---|---|
847f893d (what CI got) |
mlx_group: 10 failed |
xdist: 6 failed, 4 of them MLX contamination |
acee5087 (current) |
mlx_group: 939 passed, 0 failed |
clean |
The 10 match your CI exactly (9 in test_mlx_save_export_regressions.py, 1 in test_mlx_text_path_contract.py). main was red too at that SHA, with different victims, which matches the record: unsloth main's own Core run at 04:12Z was red in 2 of 3 cells and every run from 06:14Z on is green. A re-run should go green with no code change.
The seed change is solving a real problem, and I measured it
B200, real llama-server b10698, gemma-3-270m Q8_0, --parallel 4. 30 requests, seed=3407, temperature=0.8:
cache_promptdefault: 2 distinct completionscache_prompt: false: 1
So the premise holds, and the fix works. The uint32 comparison is also exactly right: -1, 4294967295 and 2**64-1 all draw at random on the live server, while 4294967294, 0, 2147483648, 2**32 and -(2**40) are all fixed. A literal -1 test would have got the first three wrong.
The cost is worth putting in the PR body. Same prompt, repeated, cache on vs off:
| prompt tokens | median cache on | median cache off | slowdown |
|---|---|---|---|
| 267 | 0.0256s | 0.0285s | 1.11x |
| 2003 | 0.0233s | 0.0582s | 2.50x |
| 7955 | 0.0354s | 0.1623s | 4.59x |
A 25 round tool loop was 1.48x. It scales with prompt length. Two things I would call out in the description: any pinned seed disables prefix reuse, including seed=0 and the whole range the UI can emit (MAX_SAMPLING_SEED = 4294967294, min 0), and no UI copy says so; and seed on Responses and Anthropic was previously swallowed by extra="allow" and dropped, so a client that has always sent one silently loses prompt caching on upgrade.
install.ps1's dangling $StageRoot was a real latent bug
Dot-sourced the real resolvers with pwsh 7.6 under Set-StrictMode -Version Latest. On the merge base both studio/setup.ps1 and install.ps1 throw "The variable '$StageRoot' cannot be retrieved because it has not been set". On this head both run and resolve correctly. Good change, and executed proof rather than a source grep.
Four commits pushed
69a74391f_choice_seedexempted the literal-1while_apply_seeded_llama_requestcompares in uint32, so the two disagreed inside one request.seed=4294967295withn=3served[4294967295, 1, 2]: choice 0 random and cached, choices 1 and 2 fixed and uncached. llama.cpp applies the same uint32 test at its own multi-choice offset intools/server/server-task.h.620180460Exit 0 no longer means something was installed, but both setup scripts only special-casealready matches, so a kept install printed "prebuilt installed and validated" andsetup.ps1then printed the old release as newly installed. Same class of thing in the in-app updater on macOS, wherestart_updatepasses nopin_release_tagso the "pinned release X but installer produced Y" guard does not run and it reported "Updated llama.cpp to <the tag you already had>". Both fixed, with a test that reproduces the macOS case.0b63166bemlx_groupis passed unquoted so it word-splits into file arguments, which means an empty glob passes no files and pytest collects the whole rootdir serially instead: green, much slower, and testing something else. Now fails loudly. Also passes each rerun's filename to_keep, since a module-level skip and a file that stopped collecting for a new reason both exit 5.49b868305_kept_install_payload_is_healthyand_existing_install_runshad no direct tests. 51 cases across all twelve marker shapes the installer has ever written, on Linux, Windows and macOS hosts. Confirms old installs are safe: S1-S8 have nobackendkey and resolve via the asset name; every Windows CUDA install predatingruntime_assetis correctly not asked for a cudart trio it cannot record. Also pins two unasserted boundaries, that a source build has no marker and so is never kept, and that a corrupt marker keeps the tree eligible against every kind's shared payload.
Each fix has a test that fails on the pre-fix code.
Everything else I ran
studio/backend/tests 37,196 passed; tests/studio/install + tests/studio + tests/python + tests/security 3,557 passed; frontend npm test 5,977 passed and typecheck clean; tests/sh staged-root and node-dir suites pass; the isolation guard is 31 passed.
Checked the MCP composer accessibility change in chromium, firefox and webkit, all three agreeing: the existing get_by_role("button", name="MCP servers") still matches after the label change so CI is fine, but before the change assistive tech saw a disabled control and after it sees an enabled one. The reason does move into the accessible name, so it is defensible, but it is a product and accessibility change rather than a CI fix and reads better argued as one.
One thing I looked at and decided against: the new triton reverse-shell baseline entry has no file_sha256, but so do the two pre-existing triton entries, and pinning a third-party file's digest would break CI on every triton release. Pinning is right for the first-party unsloth-zoo entries, which you did. No change needed.
Still outstanding: the branch conflicts with main in 7 files, and all the green checks predate those conflicts.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 49b868305e
ℹ️ 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".
| elif kept_existing: | ||
| # Say what happened. Claiming an update that did not happen is worse than | ||
| # saying nothing changed, because the next thing the user does is look for | ||
| # a fix that shipped in the release they think they just installed. | ||
| message = f"llama.cpp is already up to date on {new_tag}." |
There was a problem hiding this comment.
Report retained installs as update failures
When macOS has already offered a newer release but the installer encounters a transient release/network failure, it exits successfully after retaining the old tree, making new_tag == prior_tag here. The resulting message says the old release is “already up to date,” contradicting the freshness check that launched the update and concealing that the user should retry; report that the update was unavailable and the existing release was retained instead.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Correct, fixed in 3476a89. The llama phase only starts once the freshness check has offered a newer release, so kept_existing always means the update did not happen. It now reads "llama.cpp could not be updated right now, so the existing install was kept. Try again later." and the test asserts the string no longer contains "up to date".
…tract Extends the marker-shape cases with the product the installer actually has to serve. Fifteen cells across Linux, WSL, Windows and macOS by NVIDIA, AMD, CPU and Vulkan, each asserted three ways: a complete tree is kept, a gutted one is refused, and an accelerator tree missing only its own backend library is refused. That last case is the one that matters after a partial extraction, where the binaries still start and only fail once a model is loaded. Vulkan, windows-hip, windows-rocm, windows-arm64 and linux-arm64-cuda had no payload coverage at all before this. WSL is asserted to behave exactly like Linux, which is the claim worth pinning: HostInfo carries no WSL field and the WSL2 ROCDXG handling lives in host detection and setup.sh, upstream of the keep path. Adds the exit contract the setup scripts branch on, driven through install_prebuilt rather than the deciders: a transient failure returns 0 for every shipped marker shape, a tree that is not runnable still reaches EXIT_FALLBACK so a source build can proceed, an explicit version request is never answered with the old install, and a marker recording a backend this build cannot install exits EXIT_ERROR before the keep branch is reached. That last ordering was untested and is what stops a newer marker being answered with the tree already on disk. Also covers a marker whose keys were grafted on by sync_marker_selection rather than written in one go, which is the shape a long-lived install really has, and a marker naming another platform's backend, which falls open rather than being judged by a table that does not apply.
|
Second pass, filling in what I had only simulated lightly last time. One more commit, Old installs, tested against a real oneThe tests I added first time build install trees out of stub binaries, which covers the decision logic but cannot answer "does an install a previous release actually produced survive this upgrade". So I took the tree
Every real old install survives with byte-identical binaries that still execute. The exit-5 row is the one I want to highlight, because I guessed wrong and the code was right: a marker recording a Vulkan choice on a tree carrying no Vulkan library is refused, and because a concrete backend is recorded it fails closed with 5 rather than letting a source build quietly substitute a different backend. Nice. The full [Windows, Linux, WSL, macOS] x [NVIDIA, AMD, CPU] productFifteen cells, each asserted three ways: a complete tree is kept, a gutted one is refused, and an accelerator tree missing only its own backend library is refused. That third case is the one that bites after a partial extraction, because the binaries still start and only fail once a model loads. Five install kinds had no payload coverage anywhere in the repo before this: WSL is asserted to behave exactly like Linux, which is the claim worth pinning: The exit contract, driven through
|
The branch has been unmergeable, which meant GitHub could not compute a merge commit and so ran no workflows at all: every check on the last few pushes was "error during mergeable check" rather than a real result. Six of the seven conflicts are the same fixes landing twice. main got there first and with more detail, so its side wins and this branch's copies go: - unsloth_cli cloudflare and parallel flag tests, both pointing STUDIO_HOME at a writable path instead of /fake; - test_inherited_custom_dtype_is_neutralized, which main pins with setdefault; - test_studio_home_node_dir, where main's block extraction walks back from the NODE_DIR assignment instead of anchoring on one branch's text, so it survives a branch being added or reordered; - the AppImage fixture CORS pair, where main echoes the requested headers rather than keeping a second copy of the backend's allow_headers list. scan_packages_baseline.json goes the other way. This branch's side is a superset: it carries the file_sha256 pins on the three unsloth-zoo entries and the triton entry that main does not have, so taking main there would delete the digest pinning this PR added. Verified on the resolved tree: 3,584 install, security, python-stack and unsloth_cli tests, 585 security tests where unsloth is installed, and both tests/sh suites.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 62fef15c4d
ℹ️ 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".
| except OSError as exc: | ||
| if exc.errno == errno.ENOEXEC or getattr(exc, "winerror", None) == _ERROR_BAD_EXE_FORMAT: | ||
| log(f"kept install rejected: {path.name} is not an executable image ({exc})") | ||
| return False | ||
| return True |
There was a problem hiding this comment.
Reject inaccessible root entrypoints before keeping install
When build/bin/llama-server remains executable but the separate root llama-server copy has lost its execute permission, probing the root copy raises EACCES, which this branch treats as healthy. _existing_install_runs then keeps the old installation and returns success, even though inference prefers the root entrypoint and therefore cannot launch it; reject permission-related spawn failures or explicitly require root copies to be executable.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
The premise does not hold, so no change here. Inference does not prefer the root entrypoint unconditionally: _scan_pinned in studio/backend/core/inference/llama_cpp.py classifies a root copy without the execute bit as non_executable, remembers it, and keeps scanning the rest of that layout, so build/bin/llama-server still wins.
Reproduced both branches on this host against the real discovery code:
- non-executable root copy, executable
build/bincopy ->_find_llama_server_binary()returns thebuild/binpath and the server launches. - both copies non-executable -> returns
None, but that case is already rejected by the keep path, which runsos.access(..., os.X_OK)over thebuild/binllama-serverandllama-quantizebefore any probe.
So the EACCES spawn result the probe treats as healthy never keeps an install inference cannot launch. Treating it as fatal would also cost accuracy on Windows, where ERROR_ACCESS_DENIED is routinely a transient antivirus or in-flight-replace lock rather than a permanent state, and a false negative there spends a full source build on a working install.
|
Resolved the conflicts with main and pushed the merge ( The conflicts were stopping CI from running at allAfter my last few pushes After the merge: How I resolved themPer hunk, keeping git's auto-merged content rather than taking whole files. Six of the seven are the same fix landing twice, which is what you would expect from a branch that has been open while main moved. main got there first and with more detail, so its side won and this branch's copies went:
Verified on the resolved tree before pushing: 3,584 install, security, python-stack and Where the branch stands
Happy to drop or rework any of these if you would rather take them differently. The two things I deliberately did not touch, because they are yours to decide, are the seed cost trade-off (any pinned seed disables prompt caching, at 1.1x to 4.6x depending on prompt length, with no UI copy saying so) and the MCP |
Same behaviour, fewer lines. AST comparison confirms every changed .py file is identical once docstrings are stripped, so this is comments only. setup.sh passes bash -n, setup.ps1 parses, the workflow YAML parses and its zoo step body still passes bash -n.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! 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". |
Summary
Restore the affected Studio and repository CI coverage by fixing the underlying runtime and installer issues, updating stale assertions, and isolating tests whose timing or module state is process-sensitive.
Changes
-1random-seed sentinel retains prompt-cache reuse.overlay: falselegs install the released wheel and its pre-0.40.0 archive pin.Verification
Follow-up commits
Review and CI triage after the first commit. The verification above describes
40099b07ea; the runs below are the ones for these.8fc7f01f00,ad6d622eb2,d59f907b5dmake the new keep-the-existing-install path prove the tree is runnable before reporting success.confirm_install_treeisexists()only, so on a complete tree whose binaries are not executable the merge base exited 2 and40099b07eareturned success. Exit 2 is what hands the decision tosetup.sh, whose reuse gate is-x build/bin/llama-server; exit 0 is announced as "prebuilt installed and validated" and re-checks nothing. The path now requires the structural check,os.access(X_OK), the platform installed-binary preflight, and the runtime payload the tree's own marker implies, which is the same setexisting_install_matches_choicedemands minus the release fingerprint.write_prebuilt_metadatarecordsruntime_assetso a paired Windows CUDA install must still hold its cudart trio while a pair-less one need not. An advisory stored backend the install already runs is kept rather than exiting 5; a backend named on the run, or one the tree does not satisfy, still exits 5.9d16b0cd6dclears three CI legs.assert-prompt-cache.shno longer sends a request seed: it measures cache surfacing, not determinism, and assertingcached_tokens > 0on a seeded request contradicts thecache_prompt=falsepolicy this PR introduces. The MCP preset rows lose their!usablegate, which had made the newly reachable menu useless and failedMCP arguments end to end. The Diffusers allowlist entry is restored for the released-wheel legs.9690a966f7points sixunsloth_clilaunch tests at a writableSTUDIO_HOME. They fail identically at the merge base:_studio_runtime_launch_guard(Studio: update in the background and restart when ready #9890) createsSTUDIO_HOMEbeforerun()reachesrun_server, and the tests pinned it under a literal/fake. They were invisible becauseRepo tests (CPU)stopped at an earlier step, which this PR fixes.8c51ac6d96gives each isolatedunsloth_zoofile its own pytest process. Sharing one rerun process is its own contamination:test_mlx_generate.pyinstalls the MLX-on-torch shim intosys.modulesat import time, which un-skipstest_mlx_neftune_quant_map.pyand breaks the transformers patchingtest_gemma3_forced_float32_boundary_dtype.pyasserts on.test_zoo_suite_parallel_isolation.pynow registers all six files and guards the split.Follow-up verification
tests/studio/installandtests/python/test_install_python_stack.py: 2,801 passed, 100 skipped.unsloth_cli/tests: 1,102 passed, 11 skipped (11 failures at the merge base).tests/studio: 6,298 passed, 548 skipped.studio/backendsuites: 1,028, 578 and 199 passed.node --testlocally is missingnode_modulesfor most files; against the merge base the failure set is identical and five audio assertions move to passing.unsloth_zooat52aff0d: the six isolated files give 14 failures and 6 errors in one process and none when each gets its own.Known red, not addressed here
streaming-latex-retro-edit.test.tsasserts a math/plain streaming ratio under 4. Bisecting from8395e4602d, where the guard was written, to this PR's merge base puts the ratio at 1.2x then and 3.7x now, first bad commite584ffc49f(#9796). The guard is working; the cost it measures tripled, so it now flips on a loaded runner. Raising the threshold would accept the regression silently, so it is left for a separate change.AppImage model download E2Eis red on main too.Update (danielhanchen)
Took this over to get it verified and mergeable. Seven commits added on top of
184bafe0f.The red
Corestep was stale, not this branchAll three cells failed at
unsloth_zoo @ main - full pytest (CPU), the step this PR rewrites. That was an upstream race, not this PR.CI here cloned unsloth_zoo at
847f893d(2026-08-30T04:54Z). Thirty-three minutes later unsloth_zoo merged unslothai/unsloth-zoo#1134, "Restore parent package attributes when the mlx shim fixtures put sys.modules back". Running both arrangements in one venv on one SHA, 4 cores:847f893d, what CI gotmlx_group: 10 failedmlx_group: 939 passed, 0 failedThe 10 match this PR's CI exactly. main was red at that SHA too, with different victims, which matches the record: main's own
Corerun at 04:12Z was red in 2 of 3 cells and every run from 06:14Z on is green.The conflicts were blocking CI entirely
While the branch was unmergeable, GitHub could not build the merge commit that
pull_requestworkflows run against, so it ran no workflows at all. Every check reported "error during mergeable check". After merging main:mergeablewent toMERGEABLEand 90 checks started.Six of the seven conflicts were the same fixes landing twice, with main's version being the more thorough, so main's side won and this branch's copies went.
scripts/scan_packages_baseline.jsonwent the other way, since this branch's side is the superset that carries thefile_sha256pins.Defects fixed
_choice_seeddisagreed with_apply_seeded_llama_request. The new helper compares in llama.cpp's uint32 domain;_choice_seedstill tested the literal-1. Forseed=4294967295, n=3it served[4294967295, 1, 2], so choice 0 was random and cached while choices 1 and 2 were fixed and uncached inside one request. llama.cpp applies the same uint32 test at its own multi-choice offset intools/server/server-task.h.already matches, so a kept install printed "prebuilt installed and validated" andsetup.ps1announced the old release as newly installed. The in-app updater had the same problem on macOS, wherestart_updatepasses nopin_release_tagso the pinned-tag guard does not run, and it reported "Updated llama.cpp to ".mlx_groupglob would have made pytest collect the whole rootdir serially, since the group is passed unquoted. Now fails loudly._keepalso names the file, because an expected module-level skip and a file that stopped collecting for a new reason both exit 5.Evidence that the seed change fixes a real problem
Measured on a real llama-server (b10698, CUDA 13) with gemma-3-270m Q8_0,
--parallel 4. 30 requests atseed=3407,temperature=0.8:cache_promptdefault: 2 distinct completionscache_prompt: false: 1The sentinel handling is right too. Against the live server,
-1,4294967295and2**64-1all draw at random, while0,4294967294,2**31,2**32and-(2**40)are all fixed.The cost is worth stating. Same prompt repeated, cache on against off: 1.11x at 267 prompt tokens, 2.50x at 2,003, 4.59x at 7,955. A 25 round tool loop was 1.48x. So any pinned seed loses prefix reuse, including
seed=0and the whole range the UI can emit (MAX_SAMPLING_SEED = 4294967294, min 0), and no UI copy says so. Worth deciding separately. Also worth noting in the description:seedon the Responses and Anthropic endpoints was previously swallowed byextra="allow"and dropped, so a client that has always sent one loses prompt caching on upgrade.Tests added
tests/studio/install/test_keep_install_backcompat_9979.py, 96 cases._kept_install_payload_is_healthyand_existing_install_runshad no direct tests. Covers all twelve marker shapes since Use prebuilt llama.cpp for unsloth studio setup #4562, the [Windows, Linux, WSL, macOS] x [NVIDIA, AMD, CPU, Vulkan] product, and the exit contract the setup scripts branch on. Five install kinds had no payload coverage anywhere before:linux-arm64-cuda,windows-hip,windows-rocm,windows-arm64,windows-vulkan.Backwards compatibility
Checked against a real install rather than a fabricated one: took the tree
studio/install_llama_prebuilt.pyactually wrote (450 MB, real binaries), rewrote its marker to each shipped shape, and ran the real installer with the network dead. Every shape from S1 (March) through S11, plus empty, corrupt and future-key markers, exits 0 with byte-identical binaries that still run. A marker claiming a backend the tree does not carry exits 5 rather than letting a source build substitute a different one.Other checks
studio/backend37,196 passed. Frontendnpm test5,977 passed, typecheck clean.tests/shstaged-root and node-dir suites pass. The MCP composer accessibility change was checked in chromium, firefox and webkit: the existingget_by_role("button", name="MCP servers")still matches, but before the change assistive tech saw a disabled control and after it sees an enabled one, with the reason moved into the accessible name. That is a product and accessibility change rather than a CI fix and reads better argued as one.diffusers0.40.0 does publish apy3-none-anywheel, so the pin resolves to a wheel.assert-nobuild.ps1was executed against ten synthetic logs and behaves correctly on all of them, so the by-name Diffusers allowlist entry is not a hole; the name-independent compiler check still fires.Not verifiable on Linux and left explicitly open: real Windows DLL loading and ACLs,
os.access(X_OK)on Windows, macOS dyld and codesigning, real ROCm hardware, and Safari as opposed to the WebKit engine.