Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

AI Inference Cluster: What to Check Before Buying

· 7 min read · Home Tech

In this article
  1. Background: Why Inference Clusters Differ from Training Clusters
  2. How Inference Clusters Work
  3. How to Choose: Key Specifications to Check
  4. Common Problems and How to Avoid Them
  5. Comparisons: Cloud vs. On-Premises vs. Hybrid
  6. Costs: Total Cost of Ownership (TCO)
  7. Safety and Reliability Considerations
  8. Alternatives to Buying a Cluster
  9. Frequently Asked Questions

Before buying an AI inference cluster, you need to verify that the hardware matches your specific model's latency and throughput requirements, not just the raw teraflops. This article explains the key technical specifications, cost factors, and operational considerations to evaluate so you can avoid overpaying for capacity you don't need or underprovisioning for the workloads you actually run.

Background: Why Inference Clusters Differ from Training Clusters

Training clusters are built for massive parallel throughput over weeks or months, using high-bandwidth interconnects like NVLink or InfiniBand to synchronize gradients. Inference clusters, by contrast, serve predictions in real time or in batches, so the priorities shift to low latency, high request concurrency, and efficient power usage. A cluster that excels at training can be wasteful for inference if it has too much compute per byte of memory bandwidth or if the interconnect is overkill for your model size. Understanding this distinction helps you ask the right questions before you commit to a vendor or a self-built rack.

How Inference Clusters Work

An inference cluster is a group of servers (nodes) that each contain accelerators (GPUs, TPUs, or specialized ASICs), CPUs, memory, and storage. When a user sends a request, the cluster routes it to a node that has the model loaded in memory, runs the forward pass, and returns the result. The key performance metrics are:

  • Latency: time from request to response, often measured at the 50th, 95th, and 99th percentiles.
  • Throughput: requests per second (RPS) the cluster can sustain.
  • Batch size: how many requests are processed simultaneously; larger batches improve throughput but increase latency.
  • Time-to-first-token (TTFT): for generative models, the delay before the first output token appears.

The cluster software (like Kubernetes with a GPU scheduler, or a dedicated inference server like NVIDIA Triton or vLLM) manages model replicas, load balancing, and auto-scaling. The hardware you choose determines the ceiling for these metrics.

How to Choose: Key Specifications to Check

Before you sign a purchase order, verify these specifications against your actual workload:

  1. Model size and memory: Your model's weights plus activations must fit in the accelerator's VRAM. A 70B-parameter model in FP16 needs about 140 GB, so you'd need multiple GPUs or a single H100 (80GB) with quantization. Check the memory bandwidth (GB/s) too—it often limits inference speed more than raw FLOPs.
  2. Compute capability (FLOPS): Look at the tensor core performance for your precision (FP16, BF16, INT8). A cluster with 10 PFLOPS of FP16 might be slower than one with 5 PFLOPS of INT8 if your model is quantized.
  3. Interconnect: For models that don't fit on one accelerator, you need fast inter-node links (like NVLink, InfiniBand, or RoCE) to avoid bottlenecks. For single-GPU models, standard Ethernet may be fine.
  4. Power and cooling: Each H100 can draw up to 700W. Check your facility's power density (kW per rack) and cooling capacity (liquid vs. air). A cluster that exceeds your power budget will throttle and underperform.
  5. Storage I/O: If you load models frequently or stream large datasets, NVMe storage is essential. Check the read throughput and latency of the storage subsystem.
  6. Software compatibility: Ensure your inference framework (PyTorch, TensorRT, ONNX Runtime) is supported by the accelerator's driver and libraries. Some ASICs (like Google TPU) require specific frameworks.

Common Problems and How to Avoid Them

One of the most common mistakes is buying a cluster based on peak FLOPS without considering memory bandwidth. For autoregressive generation (like LLMs), each token requires reading all model weights from memory, so memory bandwidth is often the bottleneck. A GPU with 2 TB/s bandwidth will generate tokens about twice as fast as one with 1 TB/s, regardless of FLOPS. Another issue is oversubscribing the network: if you have 8 GPUs per node and only a single 100GbE link, the inter-node communication for tensor parallelism will saturate the link and increase latency. Finally, many buyers forget to account for the host CPU and RAM; if the CPU can't feed requests fast enough, the GPUs sit idle.

