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

How can I increase n_max_tokens? #43

Open
ztkg257 opened this issue Mar 5, 2024 · 1 comment
Open

How can I increase n_max_tokens? #43

ztkg257 opened this issue Mar 5, 2024 · 1 comment

Comments

@ztkg257
Copy link

ztkg257 commented Mar 5, 2024

After modifying the value of n_max_tokens in bert.cpp from "int32_t n_max_tokens = 512;" to "int32_t n_max_tokens = 10000;", I proceeded to rebuild the project. However, upon testing, the value of n_max_tokens remained unchanged at 512 despite the modification.
image

@skeskinen
Copy link
Owner

max tokens is a property of the loaded model. Different models might have different values.

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

No branches or pull requests

2 participants