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

ValueError: Requested tokens (590) exceed context window of 512 #54

Open
dennis-schadeck opened this issue Jan 14, 2025 · 1 comment
Open

Comments

@dennis-schadeck
Copy link

I'm using the local_model.
When I try to execute, the error occurs.
"[..]
llama_new_context_with_model: n_batch is less than GGML_KQ_MASK_PAD - increasing to 32
llama_new_context_with_model: n_ctx_per_seq (512) < n_ctx_train (4096) -- the full capacity of the model will not be utilized
[..]
ValueError: Requested tokens (590) exceed context window of 512 "

Is there any way to set the parameters?

@fynnfluegge
Copy link
Owner

Hi, it is hardcoded in llm.py. I don't actively develop this anymore, but open to merge PRs. If you need this, I am open to merge your PR 🙌

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