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

Enable eager prefill and prefix caching by default #732

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ajtejankar
Copy link
Contributor

No description provided.

@ajtejankar ajtejankar requested a review from arnavgarg1 January 8, 2025 22:09
@arnavgarg1
Copy link
Contributor

Can we update the default values in our docs as well to reflect this change?

@@ -508,7 +508,7 @@ struct Args {
/// Whether to use the prefix caching mechanism. This will skip computing attention on previously cached prefixes
/// in the prompt. Useful in cases where many queries need to be run over a shared context, or for long multi-turn
/// chats conversations.
#[clap(long, env)]
#[clap(default_value = "true", long, env)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we confident this is stable enough to enable by default? I believe there are some open questions on this at the moment. Maybe we can start with just landing the eager prefill change.

@ajtejankar
Copy link
Contributor Author

@arnavgarg1 Not sure if this is the only thing that you meant, but I've added a line documentation to launcher.md for --eager-prefill and reverted --prefix-caching to be false by default.

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.

3 participants