Skip to content

Troubleshooting

"--mem-limit ...: ... is too small"

The memory plan does not fit. The message names what was needed. You can:

  • raise --mem-limit;
  • lower --ctx (the KV cache and activations shrink with it) or --prefill-chunk (the activations shrink);
  • use --kv disk to keep the KV cache off RAM;
  • with serve, lower --max-batch.

The weight slots are a fixed cost of twice the largest block. nvserve inspect shows it as the "slot size".

"the file system does not support direct I/O ... use --buffered"

NVserve reads models with direct I/O (O_DIRECT on Linux), which some file systems refuse, for example some network shares and FUSE mounts. Either move the .nvpack to a local disk, or add --buffered to read through the page cache.

WSL

Keep models on the Linux side, for example under your home directory. Reading a model through /mnt/c or /mnt/d works, but in a test it ran at 35 MB/s against 2.6 GB/s from the Linux disk.

"Illegal instruction" right at startup

The v3 build needs a CPU with AVX2. NVserve normally checks the CPU and picks the right build for you; if the check gets it wrong, set NVSERVE_BUILD=compat to run the build for older CPUs.

Generation is slow

Run once with nvserve run and read the summary at the end (see Reading the summary):

  • The disk is close to 100% busy. The disk is the limit. Use an NVMe drive, a smaller quantization, a mixture-of-experts model, or speculative decoding. Make sure the model is not on a USB drive or a network share.
  • Compute dominates. Try --threads with a few values. Fewer threads are often faster on laptops and in virtual machines.
  • The first run after copying a model. Nothing is cached in RAM by design, so every run reads from disk. Speed should be the same from the first token.
  • Antivirus scanning. On Windows, real-time scanning can slow large sequential reads. If the disk reads far below its rated speed, try excluding the models folder.

"this model has no recognized chat template"

The model's chat format is not one NVserve knows (Llama 3, ChatML, DeepSeek or Kimi). Use plain completion without --chat, or /v1/completions, and format the prompt yourself.

"pre-tokenizer ... is not supported yet" or "unsupported architecture"

The model's tokenizer or architecture is not supported. See Supported models.

"Out of memory" or the process is killed

  • Without --mem-limit: NVserve has no plan to follow. Set --mem-limit to a little less than your free RAM.
  • On Linux: the kernel's out-of-memory killer may stop the process before the cap does. This happens if the machine's free memory is smaller than --mem-limit.

The server is not reachable from another machine

It listens on 127.0.0.1 by default. Use --host 0.0.0.0 and open the port in your firewall. The server has no authentication, so put it behind a reverse proxy that adds some before exposing it.

Reporting a problem

Include:

  • nvserve --version;
  • the command you ran;
  • the full output, including the memory plan and the summary;
  • nvserve inspect model.nvpack.