-
Notifications
You must be signed in to change notification settings - Fork 589
[PyTorch] Fuse permute+pad and unpermute+unpad ops for FP8 optimization #1921
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
xiaoxi-wangfj
wants to merge
21
commits into
NVIDIA:main
Choose a base branch
from
021ai:fused_perm_pad
base: main
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
21 commits
Select commit
Hold shift + click to select a range
feb65b7
[PyTorch] Fuse permute+pad and unpermute+unpad ops for FP8 optimization
xiaoxi-wangfj a7de66c
[PyTorch/Common] Fuse permute+pad and unpermute+unpad support with_me…
xiaoxi-wangfj f550684
[PyTorch]format code
xiaoxi-wangfj 6069277
[Common]perf expert_idx loaded once
xiaoxi-wangfj 053abee
Merge branch 'main' into fused_perm_pad
xiaoxi-wangfj 1ea08f7
fix: pad_offsets can be None
xiaoxi-wangfj ac12a91
Merge branch 'main' into fused_perm_pad
xiaoxi-wangfj 230939c
add padding + merging probs bwd support. Not tested
tdophung f301462
Fix garbage initialized act grad
tdophung 7ed584c
all test passing for jax permutation + pad
tdophung 7998ce8
change tokens_per_experts APIs to num_out_tokens with conservative a…
tdophung dd5c72a
change test permutation to reduce test time
tdophung ce187b6
triggering PR refresh
tdophung 7dc9ccb
format code
tdophung 1fbe99c
Remove some tests cases from pytorch side. Add a separate toekn_dispa…
tdophung 592f675
format code
tdophung 1d43279
remove chance for inefficiency in moving between CPU and GPU, remove …
tdophung 4169a4e
fix lint in jax
tdophung c619adf
account for both jax newer and older than version 0.8.2. Adjusted gpu…
tdophung 405b341
format code
tdophung 7cad5c5
fix typo
tdophung 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.