You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xlog.Warn("[gguf] context_size=-1 resolved to the model's trained max; estimated VRAM may exceed available - expect OOM, or set an explicit context_size",
Copy file name to clipboardExpand all lines: docs/content/advanced/model-configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ These settings apply to most LLM backends (llama.cpp, vLLM, etc.):
145
145
| Field | Type | Default | Description |
146
146
|-------|------|---------|-------------|
147
147
| `threads` | int | `processor count` | Number of threads for parallel computation |
148
-
| `context_size` | int | `512` | Maximum context size (number of tokens) |
148
+
| `context_size` | int | `512` | Maximum context size in tokens. Set to `-1` to auto-use the model's full trained context from GGUF metadata (raw max, no VRAM capping; a warning is logged if it may not fit detected VRAM). |
|`-t, --threads`|| Number of threads used for parallel computation. Usage of the number of physical cores in the system is suggested |`$LOCALAI_THREADS`, `$THREADS`|
76
-
|`--context-size`|| Default context size for models |`$LOCALAI_CONTEXT_SIZE`, `$CONTEXT_SIZE`|
76
+
|`--context-size`|| Default context size for models (`-1` = each model's full trained context from GGUF metadata) |`$LOCALAI_CONTEXT_SIZE`, `$CONTEXT_SIZE`|
0 commit comments