Local Deployment of Very Large Models: Hardware Selection and Cost Estimation
This guide explains how to plan on-premises deployment of very large language models without treating “the weights load” as “the system is usable.” It covers three deployment tiers, weight-size estimates, quantization quality, memory beyond the model file, storage offloading, procurement and operating cost, and a test-and-acceptance sequence.
1. Define the deployment goal before estimating cost
The most common mistake in local deployment of very large language models is treating “the model can be loaded” as “the model is usable.”
If weights can be reached through memory mapping, layer offloading, or distribution across devices, that only shows that a run path exists. What users actually care about is how long they wait for the first token, whether later output stays smooth, and whether concurrent users have to queue.
Split deployment requirements into three tiers.
| Deployment tier | Core goal | Main constraints |
|---|---|---|
| Tier 1: Able to run | Load the model and produce valid answers, without a strict speed target | Weight capacity, runtime memory, storage, software compatibility |
| Tier 2: Usable by one person | Sustained generation of 25 tokens per second for a single request | Device bandwidth, compute, where weights reside, context length |
| Tier 3: Usable by multiple people | Ten requests generating at the same time, each at 25 tokens per second | Aggregate throughput, cache capacity, scheduling, device interconnect, load stability |
A token is the basic unit the model uses to process text. It is not the same as a character, word, or syllable. The same passage can have a different token count under different tokenizers, so “25 tokens per second” must not be read as “25 characters per second.”
The original requirement also left the minimum quantization level incomplete. For a formal selection, state whether you require “weights quantized to no fewer than 4 bits” or “quality no lower than a defined acceptance standard.” Those constraints are not interchangeable. To give the cost analysis a clear boundary, the rest of this article uses “no fewer than 4 bits of weight quantization” as an example constraint, not as a default that every workload should use.
2. Full precision and low-bit quantization need different hardware scales
2.1 Estimate weight volume from parameter count
If a model has P parameters and each parameter is stored with b bits, theoretical weight volume is approximately:
Weight volume ≈ P × b ÷ 8
For a hypothetical trillion-parameter model:
| Weight precision | Theoretical weight volume, decimal |
|---|---|
| 16-bit | About 2 TB |
| 8-bit | About 1 TB |
| 4-bit | About 500 GB |
| 2-bit | About 250 GB |
| 1-bit | About 125 GB |
These figures are mathematical estimates, not measured deployment data for any specific model.
Real quantized files may also contain scale factors, grouping metadata, layers left at higher precision, and other metadata, so average bit width does not yield an exact file size. With mixed precision, some important weights stay at higher precision, and total size exceeds the theoretical result of “every parameter at the lowest bit width.”
A so-called “1-bit version” does not necessarily mean every weight is stored in one bit. A larger quantized file does not, by itself, mean the quantization is inefficient.
2.2 Do not size memory for a sparse model from active parameters alone
Some very large models use a sparse mixture-of-experts design: each token activates only some experts. That reduces compute per step, but it does not mean you only need to store the parameters that happen to be active.
Different inputs can route to different experts, so the full weights still have to live in some accessible storage tier. If expert weights do not stay resident in high-bandwidth memory, you can see dynamic loads, cache misses, and data movement.
Hardware selection therefore has to consider all of the following:
- Total parameter count, which sets the storage scale of the full weights.
- Active parameters per step, which drive per-step compute and weight access.
- Expert routing distribution, which affects cache behavior and load balance.
- Where expert weights are placed, which decides whether you need cross-device communication or reads from storage.
Inferring that an ordinary workstation will run smoothly just because “few parameters are active” is not sound.
3. Low-bit quantization lowers the bar, but quality is not free
Quantization represents original weights with fewer distinct values. It cuts capacity and data-movement needs, and it also introduces representation error.
The value of dynamic or mixed-precision quantization is that precision can follow sensitivity: keep higher precision where it strongly affects output quality, and use lower precision where redundancy is high or error is more tolerable.
Using a more elaborate quantization method does not, by itself, mean quality will meet the business requirement.
3.1 Do not rely on perplexity alone
Perplexity is a common language-modeling statistic, but it depends on the test corpus, tokenizer, and context settings. Numbers from different test conditions are not directly comparable.
Two versions can have similar perplexity on general text and still differ on:
- Code generation and bug fixing
- Multi-step mathematical reasoning
- Information extraction from long text
- Strictly formatted output
- Distinguishing technical terms
- Generating tool-call arguments
Accuracy or perplexity tables that do not document the test set should not be used as a purchasing basis.
3.2 Minimum bit width is a technical constraint; business quality is the acceptance target
If the workload explicitly requires weight quantization of no fewer than 4 bits, a lower-bit setup does not meet the requirement even if it runs.
A more reliable process is to fix the lowest allowed precision first, then validate task success rate, output-format stability, critical factual error rate, and long-context behavior on representative business samples. Tasks with a known answer can be scored automatically. Open-ended tasks need a shared rubric and human review.
4. Model file size is not the actual memory requirement
Memory needed at inference time includes at least:
Total memory need = resident weights + key-value cache + runtime buffers + framework overhead + safety margin
4.1 Key-value cache grows with context and concurrency
Autoregressive generation usually caches keys and values for the existing context so each step does not recompute the full history.
Under common attention layouts, cache size depends on layer count, number of key-value heads, head dimension, cache precision, context length, and the number of active sequences. Different architectures use different formulas and footprints.
One important conclusion: weights can be shared across requests, but each request usually needs its own cache.
A short single-user chat that runs does not imply that ten long conversations will run. If context length doubles and concurrency rises by a factor of ten, cache demand can grow to roughly twenty times the original, still depending on architecture and cache management.
4.2 Do not simply add every capacity number together
System RAM, accelerator memory, and unified memory differ in access path, bandwidth, allocation limits, and runtime support.
Host memory and device memory have a transfer cost. Unified memory does not mean every byte can be used by the inference program at no cost. The sum of memory across devices only matters if the runtime can split the model in a suitable way.
Enough capacity only answers “does it fit.” Bandwidth, communication, and compute decide “does it run fast.”
5. Disk offload can make a model “run,” but it rarely stays smooth
When memory is short, some weights can stay on solid-state storage and be read on demand or through memory mapping.
That is a valid capacity fallback, and it is usually not a high-throughput design.
A simplified view of the bottleneck is:
Generation-rate ceiling when storage-bound ≈ effective read bandwidth ÷ weight data read from storage per generated token
Suppose each generated token requires an extra 10 GB of weights to be read, and sustained read bandwidth is 5 GB/s. That read alone takes at least about 2 seconds. This example only shows the method; it is not a measurement of any device or model.
Real speed also depends on random access, page-cache hit rate, filesystem overhead, and how well compute overlaps the reads. Sparse models touch different weights each step, so the full model size is not the read volume per token.
Storage offload is useful if the goal is only to check that the model can execute. If the goal is 25 generated tokens per second, keep critical weights in high-bandwidth memory and confirm performance with measurements.
6. How to configure the three deployment tiers
Tier 1: Able to run only
This tier is about capacity and compatibility.
A practical approach:
- Use a quantized build that meets the quality bar.
- Provide storage for weights, conversion temporaries, and caches.
- Add as much memory as you can so runtime reads from storage stay rare.
- Start validation with a short context and a single request.
- Accept a long time to the first token and a low generation rate.
If the final quantized file is about 500 GB, exactly 500 GB of free disk is not enough. Also allow for the download, checksums, version backups, temporary files, and other runtime data. How much to reserve depends on the deployment process, not on a fixed multiplier.
This tier fits study, offline checks, and infrequent jobs. It is not a fit for a service with a stated response-time commitment.
Tier 2: One user at 25 tokens per second
This tier moves from capacity design to performance design.
Check in particular:
- Whether weights can stay resident in a fast enough memory tier.
- Whether the inference stack supports the chosen quantization format and device architecture.
- Whether the actual compute includes expensive dequantization or data conversion.
- Whether multi-device splits add too much communication.
- Whether speed and cache use remain acceptable at long context.
When weight access is the main bottleneck, a rough screen is:
Required effective bandwidth ≈ weight data actually touched per step × target token rate
That is only a first filter. It does not replace a performance test. Compute-heavy operators, attention, and device communication can each become the new limit.
Tier 3: Ten concurrent users, each at 25 tokens per second
While ten requests are all in the generation phase, the system needs aggregate throughput of about 250 generated tokens per second.
Reaching 250 in total is not sufficient. The system can finish some requests quickly and leave others waiting, so average throughput looks fine while the user experience does not.
Multi-user deployment also has to cover:
- Continuous batching and request scheduling
- Cache management across many sequences
- Fairness between long and short requests
- A maximum concurrency limit and a queue policy
- Limits on context length and output length
- Error recovery under heavy load
- Per-request speed distribution and tail latency
Batching reuses weight reads, so ten-way concurrency does not automatically need ten times the hardware. Cache, compute, and communication costs still rise, so a machine that meets the single-user target cannot be assumed to serve ten users.
7. What it will cost: use a cost model instead of a guess
Until model scale, minimum quantization, context length, and target devices are fixed, a single purchase figure is not reliable. Hardware prices also vary by region, channel, warranty, and supply.
A more useful method is to calculate acquisition cost and ongoing operating cost separately.
7.1 Acquisition cost
Acquisition cost = compute devices + memory + storage + host platform + interconnect + power and cooling + delivery
The host platform includes the processor, motherboard, chassis, and similar supporting parts. A multi-machine deployment may need extra networking and cabling. Do not price accelerators alone.
A budget table can look like this:
| Cost item | Quantity basis |
|---|---|
| Compute devices | Measured throughput, capacity per device, and split method |
| Memory | Resident weights, cache, and runtime peak |
| Storage | Weight copies, temporary files, and log retention |
| Interconnect | Traffic between devices and latency needs |
| Power and cooling | Sustained power, peak power, and the deployment environment |
Get quotes for each line, then multiply quantity by unit price. That is an executable budget.
7.2 Operating cost
Periodic operating cost = electricity + operations + maintenance + software adaptation
Electricity can be estimated as:
Electricity cost = average input power × hours run × local price per energy unit
As a demonstration only: if average input power is 2 kW, the system runs 8 hours a day, and energy is priced at 0.8 per kWh, then over 30 days the compute electricity is about 384 in the same currency units. That figure excludes extra cooling, and it is not a real power draw or price commitment for any server class.
7.3 Compare options with total cost of ownership
Total cost of ownership = acquisition spend + operating spend over the use period + maintenance and adaptation − residual value
If the machine sits idle most of the time, cost per task after purchase can be high. If the model runs under sustained heavy load, utilization and operational efficiency become the main variables.
“Local is always cheaper than on-demand compute” is not a valid claim. Compare options at the same quality, the same load, and the same service target.
8. Test and acceptance before you commit
Follow this order so you do not buy hardware and then discover the deployment goal cannot be met.
Step 1: Confirm the model and runtime conditions
Check license scope, weight integrity, support for the quantization format, device compatibility, and model-splitting capability. Being able to convert weights does not mean the converted build will be inferred correctly or efficiently.
Step 2: Establish a quality baseline
Test candidate quantized builds on business samples and decide whether the effect of low-bit quantization is acceptable. If quality fails, change precision or model choice before you optimize speed.
Step 3: Measure single-request performance
Record separately:
- Model load time
- Time to first token
- Prefill speed
- Sustained generation speed
- Peak system memory and device memory
- How those change with context length
Prefill processes the input; decode generates output step by step. Fast input processing does not imply fast sustained generation. Measure them separately.
Step 4: Run a real concurrency test
A ten-way test must keep ten requests active at the same time, not run ten requests one after another.
Measure generation speed per request, and check mixed long and short contexts. For “25 tokens per second per user,” the acceptance rule should also state the allowed variation, how long the test runs, and whether the initial load phase is excluded.
Step 5: Validate under sustained load
A short speed test will not catch thermal throttling, memory leaks, cache fragmentation, or running out of storage. Run a sustained test and watch device utilization, temperature, power, error rate, and request latency.
9. Conclusion: lock quality and performance bounds, then set the budget
Local deployment of a very large model is a joint optimization of capacity, bandwidth, compute, quality, and cost.
If the only requirement is “able to run,” quantization and storage offload can lower the bar, at a clear cost in speed. If one user must see 25 generated tokens per second, validate weight residency, bandwidth, and the inference implementation. If ten users must hit that rate at the same time, you also have to solve batching, cache management, communication, and fairness.
The safest path is: set the minimum precision and the business quality bar, fix context and concurrency, complete a small-scale measurement, then budget from the real device count and ongoing operating spend.
Loading the model is the start of deployment. Meeting the target continuously under real load is the basis for purchase and go-live.
