10000 Add unlimited max_tokens by jm12138 · Pull Request #64 · abetlen/llama-cpp-python · GitHub
[go: up one dir, main page]

Skip to content

Add unlimited max_tokens #64

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 2 commits into from
Jul 8, 2023
Merged

Conversation

jm12138
Copy link
Contributor
@jm12138 jm12138 commented Apr 10, 2023
  • Add a feature with unlimited max_tokens that is enabled when max_tokens <= 0.

  • Similar to this parameter in llama.cpp:

https://github.com/ggerganov/llama.cpp/blob/180b693a47b6b825288ef9f2c39d24b6eea4eea6/examples/common.cpp#L230

@Aqirito
Copy link
Aqirito commented Apr 28, 2023

is this will be merged?

@gjmulder
Copy link
Contributor

@abetlen ?

@gjmulder gjmulder added the enhancement New feature or request label May 23, 2023
@BakaKiller
Copy link

Up ! This would be really great !

@abetlen
Copy link
Owner
abetlen commented Jul 8, 2023

@jm12138 thanks for the contribution, sorry took so long to get to this! LGTM

@abetlen abetlen merged commit 2472420 into abetlen:main Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0