Skip to content

Conversation

@MasterJH5574
Copy link
Contributor

This PR adds a new function to PagedKVCache to return in-sequence positions for each location in a batch of sequences that is being forwarded. This function helps apply positional embeddings for language models that do not use Rotary positional embeddings.

This PR adds a new function to PagedKVCache to
return in-sequence positions for each location
in a batch of sequences that is being forwarded.
This function helps apply positional embeddings
for language models that do not use Rotary positional
embeddings.
@MasterJH5574
Copy link
Contributor Author

cc @rickzx

@tqchen tqchen merged commit efc2ae9 into apache:main Feb 16, 2024
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.

2 participants