-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
[Kernel][Misc] Use TORCH_LIBRARY instead of PYBIND11_MODULE for custom ops #5047
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
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
5cd3412
Use TORCH_LIBRARY instead of PYBIND11_MODULE
bnellnm 77c3e93
fix cpu defs
bnellnm d317299
fix typo in cpu pybind
bnellnm 730ad15
fix moe/punica
bnellnm d435732
fixes
bnellnm f474a78
fixes
bnellnm 5ddf7c0
fix punica_pybind signature
bnellnm 699a373
rebase
bnellnm f2646f4
fix format
bnellnm 497c3f4
more clang-format
bnellnm ed5cb0b
cpu fixes
bnellnm 81c2783
convert cache_ops + cuda_utils
bnellnm f0c5e87
add mutable indices to schema registration
bnellnm 70bf9a9
clang format
bnellnm 216d3d1
fix format
bnellnm 4bc89c1
fix cpu binding
bnellnm fb2a195
fix intel
bnellnm 4052198
format
bnellnm e8e9af2
add meta functions and signatures
bnellnm c72bf4c
update cpu bindings
bnellnm c5562c8
convert custom_ar ops
bnellnm a0988ac
fix formatting
bnellnm a0a2a00
move punica and moe ops into _custom_ops
bnellnm d956724
maybe fix all_reduce
bnellnm a24f023
fix more formatting
bnellnm b1f61f4
fix some stuff
bnellnm 6d35d5c
use python stable api
bnellnm 1fcde34
fix cpu
bnellnm 88dc724
add comment
bnellnm 9d42c29
fix punica
bnellnm f178aed
try to fix ROCM dockerfile
bnellnm 13e36f0
cleanups
bnellnm 415dc42
rebase + use Tensor instead of std::vector<uint8_t> in custom ar api
bnellnm 0f35b08
fix formatting
bnellnm 3b722e3
fix test_int8_quant.py test
bnellnm 3e5cec2
remove meta ops for now
bnellnm dc87320
rebase + some review comments
bnellnm bb2446e
libtorch_python.so no longer needed?
bnellnm 48868e1
rename pybind files to torch_bindings.cpp
bnellnm 4ed8bf2
add comments about const vectors
bnellnm 57088e4
rebase + run format.sh
bnellnm 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
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.
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.