Skip to content
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

hotfix: revert torch.library register #709

Merged
merged 2 commits into from
Dec 30, 2024
Merged

Conversation

yzh119
Copy link
Collaborator

@yzh119 yzh119 commented Dec 30, 2024

We observe performance degradation for small operations in flashinfer v0.2 because of the overhead of torch.library.custom_op introduced in #554.
This PR disables torch custom operator registrations first, we can add them back with lightweight registration later: https://github.com/vllm-project/vllm/blob/36e76700453924c8d421db99af70a88a1df835cd/vllm/utils.py#L1660-L1674

cc @zhyncs @abcdabcd987 @youkaichao

@yzh119 yzh119 merged commit ccd3be9 into main Dec 30, 2024
@yzh119 yzh119 deleted the revert-torch-custom-op-register branch January 1, 2025 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant