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

server : add n_indent parameter for line indentation requirement #9929

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

ggerganov
Copy link
Owner

@ggerganov ggerganov commented Oct 17, 2024

target #9924

/infill requests can now pass the "n_indent": int parameter to require that each new generated line has an indentation of at least n_indent whitespaces. This is useful for code completion tasks, where we want to generate code in the current local scope.

Before

n_indent-before

After

n_indent-after

Base automatically changed from gg/infill-4 to master October 17, 2024 19:32
@ggerganov ggerganov merged commit 8901755 into master Oct 18, 2024
59 checks passed
@ggerganov ggerganov deleted the gg/infill-5 branch October 18, 2024 04:32
@ggerganov ggerganov mentioned this pull request Oct 18, 2024
7 tasks
drollings pushed a commit to drollings/llama.cpp that referenced this pull request Oct 18, 2024
dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 15, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 18, 2024
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.

1 participant