Skip to content

feat: prefill chunking #2600

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

Merged
merged 38 commits into from
Oct 16, 2024
Merged

feat: prefill chunking #2600

merged 38 commits into from
Oct 16, 2024

Conversation

OlivierDehaene
Copy link
Contributor

No description provided.

@OlivierDehaene OlivierDehaene marked this pull request as ready for review October 7, 2024 10:11
@@ -531,7 +546,7 @@ mod tests {
request: ValidGenerateRequest {
inputs: vec![],
input_ids: Some(Arc::new(vec![])),
input_length: 0,
input_length: 1,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Really ? Isn't this supposed to be 0

Are you changing it for other reasons ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know why it was 0. 0 is not a possible value in the router as it is considered invalid.

@@ -784,7 +799,7 @@ mod tests {

#[tokio::test]
async fn test_queue_next_batch_dropped_receiver() {
let queue = Queue::new(false, 1, false, None, 0, 16);
let queue = Queue::new(false, 1, false, None, 0, 16, false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we add a few tests with chunking ?

cache_length <= prompt_length
), f"Prefix {cache_length} vs input {prompt_length}"
if cache_length == prompt_length:
assert False, "unreachable"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd put a better error message in case it actually happens

Narsil
Narsil previously approved these changes Oct 10, 2024
Narsil
Narsil previously approved these changes Oct 15, 2024
@Narsil Narsil merged commit a6a0c97 into main Oct 16, 2024
11 of 12 checks passed
@Narsil Narsil deleted the feat/prefix_chunking branch October 16, 2024 10:49
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