-
Notifications
You must be signed in to change notification settings - Fork 41
Training Platform Core: minimal MLP end-to-end training on Siracusa #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
runwangdl
wants to merge
28
commits into
pulp-platform:devel
Choose a base branch
from
runwangdl:training-platform-core
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
cc1f68b
training-platform core: minimal MLP end-to-end training on Siracusa
runwangdl 284f145
training-platform core: apply pre-commit formatting (yapf/isort/clang…
runwangdl 763b464
training-platform core: canonicalise SoftmaxCrossEntropyLoss to 2 out…
runwangdl e348863
training-platform core: collapse InPlaceAccumulatorV2 template to sin…
runwangdl b844fe1
training-platform core: generalise SGD alias comment to L2 or L3
runwangdl ceeb951
training-platform core: trim InPlaceAccumulatorV2 tile constraint com…
runwangdl ecbffa0
training-platform core: drop leftover egress-target comment
runwangdl 728c68f
training-platform core: drop stray ReluGradTileConstraint
runwangdl fc24a84
training-platform core: delete stray SoftmaxCrossEntropyLossDualOutpu…
runwangdl 12597be
training-platform core: simplify MiniMalloc alias-skip block
runwangdl b42ea1d
training-platform core: restore per-layer { } block in generateInfere…
runwangdl 5285021
training-platform core: restore upstream SoftmaxCrossEntropy kernel t…
runwangdl 40e8339
training-platform core: drop legacy 1-output Softmax/CrossEntropy ker…
runwangdl 91931cf
training-platform core: propagate loss verification result + drop dea…
runwangdl f177a5b
training-platform core: label Step B in run_optimizer_step
runwangdl 0f853fc
training-platform core: drop _augment_path PATH manipulation
runwangdl 55c91d0
training-platform core: extract training codegen helpers to trainingU…
runwangdl 2d53fe2
training-platform core: collapse duplicate tiled/non-tiled training b…
runwangdl b689d3f
training-platform core: extract training codegen argparse builders to…
runwangdl 4218ba1
training-platform core: lift execution.py training subprocess helpers…
runwangdl f5255d3
training-platform core: lift _resolve_optimizer_dir to trainingUtils
runwangdl 5a839b1
training-platform core: decouple execution.py from training pipeline
runwangdl 3d309b7
training-platform core: extract training codegen helpers to codeGener…
runwangdl 969f593
training-platform core: drop redundant top-level deeployTrainingRunne…
runwangdl ac4df5b
training-platform core: drop non-training helper wrappers from traini…
runwangdl 9d3445c
training-platform core: drop unused loop var and populate zero-sized …
runwangdl 40c5da9
training-platform core: apply pre-commit yapf + autoflake autofixes
runwangdl 191a30b
training-platform core: drop CCT2_FT2 from siracusa tiled L3 CI list
runwangdl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reject shape-mismatched
InPlaceAccumulatorV2nodes.This parser only checks arity, but the generated kernel/tile path assumes
buffer,gradient, anddata_outhave the same extent and thatlazy_reset_gradis a single flag. If a malformed graph slips through,sizeis derived frombuffer.shapeand later code can read/write past the smaller tensor.Proposed validation
def parseNodeCtxt(self, ctxt: NetworkContext, node: gs.Node, channels_first: bool = True) -> Tuple[NetworkContext, bool]: buffer = ctxt.lookup(node.inputs[0].name) gradient = ctxt.lookup(node.inputs[1].name) lazy_reset_grad = ctxt.lookup(node.inputs[2].name) data_out = ctxt.lookup(node.outputs[0].name) + + if tuple(buffer.shape) != tuple(gradient.shape) or tuple(buffer.shape) != tuple(data_out.shape): + return ctxt, False + if int(np.prod(lazy_reset_grad.shape)) != 1: + return ctxt, False self.operatorRepresentation['accum_buffer'] = buffer.name self.operatorRepresentation['gradient'] = gradient.name self.operatorRepresentation['lazy_reset_grad'] = lazy_reset_grad.name self.operatorRepresentation['data_out'] = data_out.name🤖 Prompt for AI Agents