Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/website/content/docs/addons/llm-llamacpp/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ The `config` obj consists of a set of hyper-parameters which can be used to twea
const config = {
gpu_layers: '99', // number of model layers offloaded to GPU.
ctx_size: '1024', // context length
device: 'cpu' // must be specified: 'gpu' or 'cpu' else it will throw an error
device: 'cpu', // must be specified: 'gpu' or 'cpu' else it will throw an error
load_mode: 'none' // read fully into memory: no mmap, mlock or direct I/O
}
```

Expand All @@ -235,7 +236,7 @@ const config = {
| top_k | 0 – 128 | 40 | Top-k sampling |
| predict | integer (-1 = infinity) | -1 | Maximum tokens to predict |
| seed | integer | -1 (random) | Random seed for sampling |
| no_mmap | "" (passing empty string sets the flag) | β€” | Disable memory mapping for model loading |
| load_mode | `"none"`, `"mmap"`, `"mlock"`, `"mmap+mlock"`, or `"dio"` | `"mmap"` | Select the model loading mode |
| reverse_prompt | string (comma-separated) | β€” | Stop generation when these strings are encountered |
| repeat_penalty | float | 1.1 | Repetition penalty |
| presence_penalty | float | 0 | Presence penalty for sampling |
Expand Down
Loading