Guide · Updated October 2026
Build your own on‑prem AI
Running open models on your own hardware keeps private data in the building and makes steady, high-volume work predictable in cost. It also makes you responsible for memory, serving and upkeep. This guide covers the decisions in order: whether to do it, what to buy, which model, how to serve it, and how to pair it with the cloud.
1. Decide whether on-prem is worth it
It tends to pay off when data can't leave your network, or the same narrow tasks run at steady volume all day (classification, extraction, summaries, internal search).
It tends not to when usage is spiky, the tasks need the strongest reasoning available, or nobody on staff can keep a GPU server patched and running. Count those people in the cost.
Before buying anything, run an open model on a workstation with Ollama against 20 to 50 of your real tasks. If it doesn't pass there, bigger hardware won't fix it.
2. Size the hardware by memory, not speed
The model's weights, plus the working memory for every request in flight, must fit in GPU memory. Memory is usually the first limit you hit.
| System | Chip | Memory | Rough fit |
|---|---|---|---|
| DGX Spark | GB10 Grace Blackwell | 128 GB unified | One person or a small team; models up to roughly 100B parameters at low precision |
| DGX Station | GB300 Grace Blackwell Ultra | 748 GB coherent (252 GB HBM3e GPU + 496 GB CPU) | A team or department; mid-size mixture-of-experts models |
| DGX B200 | 8 × Blackwell GPUs | 1,440 GB GPU | Many concurrent users; large models |
| DGX B300 | 8 × Blackwell Ultra GPUs | 2.1 TB GPU | Organization-wide serving; the largest open models need more than one |
Specs from nvidia.com, October 2026. NVIDIA publishes no prices on those pages. The one published list price we found is the DGX Spark Founders Edition at $4,699 (NVIDIA developer forum, February 2026). Get quotes for the rest. “Rough fit” is our guidance, not NVIDIA's.
3. Do the memory math
Weights
Parameters × bytes per parameter: 2 bytes at FP16 or BF16, 1 at FP8, about 0.5 at INT4. A 27B model is about 54 GB at BF16, 28 GB at FP8 and 14 GB at INT4.
Working memory per request (the KV cache)
Per token: 2 × attention layers × KV heads × head dimension × bytes. Use the model's KV heads, which are often far fewer than its query heads. Multiply by context length and by the number of requests running at once.
Example: in our reading of the published Qwen3.8-27B architecture, only 16 of its 64 layers use full attention, with 4 KV heads of dimension 256. At BF16 that works out to about 64 KiB per token, or about 16 GiB for one request at the full 262K-token context. Ten users at full context would need about 160 GiB for working memory alone. Capping context at what each task actually needs is the cheapest capacity you can buy.
This is arithmetic from the model card, not a benchmark. Measure on your hardware.
4. Pick the model, and read its license
Qwen3.8, released August 2026, is the current open-weight Qwen family. All three models handle 262,144 tokens natively, and FP8 versions are published.
- Qwen3.8-27B: dense, reads text and images, Apache-2.0. About 28 GB at FP8, so it fits a DGX Spark with room for working memory. The usual starting point.
- Qwen3.8-Flash-Next: mixture-of-experts, 125B total with 6B active per token. About 180 GB at FP8, so it fits the DGX Station's GPU memory. Custom “Qwen Community License 1.0.”
- Qwen3.8-2.4T-A95B: mixture-of-experts, 2.4 trillion total with 95B active. About 2.45 TB at FP8, more than one DGX B300 holds, so it needs INT4, several nodes or a rack-scale system. Custom “Qwen3.8-Max License.”
License fine print for the two larger models: they require showing the model name in your product above 100 million monthly users or US$20 million monthly revenue, and a separate license if you sell “Model as a Service” or an “AI Work Assistant.” Internal use is explicitly allowed. Have counsel read the LICENSE file before you build a product on them.
5. Serve it: Ollama for one person, vLLM for many
Ollama is the quickest way to run a model on one machine. Its default is one request at a time per model (OLLAMA_NUM_PARALLEL=1), which suits a single user. vLLM is built for many concurrent users, with paged working memory and continuous batching, and serves an OpenAI-compatible API your existing tools can call.
A starting point for vLLM (check the model's vLLM recipe before production):
vllm serve Qwen/Qwen3.8-27B \ --max-model-len 65536 \ --gpu-memory-utilization 0.92 \ -tp 1
- --max-model-len caps context per request. Set it to what your tasks need, not the model's maximum.
- --gpu-memory-utilization is the share of GPU memory vLLM may take. The current default is 0.92.
- -tp splits the model across that many GPUs (tensor parallelism).
- Prefix caching is on by default in current vLLM for supported models. Shared instructions are computed once and reused, so keep them identical across requests to get the benefit.
6. Pair it with cloud models
The practical setup is hybrid. Put one gateway, such as LiteLLM, in front of both the on-prem model and the cloud models. Send private and high-volume work to the on-prem model, and route the hardest reasoning to a frontier cloud model under your data rules. Every application calls one endpoint, and you can move a workflow between the two by changing one routing rule, after its test set passes.
Sources
- NVIDIA DGX Spark
- NVIDIA DGX Station
- NVIDIA DGX B200
- NVIDIA DGX B300
- NVIDIA developer forum: DGX Spark price change (Feb 2026)
- Qwen3.8 on GitHub
- Qwen models on Hugging Face
- vLLM recipe: Qwen3.8-27B
- vLLM documentation
- Ollama FAQ (parallel requests)
- Ainslie et al., GQA (2023), on KV heads
Checked October 12, 2026. Hardware, model versions and defaults change quickly; re-check before buying.