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

[dlinfer]change llm op interface of paged_prefill_attention. #2977

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

JackWeiw
Copy link
Contributor

Motivation

This PR changes llm op interface of paged_prefiil_attention.

Modification

Add relevant params to dlinfer attention backend and kernel
Added params requested by tmo:
cu_seq_lens_kv (Tensor): The cumulative sequence lengths of the key/value sequences.
max_kv_seq_len (int): The maximum length of any key/value sequence.

@lvhan028 lvhan028 requested a review from jinminxi104 December 31, 2024 09:44
@RunningLeon RunningLeon changed the title [dlinfer]change llm op interface of paged_prefiil_attention. [dlinfer]change llm op interface of paged_prefill_attention. Jan 2, 2025
@jinminxi104 jinminxi104 marked this pull request as draft January 2, 2025 08:04
Copy link
Collaborator

@jinminxi104 jinminxi104 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jinminxi104 jinminxi104 marked this pull request as ready for review January 11, 2025 06:50
@lvhan028 lvhan028 requested a review from grimoire January 13, 2025 08:40
@lvhan028 lvhan028 merged commit 39af9c8 into InternLM:main Jan 13, 2025
5 checks passed
@JackWeiw JackWeiw deleted the wt/camb/interface branch January 14, 2025 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants