New Tool Radar

AI Concepts

How to Set Sampler Settings in KoboldCPP

Open the sampler settings in the KoboldCpp web UI and set temperature, top-p and repetition penalty so replies are as varied or as steady as you need.

Schematic diagram with three steps: open the KoboldCpp web UI sampler settings, set temperature and top-p, and compare replies at low and high temperature.

Temperature and top-p are the two knobs that decide whether KoboldCpp’s replies are steady or surprising: temperature flattens or sharpens the model’s choices, and top-p cuts off the unlikely tokens before the pick. In KoboldCpp you set them in the web UI’s sampler settings for the run, not on the command line — the flags reference documents command-line flags for the model and hardware, while sampling lives in the UI. The exact control names vary by version, so this guide tells you what to look for and what the values mean, and the UI steps are UNTESTED on this machine.

Related guide: Related Local AI guide

Set the two knobs

Open the web UI at http://localhost:5001, load your model, and open the sampler settings panel. Set Temperature first: 0 means the model always picks its most likely token, so the same prompt gives the same answer; 0.7 is a common middle ground for chat; above 1.0 the answers get wild. The underlying llama.cpp engine defaults to a temperature of 0.80 and a top-p of 0.95, per its server README — a useful starting point if the UI shows blanks. Then set Top P: 0.9 means the model only picks from the smallest set of tokens whose probabilities add up to 0.9, and 1.0 means no filtering at all. One documented exception: for OpenAI chat requests with tools, KoboldCpp’s temperature defaults to 0.5 and is capped at 1.0.

Test the settings

Ask the same question three times at temperature 0 and three times at 0.8. At 0 the three answers should match; at 0.8 they should differ. If they do not differ at 0.8, the sampler settings did not apply — check that you changed them for the session that served the request, and that no per-request setting from your client overrode them. Save a combination you like as a preset or a config file (.kcpps) so you do not have to set it again.

Expected result. We checked the KoboldCpp flags reference for the tool-call temperature default and cap, and the llama.cpp server README for the engine defaults of temperature 0.80 and top-p 0.95. We did not run this software ourselves for this guide, so no output here is a recorded result; steps marked UNTESTED were checked against the sources below, not run.

Limits

Sampling changes which tokens get picked, not what the model knows: a high temperature can produce fluent, confident, wrong answers. The UI control names and locations in this guide are UNTESTED — they vary by KoboldCpp version, so check the panel in the version you run. We did not run KoboldCpp.

Sources

Checked 2026-11-28.

See all