Skip to content

[Operator] Flash Attention#175

Merged
hjjq merged 6 commits intohidet-org:mainfrom
hjjq:attn
Apr 18, 2023
Merged

[Operator] Flash Attention#175
hjjq merged 6 commits intohidet-org:mainfrom
hjjq:attn

Conversation

@hjjq
Copy link
Copy Markdown
Collaborator

@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