Skip to content

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:

huggingface-cli download Qwen/Qwen3-30B-A3B-GGUF Qwen3-30B-A3B-Q4_K_M.gguf --local-dir .

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:

nvserve convert Qwen3-30B-A3B-Q4_K_M.gguf qwen3-30b-a3b.nvpack

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:

nvserve verify qwen3-30b-a3b.nvpack --against Qwen3-30B-A3B-Q4_K_M.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:

  1. The memory plan. --mem-limit 4G is turned into a budget, and NVserve refuses to start if the model cannot fit.

    [memory plan]
      runtime                             192.0 MiB
      weights (2 slots, 8 expert reads + 8 ahead)  533.5 MiB
      activations (256 rows)              264.6 MiB
      routers (expert prediction)          48.4 MiB
      KV cache (RAM, f16, 1 × 2048 tokens)  200.0 MiB
      expert cache                          2.1 GiB
      total                                 3.3 GiB of 4.0 GiB
    
  2. The answer, streamed as it is generated.

  3. 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

nvserve serve qwen3-30b-a3b.nvpack --mem-limit 4G --port 8080

Any OpenAI client can now use http://127.0.0.1:8080/v1:

curl http://127.0.0.1:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model": "qwen3-30b-a3b",
       "messages": [{"role": "user", "content": "Name three planets."}],
       "chat_template_kwargs": {"enable_thinking": false}}'
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