mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
copy
This commit is contained in:
parent
91daea9e01
commit
14522dbbcd
1 changed files with 23 additions and 0 deletions
|
@ -28,3 +28,26 @@ See the [model warnings](warnings.html)
|
|||
section for information on warnings which will occur
|
||||
when working with models that aider is not familiar with.
|
||||
|
||||
## Setting the context window size
|
||||
|
||||
[Ollama uses a 2k context window by default](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-specify-the-context-window-size),
|
||||
which is very small for working with aider.
|
||||
|
||||
You can set the Ollama server's context window with a
|
||||
[`.aider.model.settings.yml` file](https://aider.chat/docs/config/adv-model-settings.html#model-settings)
|
||||
like this:
|
||||
|
||||
```
|
||||
- name: aider/extra_params
|
||||
extra_params:
|
||||
num_ctx: 65536
|
||||
```
|
||||
|
||||
That uses the special model name `aider/extra_params` to set it for *all* models. You should probably use a specific model name like:
|
||||
|
||||
```
|
||||
- name: ollama/qwen2.5-coder:32b-instruct-fp16
|
||||
extra_params:
|
||||
num_ctx: 65536
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue