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

Allow customizing context length in config.toml #2638

Closed
wsxiaoys opened this issue Jul 14, 2024 · 2 comments · Fixed by #2649
Closed

Allow customizing context length in config.toml #2638

wsxiaoys opened this issue Jul 14, 2024 · 2 comments · Fixed by #2649
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@wsxiaoys
Copy link
Member

wsxiaoys commented Jul 14, 2024

Please describe the feature you want

Tabby currently uses a default value of 1536 for code completion context, which is not configurable. We should expose the configuration in config.toml.

Code location:

.max_input_length(1024 + 512)

pub struct ModelConfigGroup {

.arg(env::var("LLAMA_CPP_N_CONTEXT_SIZE").unwrap_or("4096".into()))

Additional context
Add any other context or screenshots about the feature request here.


Please reply with a 👍 if you want this feature.

@wsxiaoys wsxiaoys added enhancement New feature or request good first issue Good for newcomers labels Jul 14, 2024
@wsxiaoys wsxiaoys changed the title Allow customize context length in config.toml Allow customizing context length in config.toml Jul 15, 2024
@Sma1lboy
Copy link
Collaborator

Would it be alright if I take this one? I am interested in contributing to this repository both now and in the future.

@wsxiaoys
Copy link
Member Author

Wei has started working on this at #2649 - I'll open more good first issues this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants