Models¶
NVserve runs models from GGUF files, converted once into its own .nvpack format.
Choosing a model file¶
- Architecture: it must be one of the supported models.
nvserve inspect file.ggufshows a file's architecture before you convert it. - Quantization: Q4_K_M is a good default, the usual balance between size and quality. Smaller quantizations (Q3_K, Q2_K) read less per token and so run faster, at some cost in quality. Q8_0 and F16 are closer to the original but about 2× and 4× larger to stream.
-
Speed: each generated token reads the whole model (dense models) or its active part (mixture-of-experts models) from disk. Roughly:
Model Read per token at Q4_K_M Time per token at 3.5 GB/s 8B dense 4.6 GB ~1.3 s 70B dense 40 GB ~11 s Qwen3-30B-A3B (MoE, 3B active) ~1.8 GB, less with the expert cache ~0.4 s DeepSeek-V2-Lite (MoE, 2.4B active) ~1.5 GB, less with the expert cache ~0.35 s Mixture-of-experts models run fastest per unit of quality. With large dense models, speculative decoding makes the biggest difference. - Split files: some very large models are published as several files (
...-00001-of-00004.gguf). These are not supported yet; use a single-file GGUF.
Converting¶
- Exact copy: the weights are not changed, only regrouped. Each decoder layer becomes one 4 KiB-aligned block, and each mixture-of-experts expert becomes a block of its own.
- Memory: conversion uses little, whatever the model size, and needs as much free disk
as the
.ggufitself. - Safe to interrupt: the output is written to
model.nvpack.partialand renamed only when it is complete. - Overwriting:
--forcereplaces an existing output file.
Checking a pack¶
nvserve verify model.nvpack # every tensor's checksum
nvserve verify model.nvpack --against model.gguf # and identical to the source, tensor by tensor
Inspecting¶
nvserve inspect model.nvpack # shape, layout, bytes read per token
nvserve inspect model.nvpack --tensors # every tensor and the block holding it
nvserve inspect model.gguf --metadata # every metadata key (also works on .nvpack)
inspect also estimates the time per token from the bytes read per pass, for NVMe Gen4,
NVMe Gen3 and SATA drives.
Pack versions¶
.nvpack version 2 (NVserve 0.0.3 and later) is needed for mixture-of-experts models.
Packs from older versions of dense models still load, so there is no need to reconvert.