Repository navigation
Padding choice: per compute capability thresholds, RTX PRO 6000 / RTX 5090 peaks - #15216
Merged
Merged
Conversation
… 5090 peaks Measured padded + block compile vs padding-free on Colab G4 (RTX PRO 6000 Blackwell Server Edition, sm120) with torch 2.14.1 and 2.10.0: at the 0.10 s threshold the rule would pick the Qwen3 0.6B Alpaca batch 16 cell, which loses 24-29% on torch 2.14.1. sm120 gets 0.06 s, which keeps every measured win at <= 45 ms and drops that cell. T4 / A100 / L4 keep 0.10 s. A capability with no measurement (H100 / H200 sm90, B200 / B300 sm100 / sm103) keeps padding-free instead of extrapolating from the datasheet peak. mfu.py gains dense 16 bit peaks for RTX PRO 6000 Blackwell Server / Workstation / Max-Q and GeForce RTX 5090 from the NVIDIA whitepapers and server datasheet; RTX 5090 D and the laptop 5090 stay unknown.
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. Breezy! 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.
Follow-up to #15185. Its padded-vs-padding-free rule was calibrated on A100, L4 and T4 only, with one threshold of 0.10 s of estimated GPU work per padded micro batch.
On faster GPUs that threshold picks losing cells:
Change
padding_choice.py, per compute capability thresholds: used only where measured.smXY not measured, the behaviour before SFT: pick padded batches + block compile over padding-free when micro batches are host bound #15185. That includes H100 / H200 (sm90), B200 / B300 (sm100 / sm103) and sm86.choose_padding(..., capability = None)keeps the old single threshold for callers that pass no capability;_decidepasses the device's.mfu.py, new dense 16-bit peaks: these also give MFU logging a peak on these GPUs.RTX 5090 D and the laptop part map to unknown. Every new key needs "PRO", so "RTX 6000 Ada" and "Quadro RTX 6000" cannot match. A test checks that no key is shadowed by an earlier one.
Results
Method: Colab G4 ("NVIDIA RTX PRO 6000 Blackwell Server Edition"), using the #15185 method:
Padded vs padding-free, % (A/A band in brackets):
What the rule picks:
Memory and loss: in the picked cells, padded uses 0.02-0.33 GB more peak memory, the same order as the cells #15185 already picks. Per-step loss differences stay at or below 0.01.
Tests
New CPU tests in
tests/test_padding_choice.pyandtests/test_mfu_logging.py:Both files give 134 passed.
Not covered