Add forward_pass_compile_test script#4526
Open
snehalv2002 wants to merge 1 commit into
Open
Conversation
snehalv2002
requested review from
RissyRan,
abhinavclemson,
bvandermoon,
gagika,
gobbleturk,
khatwanimohit,
richjames0,
shralex and
vipannalla
as code owners
July 17, 2026 19:31
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
snehalv2002
requested review from
A9isha,
NuojCheng,
SurbhiJainUSC,
aireenmei,
darisoy,
dipannita08,
hengtaoguo,
huytransformer,
igorts-git,
jiangjy1982,
suexu1025 and
xibinliu
as code owners
July 17, 2026 19:31
snehalv2002
marked this pull request as draft
July 17, 2026 19:32
snehalv2002
marked this pull request as ready for review
July 17, 2026 19:42
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
snehalv2002
force-pushed
the
snehalv_forward_pass_compile
branch
from
July 17, 2026 19:49
8d2b007 to
66ab935
Compare
snehalv2002
force-pushed
the
snehalv_forward_pass_compile
branch
from
July 17, 2026 20:11
66ab935 to
f1fb031
Compare
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.
Description
This PR introduces a standalone script to compile the forward pass logit checker offline in MaxText, enabling mathematical verification of HBM limits without incurring actual array data overhead on remote TPUs.
Features additions:
tests/utils/forward_compile.pyto allow users to mock the parameter tree structure exactly as expected by the golden checker.lower().compile()on the model application footprint, which yields explicitCompiledMemoryStatsincluding exact byte allocations for code size, temporaries, and IO arguments, making OOM triaging infinitely easier for large parameter meshes.Tests
v6e-256TPU mesh usingdeepseek4-284bparameterized layers to prove that the.lower().compile()safely projects temporary size execution vectors matching hardware capacity exactly.Command Executed:
Output:
Checklist
gemini-reviewlabel.