Skip to content

Commit 4261a3b

Browse files
authored
docs: update modelfile.md to reflect current default num_ctx (ollama#11189)
As in the commit 44b466e, the default context length has been increased to 4096.
1 parent acef9b4 commit 4261a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/modelfile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ PARAMETER <parameter> <parametervalue>
150150
151151
| Parameter | Description | Value Type | Example Usage |
152152
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | -------------------- |
153-
| num_ctx | Sets the size of the context window used to generate the next token. (Default: 2048) | int | num_ctx 4096 |
153+
| num_ctx | Sets the size of the context window used to generate the next token. (Default: 4096) | int | num_ctx 4096 |
154154
| repeat_last_n | Sets how far back for the model to look back to prevent repetition. (Default: 64, 0 = disabled, -1 = num_ctx) | int | repeat_last_n 64 |
155155
| repeat_penalty | Sets how strongly to penalize repetitions. A higher value (e.g., 1.5) will penalize repetitions more strongly, while a lower value (e.g., 0.9) will be more lenient. (Default: 1.1) | float | repeat_penalty 1.1 |
156156
| temperature | The temperature of the model. Increasing the temperature will make the model answer more creatively. (Default: 0.8) | float | temperature 0.7 |

0 commit comments

Comments
 (0)