Local LLM Inference on a High-Memory Host: Running 100B+ Parameter Models
This article reports on running large parameter models locally on a high-memory unified-memory host. It explains why capacity planning must come before throughput tuning, how unified memory changes deployment feasibility and bottlenecks, and where draft-model acceleration helps or fails. It also covers reproducible benchmarking methods, quantization and context-length selection, and key engineering details, showing that a single offline machine can run quantized 100B+ models with long context and speculative decoding.
1. Why “Can It Run?” Comes Before “How Fast?”
When deploying large models locally, capacity is the first hurdle and performance is the second. Many teams do the opposite: they focus on tokens/s first, only to discover the model cannot be loaded at all. The correct order is to do the capacity math first, then tune throughput.
Capacity planning comes down to a simple inequality:
weights + KV cache + framework runtime overhead + acceleration components + OS and resident services ≤ available unified memory
Weight footprint is determined by parameter count and quantization bit width. Using a common rule of thumb, Q4-quantized weights are roughly “parameter count × 0.5 bytes,” plus alignment and metadata overhead. For a model in the 280B-parameter range, weights alone land around 130GB. That exceeds the VRAM of most consumer GPUs, but still leaves headroom on a machine with 192GB of unified memory.
KV cache is often underestimated. It grows roughly linearly with context length, and for long-document summarization or repository-level code Q&A, tens of gigabytes of cache are not unusual. So “the weights fit” and “long context runs stably” are two different conclusions.
2. Engineering Changes Brought by Unified Memory
In a traditional split architecture, memory and VRAM are separate pools, the model must fit entirely in VRAM, and the capacity ceiling is set by the GPU. A unified memory architecture merges them into a single addressable space shared by CPU and GPU, with three engineering implications:
- Deployment feasibility is determined by total system memory, not single-card VRAM;
- Explicit host-to-VRAM copies are eliminated, shortening the model loading path;
- Spare capacity can be converted directly into longer context, larger batches, and more parallel components.
The tradeoff is equally clear: memory bandwidth becomes the primary bottleneck, and CPU and GPU contend for the same bandwidth. These platforms therefore suit single-user or low-concurrency, very-long-context, offline batch workloads rather than horizontally scaling high-concurrency online services. For elastic scaling and multi-replica scheduling, the industry typically still turns to container platforms with elastic compute pools, positioning local inference as a complement for keeping data on-premises.
3. Draft Model Acceleration: Where Gains Come From and Where They Stop
The bottleneck of autoregressive decoding is token-by-token serialization. Draft models (speculative decoding approaches) let a small model guess several tokens ahead, then have the main model verify them in parallel in one pass. Accepted tokens are committed directly; rejected ones are rolled back and recomputed. The benefit depends on two things: the draft acceptance rate and the parallel efficiency of the verification stage.
In testing, a typical result was the main model running at about 17 tokens/s alone, rising to about 26 tokens/s with a draft model enabled, an improvement of roughly 53%. This ratio is not a universal constant; it is strongly task-dependent:
- Structured, template-based text (classical recitation, fixed-format output, code completion) has a high acceptance rate and clear speedup;
- Highly random creative writing and Q&A requiring extensive world knowledge see frequent draft rejections, with gains near zero or even negative;
- The draft model itself consumes memory and bandwidth, so it is not worth it when capacity is tight.
The recommendation is to treat the draft model as a toggleable optimization and run A/B comparisons with a fixed prompt set rather than enabling it by default.
# Pseudocode: draft model A/B benchmarkfor cfg in [baseline, with_draft]:metrics = run(prompt_set, cfg, warmup=2, repeat=3)report(metrics) # ttft, tokens_per_sec, accepted_draft_ratio
4. Benchmarking: Making Data Reproducible
The value of benchmarking lies in comparability. Fix the following variables and change only one factor at a time:
- The same prompt set, covering long output, short Q&A, and code;
- Model files downloaded locally in advance to avoid network variance polluting load time;
- Timing after several warmup rounds to exclude first load and cold cache;
- Record three metrics separately: load time, time to first token (TTFT), and sustained generation speed.
Reference figures: two quantized models of different sizes both had TTFT in the 0.4–0.5 second range, with sustained output above 20 tokens/s and 30 tokens/s respectively. This shows that with sufficient capacity, the platform’s responsiveness is enough for interactive use, while sustained throughput determines wait time for long-form generation.
A minimal metrics table structure:
| Configuration | Memory Usage | Load Time | TTFT | Generation Speed |
|---|---|---|---|---|
| Main model | ~129GB | record | record | record |
| Main model + draft | ~140GB | record | record | record |
5. Choosing Quantization and Context Length
Lower quantization is not always better. Q4 is already close to original precision on most tasks and is the first tradeoff point between capacity and quality. When memory is tight, consider a mixed strategy that keeps higher precision for attention and embedding layers while quantizing feed-forward layers more aggressively. Set context length according to business P95 requirements rather than maxing it out everywhere, since both cache usage and first-token latency rise with it.
6. Often-Overlooked Engineering Details
- Performance modes (quiet/balanced/performance) significantly change sustained throughput and noise, so benchmarks must state the mode;
- Cooling and long-duration full-load stability need separate stress testing; short benchmarks do not reflect real experience;
- When serving externally, put model files in object storage, route inference logs to a logging service, and connect metrics to monitoring and alerting to form a complete operations loop;
- Multiple network ports and rich peripheral interfaces are friendlier to local AI devices for fixed deployment and LAN sharing, but network throughput needs independent validation.
7. Conclusion
The real value of a high-memory unified-architecture host is not a benchmark number, but making it possible to fit a very large quantized model, long context, and draft acceleration into a single offline device at the same time. For enterprises and developers whose data cannot leave their premises, this is a practical path; bringing it into a unified scheduling and elastic scaling system requires additional platform engineering.
