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

Handle models with smaller context length #587

Open
deboer-tim opened this issue Jan 14, 2025 · 2 comments
Open

Handle models with smaller context length #587

deboer-tim opened this issue Jan 14, 2025 · 2 comments

Comments

@deboer-tim
Copy link

Some models (e.g. granite3.1-dense:8b) have a short context length that runs out after a few prompts. In Ollama I don't notice, I assume it is either managing the length or continually clearing it. In Ramalama I see the following message and the process exits:

context size exceeded
llama_decode: failed to decode, ret = 1
failed to decode
failed to generate response
@ericcurtin
Copy link
Collaborator

Maybe we are supposed to read the context length from the model itself and use that:

https://ollama.com/library/granite3.1-dense/blobs/0a922eb99317

@deboer-tim
Copy link
Author

Yes, I think that's the expectation.

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