Repository navigation
Studio: print memory refusals to one decimal so the need never reads below what is free - #17948
Merged
Merged
Conversation
…eds to one decimal A forced sequential load on a 51 GB T4 high-memory host needs 52.4 GB (24.2 GB of host DiT blocks, the 27.2 GB text encoder, 1 GB) and has 52.2 GB; rounded to whole GB the refusal read "needs about 52 GB ... and 52.2 GB is available".
Member
Author
|
@codex review |
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. |
|
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". |
danielhanchen
added a commit
that referenced
this pull request
Nov 16, 2026
…(rest red on main) (#17963) ## Summary `(Python 3.13, rest)` is red on main (seen on the staging runs of #17953 and #17957, base `bf7f6e050d`): ``` studio/backend/tests/test_video_ltx25_te_hosted.py::test_a_rejected_hosted_file_refuses_the_dense_fallback_without_room E Expected regex: 'needs about 24 GB' E Actual message: '... quantizing the dense encoder at load needs about 23.9 GB of free memory (8.0 GB free).' studio/backend/tests/test_video_ltx25_te_hosted.py::test_the_dense_fallback_room_check_prices_the_load_dtype[float32-30-True] E Expected regex: 'needs about 48 GB' E Actual message: '... needs about 47.8 GB of free memory (30.0 GB free).' ``` #17948 changed the LTX-2.5 dense text encoder refusal to print the need to one decimal, so it can no longer read "needs about 24 GB ... (24 GB free)" for a 24.3 GB need with 23.8 GB free. That is intended. It updated the same assertion in `test_video_hub_unreachable_cached_load.py` but not these two in `test_video_ltx25_te_hosted.py`, which still pin the old whole-GB text. ## Change Test only, `studio/backend/tests/test_video_ltx25_te_hosted.py`: - The hosted-file refusal pins the full one-decimal text: `needs about 23.9 GB of free memory (8.0 GB free)`. - The dtype pricing case derives the need from `LTX25_TE_BF16_GB` (a float32 load needs twice the bf16 encoder) and pins both figures to one decimal, so a change to the encoder size constant does not break it again while a return to whole-GB rounding still does. No product code changes; when a load is refused is unchanged. ## Testing - `test_video_ltx25_te_hosted.py`: 18 passed. On main the two tests above fail. - Sabotage: printing the need with `:.0f` again (the pre-#17948 rounding) fails both tests.
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
Two memory refusals rounded the need to whole GB while printing what is available to one decimal (or both to whole GB), so they could contradict themselves:
Both now print one decimal. Only the message text changes; when a load is refused is unchanged.
Tests
test_diffusion_minimax_h3_image.py: newtest_the_host_refusal_names_a_need_above_what_is_available(the T4 case above) fails before and passes after.test_video_hub_unreachable_cached_load.py: the encoder refusal assertion now pins the one-decimal text (fails before).Checked the other need-vs-available messages in the diffusion and video backends: the MiniMax-H3 video guard only refuses when capacity is at least 0.5 GB below the need, so its rounding cannot contradict, and is left as is.