Skip to content
KoboldCpp
GitHub

OS-specific problems

Problems that affect every system are on the other Troubleshooting pages. This page collects the ones specific to one system.

Windows: antivirus, SmartScreen or Smart App Control

Section titled “Windows: antivirus, SmartScreen or Smart App Control”

See Antivirus or Windows blocks or deletes the file.

Windows: a user name or folder with accented letters

Section titled “Windows: a user name or folder with accented letters”

Paths with non-ASCII characters (umlauts, accents, other alphabets) can break model loading. Put KoboldCpp and your models in a folder with a plain ASCII path, for example C:\mystuff.

A Windows user name with such characters has been reported to make image models fail with an access violation, because KoboldCpp unpacks itself into the temporary folder inside the user profile. The latest release contains a fix for this that has not been confirmed yet. If image models still fail this way, a Windows user account with a plain ASCII name avoids the problem.

DLL load failed while importing pyexpat

Or an error about a missing entry point such as GetSystemTimePreciseAsFileTime. The main builds use functions that exist only in Windows 8 and newer.

  1. Use koboldcpp-oldpc.exe. Its libraries skip the Windows 8 functions.
  2. For the pyexpat error, install the Windows update KB3063858.
  3. If msvcp140.dll still reports GetSystemTimePreciseAsFileTime, one user fixed it this way: unpack KoboldCpp with Unpack KoboldCpp To Folder on the Extra tab, then replace the msvcp140.dll in that folder with an older version. Do not replace the one in the Windows system folders.

The third-party VxKex compatibility layer can make the main builds run. CUDA on Windows 7 is untested. See Windows 7.

Windows: slow when the window is in the background

Section titled “Windows: slow when the window is in the background”

See Slow when the window is in the background.

The file is not executable yet.

Terminal
chmod +x koboldcpp-linux-x64
./koboldcpp-linux-x64

If the main build still fails on an older system, try koboldcpp-linux-x64-oldpc.

KoboldCpp finds your graphics card and its memory with nvidia-smi (NVIDIA), rocminfo (AMD with ROCm) or vulkaninfo. For Vulkan, install the vulkan-tools package, then restart KoboldCpp. See The graphics card is not used.

Often on Wayland. The console may show:

Zenity/YAD sanity check failed
  1. Install yad. KoboldCpp prefers it over zenity.
  2. Or turn on Use Classic FilePicker on the launcher's Extra tab.

See "Warning, GUI failed to start". On a server without a display, run KoboldCpp from the command line; see Headless use.

KoboldCpp tries xdg-open first, then Python's browser launcher. If neither works, open http://localhost:5001 yourself.

Use Use Vulkan in koboldcpp-linux-x64-nocuda. An experimental official ROCm build also exists; see ROCm build for AMD on Linux.

Linux: a self-built binary does not run on another PC

Section titled “Linux: a self-built binary does not run on another PC”

Since v1.122, koboldcpp.sh builds portable binaries only with KCPP_PORTABLE=1. See Build from source.

macOS: nothing happens, or macOS blocks the file

Section titled “macOS: nothing happens, or macOS blocks the file”

The file is not executable yet, or Gatekeeper blocks it because it is not signed.

  1. In Terminal, make it executable and run it:

    Terminal
    chmod +x koboldcpp-mac-arm64
    ./koboldcpp-mac-arm64
  2. If macOS blocks it, allow it in System Settings → Privacy & Security, then run it again.

See macOS.

This is normal on Apple Silicon. KoboldCpp puts all layers on the GPU (Metal) anyway:

MacOS detected: Auto GPU layers set to maximum

There is no ready-made file for Intel Macs, and they are poorly supported. You can build from source.

--failsafe switches to a CPU-only library that uses Apple's Accelerate framework instead of Metal.

Some devices crash with Illegal instruction. Compile with make LLAMA_PORTABLE=1, which turns off ARM-specific instructions. See Android (Termux).

Run termux-change-repo and pick another mirror, then run the setup again.

The Docker image detects processor features only roughly and can fall back to the failsafe libraries, which are extremely slow. Choose the backend yourself, for example --usecuda or --usevulkan in KCPP_ARGS. See Docker.