Repository navigation
Tests: price the auto-context fit floor as the layer-split path on any host - #16014
Merged
Merged
Conversation
…y host, so a Mac runner does not take Metal's
Member
Author
|
@codex review |
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: Didn't find any major issues. 👍 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.
Summary
Five tests in
studio/backend/tests/test_memory_estimate.py::TestAnAutoContextIsMarkedShrinkablefail on any Apple Silicon host. The regular CI does not run this file on macOS, so they surface when a PR touching memory estimation gets a macOS leg (the staging xplat run for #15970 onmacos-26; that PR changes only the MLX estimate):Since #12555,
_estimate_context_flooruses_FIT_FLOOR_MIN_CTX(256) on Apple Silicon, where Metal reprices down to the smallest context it searches, and_FIT_MIN_CTX(8192) for a layer split elsewhere.TestTheContextFloorFollowsThePlacementPathpins both paths explicitly; this class assumes the layer-split one but reads the real host, so on a Mac its auto-mode floor is the 256 context it compares against. The product is right; the class never said which host it prices.Reproduced on main on Linux with
is_apple_silicon()forced toTrue(the macOS runner's answer): the same 5 fail.What changed
The class's autouse fixture pins
utils.hardware.is_apple_silicontoFalse, with a comment pointing at the class that covers Metal.Verification
is_apple_silicon()forcedTrue: 5 failed in this class.TestTheContextFloorFollowsThePlacementPath39 passed.tests/test_memory_estimate.py283 passed, 98 skipped._FIT_MIN_CTXchanged from 8192 to 4096, 7 tests in this class fail, so it still pins the layer-split floor.