Repository navigation
Studio tests: measure the int8 / fp8 dequant and nibble-swap peaks in a fresh process - #15912
Merged
Merged
Conversation
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. What shall we delve into next? 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.
The
(Python 3.13, a-f)shard on #15906's staging run failed one test the PR does not touch:The test passes on main and on #15906's head when run on its own.
Cause
This is the flake #14579 already fixed for
test_block_dequant_is_checked_for_its_peak_intermediates. RssAnon is process-wide, and in a long-lived xdist worker it carries whatever earlier tests left behind. #14579 moved that test into a fresh process, with amalloc_trimbaseline and the best of three. Two siblings in the same file kept measuring in the worker:test_int8_fp8_dequant_is_checked_for_its_float32_peakand the peak half oftest_swap_nibbles_is_bit_identical_and_checked_for_its_peak.The CI reading shows how far off a worker reading can be. Measured on its own, the int8 ConvRot dequant grows by about two thirds of what it charges. The worker saw 237.7 MB against the 201.3 MB charge.
Fix
Both now run through the same kind of fresh-process probe as #14579 (
_HOST_PEAK_PROBE, driven by_host_peak_in_a_fresh_process). The assertion is unchanged: the charge must cover at least 90% of the measured peak. The bit-identity half of the nibble-swap test still runs in process._rss_anon_now, now unused, is removed.Verification
Charge over measured growth in the fresh process, three runs each:
Each case stays above the 0.9 the test requires.
test_diffusion_comfy_block.py: 55 passed, 5 skipped (CUDA-only), serially and under-n 8._dequant(codes.numel() * 4instead of the float32 intermediates) fails bothfloat32_peakcases in the fresh process.