Context is 4096, not the 131k advertised...

#9
by liar666 - opened

Using this model (Q4_K_M) in ollama I get the following error:
{"error":{"message":"{\"error\":{\"code\":400,\"message\":\"request (12918 tokens) exceeds the available context size (4096 tokens), try increasing it\",\"type\":\"exceed_context_size_error\",\"n_prompt_tokens\":12918,\"n_ctx\":4096}}","type":"invalid_request_error","param":null,"code":null}}

I don't understand how it is possible that this model series beats the competition on "long context" tasks/benchmarks....

OpenBMB org

This is almost certainly an Ollama-side default, not a model limitation.

Ollama falls back to a 4096-token context unless you tell it otherwise. It does not read the model's advertised max context from the GGUF metadata, so a freshly pulled model always runs at num_ctx=4096 regardless of what the architecture supports

Try llama.cpp or other, ollama is not suitable for you

Sign up or log in to comment