Cost Breakdown of Self-Hosting Ultra-Large-Scale Models
A practical look at why VRAM capacity, not compute, is the first constraint for self-hosting trillion-parameter models, covering hardware starting points for three usage scenarios, the four components of total cost of ownership, and the load testing and fallback planning required before going live.
1. Start With the Right Premise: Compute Is Not the Bottleneck
When people evaluate self-hosting an ultra-large-scale model for the first time, their instinct is to ask whether their GPUs have enough compute. That instinct is wrong. For a model with trillions of parameters and roughly 1.4TB of weights, the first real gate is whether VRAM capacity can hold the weights at all.
What does 1.4TB mean in practice? A single node of 8 high-end accelerators (around 192GB of VRAM per card) gives a theoretical pool of about 1.5TB. After subtracting KV Cache, framework runtime overhead, and communication buffers, the remaining headroom is very tight. This means:
- You cannot scale down to two or three cards just because you are the only user;
- Weight loading, sharding, and the parallelism strategy (tensor parallelism plus expert parallelism) must be designed before the machine boots;
- Any idea of “starting small to test the waters” simply does not hold for this class of model.
So the first step in cost evaluation is not a per-token price but the minimum viable hardware unit.
2. Hardware Starting Points for Three Typical Scenarios
Scenario 1: Single user, 25 tokens/s target
The hardware starting point is still an 8-card high-end accelerator node (the 8×B300 / MI350X class). The reason is the one above: it is not that compute falls short, but that the weights have to fit first.
To be honest about it: whether 8 cards can sustain 25 tokens/s depends on the specific implementation and context length, and you cannot guarantee it from parameter count alone. Industry experience puts single-stream autoregressive decoding of a large model in the range of tens of tokens per second, so 25 tokens/s is a reasonable target, but you must load test at your real context length before going live.
Scenario 2: 10 concurrent users, 25 tokens/s each
This means the system must reliably deliver at least 250 tokens/s of aggregate output throughput.
Interestingly, the VRAM configuration may not need to grow beyond the first scenario. By common estimates, one 8-card node can hold roughly 40 concurrent requests at moderate context lengths; if the context is not in the million-token range, the theoretical number of resident requests is higher still. So 10 concurrent sessions on their own do not force you to buy a second server.
The real question is whether all 10 streams can each maintain 25 tokens/s while decoding simultaneously. That is a throughput and scheduling performance metric, and it too must be measured rather than inferred from VRAM capacity.
Scenario 3: Long context combined with high concurrency
When context length stretches to hundreds of thousands or even a million tokens, KV Cache consumes the remaining VRAM quickly and the number of resident requests drops by an order of magnitude. The cost increase here comes mainly from more VRAM or more nodes, not from compute.
3. Cost Structure: Where the Money Actually Goes
The total cost of ownership (TCO) of self-hosting is usually underestimated. It has four components:
- Hardware purchase or rental: The accelerator node is the largest item, and an 8-card machine typically also needs high-speed interconnect, large system memory, and local NVMe.
- Networking and storage: In multi-node setups, inter-node bandwidth directly determines parallel efficiency; model weights and datasets need high-throughput storage.
- Power and cooling: A single node usually draws several kilowatts, and a facility that does not meet requirements adds retrofit costs.
- Operations staff: Inference framework tuning, quantization approach selection, and failure recovery all need dedicated people.
A practical rule of thumb: depreciate the hardware over 3 years, add electricity and labor, convert the result into a cost per million tokens, and compare it against pay-as-you-go cloud API calls. Self-hosting only pays off when utilization stays above a certain threshold for the long term.
4. Three Things to Do Before Going Live
1. A VRAM budget sheet
Estimate with explicit logic rather than guesswork:
# Pseudocode: rough VRAM budgetweight_bytes = 1.4 * 1024**4 # weight sizekv_per_token = layers * 2 * kv_heads * head_dim * dtype_byteskv_total = kv_per_token * context_len * max_concurrencyrequired = weight_bytes + kv_total + runtime_overheadprint(required / 1024**3, "GB")
Only by substituting your real business parameters for context_len and max_concurrency can you reach a credible conclusion.
2. Layered load testing
- Single stream: fix the context, measure time to first token and steady-state output rate;
- Concurrency: ramp from 2 streams up to the target concurrency and watch whether per-stream rate gets diluted;
- Long context: separately verify the KV Cache growth curve and whether swapping is triggered.
3. Scheduling and fallback strategy
When concurrency exceeds resident capacity, the system needs queuing, rate limiting, or a reduced maximum context. A deployment without a fallback plan will collapse outright at peak traffic.
5. Conclusion
The cost of self-hosting this class of model is essentially the product of three things: the VRAM gate, scheduling efficiency, and validation through measurement. An 8-card node is a reasonable starting point, 25 tokens/s is a reasonable target, and 250 tokens/s of aggregate throughput has a chance of being reached within a single node, but every number must be backed by your own load tests. If depreciation and operations costs for a self-built cluster turn out too high, on-demand cloud compute and containerized inference options such as those from Baidu AI Cloud are also worth evaluating, trading elasticity for certainty.
