When using KoboldCPP as the backend with the SillyTavern frontend to chat with chatbots (like LLaMA, Mistral, or other open-source models), optimizing the settings can significantly improve performance, latency, and conversation quality.
Here’s a guide to the best recommended settings tailored for KoboldCPP + SillyTavern, depending on your system specs and priorities (speed vs quality):
🔧 KoboldCPP Settings (in SillyTavern)
These settings are configured in SillyTavern under: Settings > Engines > KoboldCPP
🚀 General Performance & Quality Balance (Recommended Defaults)
Setting
Recommended Value
Notes
Model Type
llama, mistral, etc.
Match the base model
Context Size
2048 – 4096 (or higher if supported)
Higher = better memory but more VRAM usage
Max Tokens
1024 – 2048
Controls reply length
Temperature
0.7 – 0.9
Lower = more focused/deterministic, Higher = more creative
Improves long-context handling (if model supports it)
⚙️ Backend Engine Settings (KoboldCPP-Specific)
Setting
Recommended Value
Notes
Precision
float16 or bfloat16 (if supported)
Faster & less VRAM than float32
Threads
Auto or match CPU cores
Affects tokenizer speed
Cache Type
RAM or Disk
RAM is faster, Disk saves memory
Memory F16 Cache
True
Improves performance with float16
Load In 4bit
True (if supported)
Reduces VRAM usage significantly
KV Cache
Enabled
Essential for performance
Model Threads
Equal to logical CPU cores
Tune based on performance
💡 Tip: If using a GPU, set "gpu_layers": 20–30 (or higher if VRAM allows). This is critical for performance. Set via custom arguments in KoboldCPP engine config like: