Skip to content

Changelog

0.5.0

Faster prompt processing, a pip package, and a license.

  • Faster prompt processing: NVserve now has its own AVX2 matmul kernels for Q4_K and Q6_K weights, the two types in Q4_K_M models, instead of candle's.
  • For prompts, 8 weight columns are unpacked into an interleaved layout once per work item and reused by every prompt row. That makes these matmuls about 2.5× faster.
  • For single tokens, a tile kernel computes up to 8 outputs per pass over the weights. Its speed is about the same as candle's.
  • A 718-token prompt on Llama-3.1-8B: 13.7 s instead of 30.7 s. One 219-token pass of Llama-3.1-70B: 30 s instead of 78–79 s. Measured on AC power; see Benchmarks.
  • Each output is computed with the same integer sums and float steps whatever the batch size, so a sequence's results never depend on what it is batched with.
  • CPUs without AVX2, FMA and F16C keep using candle. NVSERVE_KERNELS=candle switches back to candle for comparisons.
  • Prompt threads: prompt chunks (16 tokens or more) run their Q4_K and Q6_K matmuls on a second pool with all cores but two, while generation keeps half the cores. This makes prompts 7–10% faster. --prompt-threads / NVSERVE_PROMPT_THREADS set its size.
  • pip package: pip install nvserve on Windows and Linux (glibc 2.34+). Each wheel holds both builds, and a small launcher runs the one the CPU supports. NVSERVE_BUILD overrides the choice. The package scripts build the wheels.
  • License: NVserve is licensed under MIT OR Apache-2.0, at your option. The pip wheels include both license files.

0.0.4

Linux support.

  • Runs on Linux:
  • reads use O_DIRECT, and file systems without it get a clear error suggesting --buffered;
  • --mem-limit caps memory with RLIMIT_DATA;
  • peak memory is reported as the resident set;
  • the disk KV cache defaults to /var/tmp.
  • Tested on Linux: the whole test suite passes on Ubuntu 26.04 (WSL2) as well as on Windows.
  • Threads: compute threads default to half the cores. Moonlight-16B-A3B under a 4 GiB cap went from 0.38–0.65 to 0.31–0.34 s/token on Windows, and from 0.47 to 0.32 s/token on Linux.
  • Memory cap test: a new test checks that the memory cap is enforced, on Windows and on Linux.

0.0.3

Mixture-of-experts models.

  • Qwen3 MoE:
  • each expert is stored as its own block (.nvpack version 2);
  • only the chosen experts are read;
  • an LRU expert cache sized from --mem-limit;
  • the next layer's experts are predicted and read ahead (--expert-prefetch).
  • DeepSeek-V2 with multi-head latent attention. The KV cache stores only a compressed latent, about 18× smaller than full keys and values. Also YaRN RoPE scaling and shared experts.
  • DeepSeek-V3 routing: sigmoid gating, a per-expert selection bias, group-limited routing and compressed queries, validated on Moonlight-16B-A3B.
  • Server:
  • speculative decoding while a single request is generating;
  • Qwen3 thinking returned as reasoning_content, with enable_thinking and --no-think;
  • chat answers no longer start with whitespace.
  • Threads: the compute thread count no longer uses every core, which on hybrid laptop CPUs made small matrix multiplications about 20× slower.
  • Tokenizers: DeepSeek's deepseek-llm and Kimi's kimi-k2.

0.0.2

Speculative decoding, batching, Qwen, and an OpenAI-compatible server.

  • Server: nvserve serve provides /v1/models, /v1/completions and /v1/chat/completions, with streaming, stop strings and multi-turn chat. The official OpenAI Python client passes every check against Llama-3.1-70B served under a 4 GiB cap.
  • Speculative decoding: with a draft model (--draft) or from earlier text (--lookup). The draft length adapts automatically. Llama-3.1-70B goes from 9.7 to 4.3 s/token.
  • Batching: several prompts, or concurrent requests, share each pass over the weights.
  • Qwen2 and Qwen2.5: validated at 0.5B and 72B.
  • KV cache: stored in f16, with a disk tier for long contexts under small memory caps.
  • Memory budgeter: --mem-limit becomes a plan, printed at startup.

0.0.1

The first version: streaming a model layer by layer from SSD.

  • Format: the .nvpack format, and a GGUF converter and verifier.
  • Streaming: direct I/O with a prefetching ring of buffers, and quantized matrix multiplication on the weights in place.
  • Llama 3.x: validated at 1B, 8B and 70B. Llama-3.1-70B runs in under 8 GiB of RAM at 9.7 s/token.