New Tool Radar

Local AI

How to Chat in Instruct Mode with KoboldCpp

Set KoboldCpp to Instruct Mode and give it tasks the way you would ask ChatGPT.

Schematic illustration with three step boxes: Open KoboldCpp Lite; Set Instruct Mode; Send a task.

KoboldCpp has a Lite web interface with a Usage mode setting: Chat Mode for roleplay, Story Mode for writing, and Instruct Mode for tasks such as summarising and answering questions. Instruct Mode is the right choice when you want the model to follow instructions rather than play a character. This guide sets it and sends a task.

Before you start

  • KoboldCpp installed, with a GGUF model file.
  • A browser on the same machine.
  • A task to test with, for example a summary.

Open KoboldCpp Lite

Start KoboldCpp and open the Lite interface in a browser, by default at http://localhost:5001. The Launch Browser option opens it for you. Check the model is loaded before changing settings.

Set Instruct Mode

Open Settings, then General, and set Usage mode to Instruct Mode. Then pick an Instruct Tag Preset that matches your model family, for example Llama 3 Chat for a Llama 3 model. The preset wraps your prompt in the tags the model was trained with, which is what makes the mode work.

Send a task

Type a task as a direct instruction, for example “Summarise the following text in three bullet points:” followed by a short paragraph. The reply should be the three bullets, not a continuation of the paragraph. If the model instead continues the text, the preset or the mode is wrong for the model.

Worked example

Worked example: paste a 150-word paragraph about bicycle maintenance and ask for three bullet points. In Instruct Mode with the right preset, the reply should be three short bullets about the paragraph; in Chat Mode the same prompt is more likely to produce a conversational reply that asks what you want.

Expected result

UNTESTED in this guide: no chat was run while writing it. The expected result is that the reply is the three bullets, with no roleplay or continuation of the paragraph.

Limitations

The sampler settings matter too: a temperature around 0.7, min-p 0.05, top-k 100 and a repetition penalty near 1.07 are a common starting point for instruct chat. If the replies are too wild, lower the temperature before changing the mode.

Sources

See all