mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
docs: Add OLLAMA_CONTEXT_LENGTH to FAQ. (#9545)
This commit is contained in:
parent
757668c42f
commit
d8a5d96b98
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ Please refer to the [GPU docs](./gpu.md).
|
|||
|
||||
## How can I specify the context window size?
|
||||
|
||||
By default, Ollama uses a context window size of 2048 tokens.
|
||||
By default, Ollama uses a context window size of 2048 tokens. This can be overridden with the `OLLAMA_CONTEXT_LENGTH` environment variable. For example, to set the default context length to 8K, use: `OLLAMA_CONTEXT_LENGTH=8192 ollama serve`.
|
||||
|
||||
To change this when using `ollama run`, use `/set parameter`:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue