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

[Operator] Flash Attention #175

Merged
merged 6 commits into from
Apr 18, 2023
Merged

[Operator] Flash Attention #175

merged 6 commits into from
Apr 18, 2023

Conversation

hjjq
Copy link
Member

@hjjq hjjq commented Apr 13, 2023

This PR adds an Hidet Script implementation of Flash Attention.
To enable Flash Attention, set hidet.graph.PassContext().set_use_attention(True)
tune.py is moved to hidet.graph.ops.definitions.utils to resolve some dependency issues.

@hjjq hjjq added the enhancement New feature or request label Apr 13, 2023
@hjjq hjjq merged commit 43e4f06 into hidet-org:main Apr 18, 2023
vadiklyutiy added a commit that referenced this pull request Jul 22, 2024
…d` (#175)

1. Add  `torch.Tensor.sin` and `torch.Tensor.cos` to `register_method`
Gemma passed after that.

2. Add `torch._C._nn.pad` 
Test Workflow works with torch 2.3.0 after that
vadiklyutiy added a commit that referenced this pull request Jul 23, 2024
…d` (#175)

1. Add  `torch.Tensor.sin` and `torch.Tensor.cos` to `register_method`
Gemma passed after that.

2. Add `torch._C._nn.pad` 
Test Workflow works with torch 2.3.0 after that
vadiklyutiy added a commit that referenced this pull request Dec 26, 2024
…d` (#175)

1. Add  `torch.Tensor.sin` and `torch.Tensor.cos` to `register_method`
Gemma passed after that.

2. Add `torch._C._nn.pad` 
Test Workflow works with torch 2.3.0 after that
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant