Repository navigation
Add isolated v5e hardware probe to NanoGPT TPU port - #169
Merged
Merged
Conversation
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.
Adds
python experiment.py probeto measure the real dense model, replicated optimizer/tail state, host memory, per-chip HBM, XLA compilation and step wall times without loading data, constructing HostTable, building the canonical mask or starting WeightWatcher.The probe retains max_seq_len=262144, runs two synthetic full-softmax training steps at 128 and 49152 tokens per rank with optimizer steps 0/1, releases optimizer/tail state, and runs one 262144-token evaluation forward. Per-rank JSON and a finalized summary record failures and cannot pass without all eight ranks completing full-size evaluation. The launcher stops the process group after a reported failure and uses package metadata instead of importing XLA in the launch grandparent.
The training body, schedule, optimizer, CUDA reference, preflight gate and all qualification flags are unchanged. README requires a green probe before attempting mandatory preflight. Second-step timings explicitly acknowledge possible first-Adam compilation.
Validation: existing TPU-port/reference CPU suite passed (49 passed, 1 local Gloo socket-restriction skip before the final two reporting tests); final probe tests 10 passed; full 302,792,179-parameter dense CPU smoke passed; all 58 CUDA vendor hashes verified. CI runs mandatory Gloo and XLA-CPU checks. No TPU probe, preflight or training was launched.