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

feat: add a use_softmax field in variant class #533

Merged
merged 1 commit into from
Oct 16, 2024
Merged

feat: add a use_softmax field in variant class #533

merged 1 commit into from
Oct 16, 2024

Conversation

yzh119
Copy link
Collaborator

@yzh119 yzh119 commented Oct 16, 2024

If true, use online softmax rules to update attention states.
If not, simply adding the partial attention results.

In the future, we can generalize this as a state update function.

@yzh119 yzh119 merged commit d81af97 into main Oct 16, 2024
yzh119 added a commit that referenced this pull request Oct 17, 2024
…ions (#532)

The qkv data type in `run` function must match with the q/kv data type
specified in `plan` functions, otherwise the plan function might produce
wrong schedules.

feat: add a `use_softmax` field in variant class (#533)

If true, use online softmax rules to update attention states.
If not, simply adding the partial attention results.

In the future, we can generalize this as a state update function.

upd

upd

add flash sigmoid

upd

upd

upd

upd
@yzh119 yzh119 deleted the use_softmax branch October 27, 2024 03:08
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

Successfully merging this pull request may close these issues.

1 participant