Comparisons: Cloud vs. On-Premises vs. Hybrid

You don't have to buy a cluster outright. Compare these options:

  • Cloud inference (pay-per-use): Best for variable workloads, no upfront cost, but per-request costs can be high if you have steady traffic.
  • Dedicated cloud instances (reserved): Lower per-hour cost than on-demand, but you still don't own the hardware.
  • On-premises cluster: High upfront cost, but you control the hardware and can optimize for your exact workload. Good for data-sensitive applications.
  • Hybrid: Keep a small on-prem cluster for baseline traffic and burst to the cloud for spikes.

For a rough cost comparison, consider that a single H100 GPU can cost anywhere from $25,000 to $40,000 in a server, plus power and cooling. Cloud rental of the same GPU might be $2-4 per hour. If you run 24/7, on-premises can break even in 1-2 years, but you bear the risk of hardware failure and obsolescence.

Costs: Total Cost of Ownership (TCO)

When budgeting, include these line items:

  • Hardware: accelerators, servers, networking switches, cables, storage.
  • Facilities: power distribution, cooling, rack space, and any building upgrades.
  • Operating: electricity (at $0.10/kWh, a 10kW rack costs $1/hour just for power), maintenance, and staff time.
  • Software: licensing for inference servers, monitoring tools, and any proprietary frameworks.
  • Downtime: the cost of a cluster being unavailable when you need it.

A useful exercise is to calculate the cost per million inferences. For example, if your cluster costs $500,000 and serves 1,000 requests per second, that's 86.4 million requests per day. Over 3 years, that's about 94 billion requests, so the hardware cost is roughly $0.000005 per request—but add power and labor, and the real number is higher.

Safety and Reliability Considerations

While not a safety issue in the traditional sense, an inference cluster can cause physical and operational risks if not properly managed. Overloaded power circuits can trip breakers and cause fires. Inadequate cooling can lead to thermal throttling or hardware damage. Always ensure your facility's power distribution and cooling are designed for the peak draw of the cluster, not the average. Also, plan for redundancy: if a node fails, can the cluster reroute traffic? Have spare parts on hand and a maintenance contract. For data security, if you're handling sensitive user data, consider encryption in transit and at rest, and ensure your cluster's network is isolated from untrusted traffic.

Alternatives to Buying a Cluster

If the upfront cost or complexity is too high, consider these alternatives:

  • Use a managed inference service: Providers like Hugging Face Inference Endpoints or Replicate handle the infrastructure for you.
  • Optimize your model first: Quantization (INT8, INT4), pruning, and distillation can reduce the hardware requirements by 2-4x, sometimes making a single GPU sufficient.
  • Use edge devices: For small models, a cluster of Raspberry Pis or edge GPUs might be enough, though they won't handle large LLMs.

Frequently Asked Questions

What is the difference between training and inference hardware?

Training hardware needs high compute throughput and fast interconnects for gradient sync, while inference hardware prioritizes memory bandwidth, low latency, and power efficiency. A GPU that is great for training may be overkill for inference if it has too much compute per memory bandwidth.

How do I know if my model fits on a single GPU?

Calculate the model size: for a model with N parameters, the weights in FP16 take 2*N bytes. Add activations and overhead, and compare to the GPU's VRAM. For example, a 7B model in FP16 needs about 14 GB, so an 80GB GPU can hold it with room for activations.

What is the best interconnect for inference?

It depends on your model parallelism. For single-GPU models, standard Ethernet is fine. For multi-GPU models that use tensor parallelism, you need high-bandwidth, low-latency links like NVLink or InfiniBand. If you only use pipeline parallelism, slower interconnects may be acceptable.

How much power does an inference cluster consume?

Each accelerator can draw 200-700W. A node with 8 GPUs might draw 3-6 kW. A rack with 10 nodes could draw 30-60 kW, requiring dedicated cooling. Always check your facility's power capacity before installing.

Can I use consumer gaming GPUs for inference?

Yes, for small models and low concurrency, but consumer GPUs lack features like ECC memory, higher reliability, and often have lower memory bandwidth and capacity. For production workloads, data-center GPUs are recommended.

Should I buy used accelerators?

Used GPUs can be cost-effective, but check for signs of mining wear (if they were used for crypto), warranty status, and remaining lifespan. Also, ensure the used hardware is compatible with your software stack.