Text LLM · Fine-grained Mixture-of-Experts
Self-hosting DBRX: what the 132B MoE actually costs in VRAM
The pay-per-token API is retired and the databricks/dbrx GitHub repo is gone. If you want DBRX today, running it yourself is effectively the only route. bf16 needs 264GB; IQ4_XS drops it to 70.1GB — one A100 80GB and you're live.
DBRX · self-hosted
DBRX is the open-weight model Databricks and the MosaicML team shipped in March 2024, built on a fine-grained MoE design: 132B total parameters with 36B active per token. It uses 16 experts and picks 4, where contemporaries Mixtral-8x7B and Grok-1 used 8 experts picking 2 — Databricks credits the resulting 65x more expert combinations for much of the quality gain. It was pretrained on 12T tokens across 3,072 NVIDIA H100s wired with 3.2Tbps InfiniBand over roughly three months. On benchmarks it posted 73.7% MMLU (5-shot, above GPT-3.5's 70.0% at the time), 70.1% HumanEval (0-shot), 66.9% GSM8k (5-shot) and 66.8% on the 30-plus-task Databricks Gauntlet, while beating Grok-1 at a fraction of its parameter count. Architecturally it is RoPE + GLU + GQA, 40 layers, 48 attention heads, 8 KV heads, the GPT-4 tiktoken vocabulary, and a 32K max context.
Search for DBRX now and you hit three walls. First, on 30 April 2025 Databricks retired DBRX Instruct from Foundation Model APIs pay-per-token, and retired the DBRX, Mistral and Mixtral families from Foundation Model Fine-tuning on the same day — the hosted path is closed. Second, the official databricks/dbrx GitHub repo that carried generate.py, dbrx-full-ft.yaml and dbrx-lora-ft.yaml no longer exists. Third, the original Hugging Face checkpoint was closed, and the transformers documentation now points its example code at transformers-community/dbrx-instruct, a re-upload maintained for compatibility. The good news: the model itself is alive. DbrxForCausalLM is still first-class in transformers, vLLM, llama.cpp and MLX support is intact, and the community GGUF quants are still up. DBRX simply went from a model you could call to a model you have to run.
Which makes GPU selection non-optional here. bf16 weights are 264GB, and the documented practical floor is at least 320GB of memory, distributable across GPUs. Community GGUF quants ladder all the way down: 139.9GB at Q8_0, 108.1GB at Q6_K, 80.0GB at Q4_K_M, 70.1GB at IQ4_XS, 48.0GB at Q2_K, 29.8GB at IQ1_M. Because DBRX's GQA uses only 8 KV heads across 40 layers, a full 32K KV cache costs barely 5GB — almost all your VRAM goes to weights, so "does it fit" is essentially the whole question. NexGPU runs 1,175 verified rentable nodes and 2,498 GPUs across 75 models in 51 countries and regions, up to 14 GPUs per node and 2,152GB max node VRAM, metered per second and priced per hour with no minimum, no setup fee and no quota request. Whether you want to stack 320GB or squeeze IQ4_XS onto a single 80GB card, it's a boot away.
01 —
DBRX variants and what each one costs in VRAM
One size — 132B-A36B — differing only by precision and provenance
| Version | Parameters | VRAM | Context | Notes |
|---|---|---|---|---|
| DBRX Instruct | 132B total / 36B active (16 experts, top-4) | bf16 ~264GB; documented floor ~320GB to actually run | 32K (32,768) | The instruction-tuned model — chat, RAG, code Q&A. Knowledge cutoff December 2023. |
| DBRX Base | 132B total / 36B active | bf16 ~264GB | 32K | Unaligned pretrained base for continued pretraining, custom SFT or paper reproduction. Not a chat model. |
| transformers-community/dbrx-instruct | 132B total / 36B active | bf16 ~264GB | 32K | The compatibility re-upload the transformers docs now use in their examples after the original checkpoint was closed. Loads straight into DbrxForCausalLM. |
| GGUF Q8_0 / Q6_K | 132B-A36B | Q8_0 139.9GB / Q6_K 108.1GB | 32K | Near-lossless tier. The right choice when you want to escape the 264GB bf16 bill without conceding quality. |
| GGUF Q4_K_M / IQ4_XS | 132B-A36B | Q4_K_M 80.0GB / IQ4_XS 70.1GB | 32K | The workhorse tier for self-hosting. IQ4_XS measures roughly 5.22-5.25 perplexity on wiki.test and fits every layer onto a single 80GB card. |
| GGUF Q2_K / IQ2_XS / IQ1_M | 132B-A36B | Q2_K 48.0GB / IQ2_XS 38.5GB / IQ1_M 29.8GB | 32K | Extreme compression. The author of the imatrix quants flags IQ3 and below as very sensitive and unreliable — smoke tests only, never quality evaluation. |
02 —
Which GPU to rent for DBRX
VRAM matched to actual weight size — no 'it'll probably squeeze in' recommendations
Single-GPU IQ4_XS (70.1GB) for private chat and evals
A100 PCIE 80GB ×1$0.824/GPU-hr
70.1GB of weights leaves nearly 10GB free — enough for a full 32K KV cache, and the only genuinely single-card DBRX configuration.
Q4_K_M (80.0GB) with more concurrency and long context
RTX A6000 48GB ×2$0.817/GPU-hr ($1.634/hr total)
96GB across two cards gives the 80GB checkpoint 16GB of headroom; llama.cpp splits by layer and the bill is an order of magnitude under a single H200.
Native bf16 served through vLLM tensor parallelism
A100 SXM4 80GB ×4$1.088/GPU-hr ($4.352/hr total)
Four cards hit exactly the 320GB documented floor, and NVLink keeps the MoE all-to-all traffic at TP=4 from becoming the bottleneck.
Low time-to-first-token, high-concurrency public serving
H100 SXM 80GB ×4$3.582/GPU-hr ($14.328/hr total)
Same 320GB, but the memory bandwidth and FP8 support actually feed the 36B active parameters during decode — for workloads with real QPS pressure.
03 —
Getting DBRX up from scratch
NexGPU ships 2,000+ prebuilt images; vLLM and PyTorch are already there
- 01
Boot, pick an image, pull the weights
Choose a GPU from the table above, select the vLLM or PyTorch prebuilt image, then get in over SSH or the web terminal. bf16 weights are 264GB, so enable hf_transfer. Note the original databricks/dbrx-instruct is a gated repo requiring an access request; the community re-upload saves you the round trip. Write the weights to storage once and reboots won't re-download them.
HF_HUB_ENABLE_HF_TRANSFER=1 hf download transformers-community/dbrx-instruct --local-dir /workspace/dbrx - 02
bf16 multi-GPU: serve an OpenAI-compatible endpoint with vLLM
TP=4 across four A100 SXM4 80GB. Two flags you must pass explicitly: --trust-remote-code, because DBRX's tokenizer wraps tiktoken, and --max-model-len 32768, because plenty of deployment paths default to a 4K window and you'll otherwise conclude the 32K claim is fiction. If you hit tokenizer errors, check your tiktoken version first — early vLLM builds pinned it to 0.6.0 specifically for DBRX.
python -m vllm.entrypoints.openai.api_server --model /workspace/dbrx --tensor-parallel-size 4 --max-model-len 32768 --gpu-memory-utilization 0.95 --trust-remote-code - 03
Single-GPU quantized: IQ4_XS through llama.cpp
The budget path. IQ4_XS at 70.1GB offloads all 40 layers onto one A100 PCIE 80GB with room left for KV. Max out -ngl, set -c to 32768, and the remaining VRAM covers the cache. DBRX support landed in llama.cpp via PR #6515, so use a recent build — an early-2024 binary won't know the architecture.
llama-server -m /workspace/dbrx-instruct-IQ4_XS.gguf -ngl 99 -c 32768 --host 0.0.0.0 --port 8080 - 04
Smoke test, then wire it into your stack
Both paths expose OpenAI-compatible endpoints, so swapping base_url is usually the whole integration. One thing worth writing down: the DBRX model card states it was trained predominantly on English and that non-English proficiency is untested — pilot any non-English workload on a small sample before sending it real traffic.
curl http://localhost:8000/v1/chat/completions -H 'Content-Type: application/json' -d '{"model":"/workspace/dbrx","messages":[{"role":"user","content":"Explain fine-grained MoE routing in one paragraph."}]}'
What this actually costs
Here's arithmetic you can audit. Option A: one A100 PCIE 80GB running IQ4_XS for a 2,000-prompt internal eval. Downloading and writing 70.1GB takes about 0.5 hr, llama.cpp load and warm-up 0.2 hr, the eval itself 3.3 hr — 4 hours total, so 4 x $0.824 = $3.296. Option B: native bf16, where 264GB of weights needs four A100 SXM4 80GB to reach 320GB: 4 x $1.088 = $4.352/hr, and an 8-hour team trial is 8 x $4.352 = $34.82. Option C: the same 320GB on four H100 SXM 80GB is 4 x $3.582 = $14.328/hr, or $114.62 for those 8 hours — genuinely faster, and you can decide whether that's worth 3.3x. Don't forget storage: 70.1GB of GGUF at the $0.414/GB-month median is 70.1 x 0.414 = about $29.02/month. Compute billing stops the instant the instance stops; storage keeps running until you destroy the volume. Egress at the $0.0081/GB median makes copying eval results home a rounding error.
04 —
FAQ
How much VRAM does DBRX actually need?
The official repos are gone — where do I get DBRX weights?
Can a single RTX 4090 24GB run DBRX?
Why does my DBRX only have 4K context when it's supposed to be 32K?
Can I use DBRX commercially? Anything in the license to watch?
In 2026, is DBRX still worth self-hosting?
Start building on NexGPU
Enterprise R&D team or solo developer — either way, your first job can be running in minutes.
Sign up to browse live network pricing. No payment method required.
