koboldcpp

koboldcpp

Docker app from oromis95's Repository

Overview

KoboldCpp is a lightweight but powerful AI backend, bundled with KoboldAI Lite frontend. https://hub.docker.com/r/koboldai/koboldcpp/

KoboldCpp

What this is

This small repository provides the necessary configuration file to interface the Unraid Operating System with the KoboldCpp project. It was made by Henk717 and I.

KoboldCpp is an easy-to-use AI text-generation software for GGML and GGUF models, inspired by the original KoboldAI. It's a single self-contained distributable from Concedo, that builds off llama.cpp and adds many additional powerful features.

Preview Preview Preview Preview

Features

  • Single file executable, with no installation required and no external dependencies
  • Runs on CPU or GPU, supports full or partial offloaded
  • LLM text generation (Supports all GGML and GGUF models, backwards compatibility with ALL past models)
  • Image Generation (Stable Diffusion 1.5, SDXL, SD3, Flux)
  • Speech-To-Text (Voice Recognition) via Whisper
  • Text-To-Speech (Voice Generation) via OuteTTS
  • Provides many compatible APIs endpoints for many popular webservices (KoboldCppApi OpenAiApi OllamaApi A1111ForgeApi ComfyUiApi WhisperTranscribeApi XttsApi OpenAiSpeechApi)
  • Bundled KoboldAI Lite UI with editing tools, save formats, memory, world info, author's note, characters, scenarios.
  • Includes multiple modes (chat, adventure, instruct, storywriter) and UI Themes (aesthetic roleplay, classic writer, corporate assistant, messsenger)
  • Supports loading Tavern Character Cards, importing many different data formats from various sites, reading or exporting JSON savefiles and persistent stories.
  • Many other features including new samplers, regex support, websearch, RAG via TextDB and more.
  • Ready-to-use binaries for Windows, MacOS, Linux, Android (via Termux), Colab, Docker, also supports other platforms if self-compiled (like Raspberry PI).
  • Need help finding a model? Read this!

Obtaining a GGUF model

Improving Performance

  • GPU Layer Offloading: Add --gpulayers to offload model layers to the GPU. The more layers you offload to VRAM, the faster generation speed will become. Experiment to determine number of layers to offload, and reduce by a few if you run out of memory.
  • Increasing Context Size: Use --contextsize (number) to increase context size, allowing the model to read more text. Note that you may also need to increase the max context in the KoboldAI Lite UI as well (click and edit the number text field).
  • Old CPU Compatibility: If you are having crashes or issues, you can try running in a non-avx2 compatibility mode by adding the --noavx2 flag. You can also try turning off mmap with --nommap or reducing your --blasbatchssize (set -1 to avoid batching)

For more information, be sure to run the program with the --help flag, or check the wiki.

AMD Users

Questions and Help Wiki

  • First, please check out The KoboldCpp FAQ and Knowledgebase which may already have answers to your questions! Also please search through past issues and discussions.
  • If you cannot find an answer, open an issue on this github, or find us on the KoboldAI Discord.

KoboldCpp and KoboldAI API Documentation

KoboldCpp Public Demo

Considerations

  • Since v1.33, you can set the context size to be above what the model supports officially. It does increases perplexity but should still work well below 4096 even on untuned models. (For GPT-NeoX, GPT-J, and Llama models) Customize this with --ropeconfig.
  • Since v1.42, supports GGUF models for LLAMA and Falcon
  • Since v1.60, provides native image generation with StableDiffusion.cpp, you can load any SD1.5 or SDXL .safetensors model and it will provide an A1111 compatible API to use.
  • I try to keep backwards compatibility with ALL past llama.cpp models. But you are also encouraged to reconvert/update your models if possible for best results.
  • Since v1.75, openblas has been deprecated and removed in favor of the native CPU implementation.

License

  • The original GGML library and llama.cpp by ggerganov are licensed under the MIT License
  • However, KoboldAI Lite is licensed under the AGPL v3.0 License
  • KoboldCpp code and other files are also under the AGPL v3.0 License unless otherwise stated

Notes

  • API documentation available at /api (e.g. http://localhost:5002/api) and https://lite.koboldai.net/koboldcpp_api. An OpenAI compatible API is also provided at /v1 route (e.g. http://localhost:5002/v1).
  • All up-to-date GGUF models are supported, and KoboldCpp also includes backward compatibility for older versions/legacy GGML .bin models, though some newer features might be unavailable.
  • An incomplete list of architectures is listed, but there are many hundreds of other GGUF models. In general, if it's GGUF, it should work.
  • Llama / Llama2 / Llama3 / Alpaca / GPT4All / Vicuna / Koala / Pygmalion / Metharme / WizardLM / Mistral / Mixtral / Miqu / Qwen / Qwen2 / Yi / Gemma / Gemma2 / GPT-2 / Cerebras / Phi-2 / Phi-3 / GPT-NeoX / Pythia / StableLM / Dolly / RedPajama / GPT-J / RWKV4 / MPT / Falcon / Starcoder / Deepseek and many, many more.

Where can I download AI model files?

Install Koboldcpp on Unraid in a few clicks.

Find Koboldcpp in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.

Open the Apps tab on your Unraid server Search Community Apps for Koboldcpp Review the template variables and paths Click Install

Download Statistics

119,847
Total Downloads
7,617
This Month
6,392
Avg / Month

Total Downloads Over Time

Loading chart...

Related apps

Explore more like this

Explore all

Details

Repository
koboldai/koboldcpp
Last Updated2026-06-29
First Seen2025-03-03

Runtime arguments

Web UI
http://[IP]:[PORT:5001]/
Network
bridge
Shell
bash
Privileged
false
Extra Params
--gpus all

Template configuration

Don't Remote TunnelVariable
Target
KCPP_DONT_TUNNEL
Default
true
Value
true
WorkspacePathrw

This is where your docker data will be stored. Models and binaries will be saved here.

Target
/workspace
KCPP_ARGSVariable

This is where we add run variables. '--model' accepts URL's and filenames.

Default
--model https://huggingface.co/concedo/KobbleTinyV2-1.1B-GGUF/resolve/main/KobbleTiny-Q4_K.gguf
Value
--model https://huggingface.co/concedo/KobbleTinyV2-1.1B-GGUF/resolve/main/KobbleTiny-Q4_K.gguf
WebUI PortPorttcp
Target
5001
Default
5002
Value
5002
Don't Update Kobold on LaunchVariable

The Docker container update is a separate update. This just updates the binary.

Target
KCPP_DONT_UPDATE
Default
false
Value
false
Retain Models on RestartVariable
Target
KCPP_DONT_REMOVE_MODELS
Default
true
Value
true