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

Is it possible to support non-contiguous input tensor ? #41

Open
ProHuper opened this issue Jun 25, 2024 · 0 comments
Open

Is it possible to support non-contiguous input tensor ? #41

ProHuper opened this issue Jun 25, 2024 · 0 comments

Comments

@ProHuper
Copy link

The attention kernel implemented with ThunderKittens requires the sequence length to be a multiple of 128, and the input tensor to be contiguous. However, PyTorch's SDP kernel does not have these restrictions. If I pad and make the input tensor contiguous before feeding it, the speed of ThunderKittens will be much slower compared to PyTorch's SDP due to the introduction of significant memcpy operations.

20240625104037

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

No branches or pull requests

1 participant