Quick start¶
This walks through one model from download to an OpenAI-compatible server in about ten minutes, plus the download time.
1. Get a model¶
NVserve runs GGUF models, the format llama.cpp uses and most model repositories on Hugging Face publish. Pick a Q4_K_M file of a supported model. For a first try, a small one is quickest:
| Model | Download | Size | Good for |
|---|---|---|---|
| Llama-3.2-1B-Instruct | bartowski/Llama-3.2-1B-Instruct-GGUF | 0.8 GB | trying things out |
| Qwen3-30B-A3B | Qwen/Qwen3-30B-A3B-GGUF | 18.6 GB | a strong model at 2–3 tokens/s |
| Llama-3.1-70B-Instruct | bartowski/Meta-Llama-3.1-70B-Instruct-GGUF | 42.5 GB | the largest dense models |
Download the Q4_K_M file from the model page, or with the Hugging Face CLI:
2. Convert it¶
NVserve reads models in its own .nvpack layout, which groups each layer's weights into one
block that can be streamed with a single read. Converting copies the weights without
changing them and takes about a minute for 20 GB:
It prints the model's shape and how much it will read per token. Optionally, check the pack
against the original. After that you can delete the .gguf:
3. Chat with it¶
nvserve run qwen3-30b-a3b.nvpack --chat --no-think --mem-limit 4G \
--prompt "Why is the sky blue? Answer in two sentences."
What you will see:
-
The memory plan.
--mem-limit 4Gis turned into a budget, and NVserve refuses to start if the model cannot fit. -
The answer, streamed as it is generated.
- A summary: seconds per token, how busy the disk was, and peak memory.
--no-think makes Qwen3 answer directly instead of reasoning first. Drop it to see the
reasoning, which takes many more tokens.
4. Serve it¶
Any OpenAI client can now use http://127.0.0.1:8080/v1:
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8080/v1", api_key="unused")
stream = client.chat.completions.create(
model="qwen3-30b-a3b",
messages=[{"role": "user", "content": "Name three planets."}],
stream=True,
extra_body={"chat_template_kwargs": {"enable_thinking": False}},
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="", flush=True)
The model id is the file name without .nvpack, unless you set --model-name.
Where next¶
- Memory and performance: choosing
--mem-limit, and what speed to expect from your disk. - Speculative decoding: 2–3× faster dense models with a small draft model.
- The server: streaming, stop strings, reasoning output and concurrent requests.