Building a Local LLM Inference Cluster with Used Data Center Accelerators
A 12-accelerator system built with approximately $9,450 in hardware demonstrates how used data center equipment, 4-bit quantization, and combined tensor and pipeline parallelism can support local inference for a large mixture-of-experts model. This article examines the hardware layout, reported performance, concurrency trade-offs, and deployment requirements, including power, cooling, software compatibility, and stability testing.
A legal professional built a local AI inference server using 12 used data center accelerators at a reported hardware cost of approximately $9,450. Running a large mixture-of-experts (MoE) model with low-bit quantization, the system reportedly reached a peak generation speed of 184 tokens per second on certain coding tasks and more than 400 tokens per second in aggregate across concurrent requests.
The significance goes beyond running a large model on old hardware. This build illustrates an alternative to purchasing an expensive, high-end system: distributing the model across existing accelerators through memory sharding, tensor parallelism, pipeline parallelism, and quantization.
1. Hardware: Memory Capacity Matters More Than Per-Card Compute
The system uses 12 data center accelerators, each with 32 GB of device memory, for a total of 384 GB. At approximately $9,450 in hardware costs, its primary attraction for individual developers, researchers, and small teams running local models over extended periods is memory capacity.
During LLM inference, device memory generally needs to accommodate:
- Model weights.
- Activations and intermediate computation results.
- The attention key-value (KV) cache.
- Temporary buffers for parallel communication and scheduling.
- Runtime components, quantization tables, and memory-management structures.
Low-bit quantization substantially reduces weight storage, but KV-cache requirements increase with context length. For extremely long contexts containing hundreds of thousands of tokens, the cache can become a greater source of memory pressure than the weights themselves.
A multi-accelerator system therefore provides more than additional compute. It also supplies aggregate memory capacity that a distributed inference runtime can allocate across devices. That capacity still depends on explicit model partitioning and communication; it should not be confused with a single, automatically shared memory pool.
Used data center accelerators also come with practical constraints. Their power consumption, cooling requirements, noise, and host compatibility may make them unsuitable for an ordinary office. Some use server-specific interconnects or form factors that cannot be installed directly in a conventional motherboard. Fans, power supplies, interconnect cables, and long-term reliability also require separate assessment.
2. Parallelism: Three Pipeline Stages with Four-Way Tensor Parallelism
The cluster combines three pipeline stages with four-way tensor parallelism within each stage:
Stage 1: Card 1 Card 2 Card 3 Card 4|vStage 2: Card 5 Card 6 Card 7 Card 8|vStage 3: Card 9 Card 10 Card 11 Card 12
Tensor parallelism splits matrix operations within the same network layer across multiple devices. A large matrix can, for example, be partitioned by rows or columns, with each accelerator computing a portion of the result. Inter-device communication then combines the necessary outputs.
Pipeline parallelism assigns different model layers to different stages. Input passes through those stages sequentially, with each stage computing its assigned layers and forwarding intermediate results to the next.
Together, the two approaches address different constraints:
- Tensor parallelism distributes a stage’s computation and memory requirements across several devices.
- Pipeline parallelism allows additional devices to hold and execute different portions of the complete model.
However, adding devices does not produce a proportional performance increase. Multi-accelerator performance depends on:
- Interconnect bandwidth.
- Communication latency.
- Compute balance between stages.
- Idle time caused by pipeline bubbles.
- The scheduler’s ability to keep the pipeline supplied with requests.
- Cross-device data transfers introduced by expert routing.
If one pipeline stage takes substantially longer than the others, it limits overall inference speed. Model partitioning should therefore account for layer count, parameter distribution, and expert placement rather than simply assigning an equal number of layers to every stage.
3. Model Compression: Why 4-Bit Quantization Is Essential
The system runs its model with 4-bit quantization. Quantization represents weights—and, in some approaches, selected intermediate data—with fewer bits, reducing memory use and memory-bandwidth pressure.
Common weight representations include:
- 16-bit floating point: Higher numerical precision, but substantial memory requirements.
- 8-bit integer or floating point: A compromise between precision and resource use.
- 4-bit representations: Much lower weight-storage requirements, with greater dependence on quantization methods, scaling factors, and hardware support.
For an MoE model, experts can also be distributed across devices. The source material describes each compressed expert as occupying approximately 15,360 storage units, but does not clearly define those units. That figure should therefore not be treated as a verified parameter count or memory size.
Multiple accelerators can hold different expert shards. During inference, the routing mechanism activates only a small subset of experts for a given input, so computation is generally lower than it would be if every parameter were active in a dense model of comparable total size.
Quantization is not simply a matter of rounding floating-point values into a smaller data type. High-quality methods may involve:
- Group-wise scaling.
- Outlier handling.
- Different quantization strategies for different layers.
- Joint calibration of weights and activations.
- Retaining higher precision in sensitive components, such as attention or output layers.
The resulting speed and model quality depend on the quantization method, inference kernels, and hardware integration. The same weight files can deliver noticeably different performance and accuracy across runtime environments.
4. Understanding the Performance Results
The reported single-request results vary by context length and workload:
| Context length | Reported cold-start time to first token | Prefill throughput | Code generation | Legal text | General text |
|---|---|---|---|---|---|
| 1K | 0.7 s | 1,567 tokens/s | 184 tokens/s | 102 tokens/s | 86 tokens/s |
| 8K | 2.5 s | 3,267 tokens/s | 176 tokens/s | 93 tokens/s | 90 tokens/s |
| 32K | 7.3 s | 4,478 tokens/s | 176 tokens/s | 92 tokens/s | 95 tokens/s |
These measurements describe different parts of the inference process and should not be used interchangeably.
Time to First Token
Time to first token (TTFT) measures how long a user waits after submitting a request before the first output token appears. Depending on the test conditions, it can include scheduling delays, prompt processing, and model-loading overhead.
The source labels these measurements as cold-start latency, but does not establish exactly which initialization steps were included.
Reported TTFT increased from 0.7 seconds at a 1K context to 7.3 seconds at 32K. This highlights the additional processing cost of long documents. For legal research, contract analysis, and lengthy report summaries, the delay before generation begins is an important part of the user experience—not just the speed of subsequent output.
Prefill Throughput
During prefill, the model processes the input context and computes the attention state needed for generation.
Reported prefill throughput increased from 1,567 tokens per second at 1K context to 4,478 tokens per second at 32K. One possible explanation is that longer inputs make better use of matrix-computation resources.
Higher throughput does not mean a longer prompt finishes sooner. Throughput measures the number of input tokens processed per second; total processing time still depends on the number of input tokens. A 32K context can therefore achieve higher throughput while taking substantially longer to process.
Decode Speed
Decoding generates output one token at a time. The system reportedly achieved:
- Up to 184 tokens per second for code generation.
- Approximately 92–102 tokens per second for legal text.
- Approximately 86–95 tokens per second for general text.
Possible contributors to these differences include output structure, expert routing, cache behavior, and generation length. Code often follows regular structural patterns, while legal text can contain complex sentences, citations, and formatting. However, the available results do not isolate the cause of the performance differences.
5. Concurrency: Aggregate Throughput Versus Individual Response Speed
With three coding requests running simultaneously, the cluster reportedly delivered an aggregate generation rate of 404–443 tokens per second. This indicates that the system can serve multiple requests concurrently, but aggregate throughput is not the same as per-request speed.
The distinction matters:
- Single-request speed describes the experience of one user.
- Aggregate throughput describes how much output the system produces across simultaneous requests.
- As concurrency increases, each request generally receives a smaller share of available resources.
- Without efficient batching, additional requests can increase scheduling overhead and memory fragmentation.
The original test also notes that the system was not using a specialized engine optimized for large-scale batched decoding. Its results are therefore more relevant to personal local use, small-team internal services, and dedicated privacy-sensitive workloads than to high-volume production serving.
Potential ways to improve concurrent-request performance include:
- Using continuous batching to combine decoding work dynamically across requests.
- Setting maximum context and output lengths.
- Persisting reusable long-document preprocessing results to reduce repeated computation.
- Prioritizing interactive requests separately from background jobs.
- Optimizing model sharding around expert-access frequency.
- Monitoring peak device-memory use to prevent failures as concurrency increases.
These are optimization directions, not features demonstrated by the reported benchmark.
6. Suitable Workloads and Deployment Checks
A local cluster of this kind can be useful for:
- Private legal-document analysis.
- Internal code generation and review.
- Long-report summarization.
- Question answering over a local knowledge base.
- Research involving data that must remain on-site.
- Experiments with model inference and quantization.
Before deployment, four areas deserve particular attention.
Power
Twelve data center accelerators, along with the host, fans, and storage, can draw substantial power. The installation should be assessed for an appropriately rated dedicated circuit and reliable power-supply redundancy.
The purchase price alone does not capture the operational requirements of the system.
Cooling
Server accelerators commonly depend on high airflow. A conventional desktop enclosure may not provide sufficient cooling.
Sustained high temperatures can cause throttling and may affect equipment lifespan. Cooling must be evaluated under prolonged load, not only during a short benchmark.
Software Compatibility
Drivers, compute runtimes, quantization kernels, communication libraries, and the inference framework must be compatible.
Successfully loading the model is only the first step. A configuration can be functional yet inefficient if its kernels or communication paths are poorly matched to the hardware.
Stability
Before relying on the system, run extended stress tests and record:
- Device-memory use.
- Temperatures.
- Power consumption.
- Communication errors.
- Request failure rates.
A brief peak-performance result is not sufficient evidence of reliable operation.
7. Conclusion: Low-Cost Inference Is a Systems-Engineering Project
The reported results—up to 184 tokens per second for a single request and more than 400 tokens per second in aggregate—show that used data center accelerators can remain useful for large-model inference when paired with appropriate quantization and parallelism.
The difficult part is not simply assembling more devices. It is balancing hardware, model placement, interconnect communication, scheduling, power, and cooling.
Lower acquisition cost does not mean lower complexity. Builders must take responsibility for hardware selection, integration, troubleshooting, and performance tuning.
For users who prioritize data privacy, have the necessary engineering skills, and intend to run local models over the long term, a self-built multi-accelerator inference cluster can be a practical option. Teams seeking plug-and-play operation, minimal maintenance, or high-volume online serving should evaluate operational effort, reliability, and cost per request rather than focusing only on peak token-generation speed.
