microsoft / microsoft/MInference
[Bug]: _triton_mixed_sparse_attention in pit_sparse_flash_attention_v2.py doesn't work with triton 3.2.0
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 82
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 1
Description
Describe the bug
I am doing my research project and use the _triton_mixed_sparse_attention function in pit_sparse_flash_attention_v2.py. It works fine with triton==3.0.0, but it returns with an LLVM type error with triton==3.2.0. Below is the raised error:
python: /source/llvm-project/llvm/include/llvm/Support/Casting.h:566: decltype(auto) llvm::cast(const From &) [To = mlir::ShapedType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed
Steps to reproduce
No response
Expected Behavior
No response
Logs
No response
Additional Information
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in pit_sparse_flash_attention_v2.py at _triton_mixed_sparse_attention and compare its behavior under triton==3.0.0 and triton==3.2.0. Investigate the reported LLVM type error and establish a reproducible test or command from the function's usage. Done means the function runs successfully with triton==3.2.0 without the incompatible-type assertion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100