Repository navigation
feat(flydsl): Add HSTU Forward kernel - #4354
damien-lejeune wants to merge 18 commits into
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
ruff
Do not perform function call torch.device in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable
Use tuple instead of Tuple for type annotation
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
ruff
Expected ,, found <<
aiter/aiter/ops/flydsl/__init__.py
Line 86 in 462df30
Expected ,, found <<
aiter/aiter/ops/flydsl/__init__.py
Line 86 in 462df30
Expected ,, found <
aiter/aiter/ops/flydsl/__init__.py
Line 86 in 462df30
Expected an expression
aiter/aiter/ops/flydsl/__init__.py
Line 87 in 462df30
Expected an expression
aiter/aiter/ops/flydsl/__init__.py
Line 87 in 462df30
Expected an expression
aiter/aiter/ops/flydsl/__init__.py
Line 87 in 462df30
Expected ,, found >>
aiter/aiter/ops/flydsl/__init__.py
Line 89 in 462df30
Expected ,, found >>
aiter/aiter/ops/flydsl/__init__.py
Line 89 in 462df30
Expected ,, found >>
aiter/aiter/ops/flydsl/__init__.py
Line 89 in 462df30
Expected ,, found >
aiter/aiter/ops/flydsl/__init__.py
Line 89 in 462df30
Expected ,, found string
aiter/aiter/ops/flydsl/__init__.py
Line 90 in 462df30
|
Unfortunately, I have to close this PR, due to performance regression introduced by failing to take into account a force push change on the original branch. |
Motivation
The purpose of this work is to implement a FlyDSL HSTU forward kernel.
Jira ID : SILOTIGER-617
Technical Details
The HSTU block is defined here: https://arxiv.org/pdf/2402.17152v2
The full HSTU layer, implemented here (paper Eq. 1–3) is:
where$f_1, f_2$ are linear layers, $\phi_1,\phi_2$ are SiLU, $\odot$ is elementwise product, and $\text{rab}^{p,t}$ is a relative attention bias (positional + temporal).
Test Plan
Test Result
Submission Checklist