Home Hardware Guide for Running 32B LLMs: VRAM, Platform, and Cooling Basics

    This guide explains how to choose home hardware for running 32B-class large language models, starting from the interaction experience you want rather than a parts list. It covers VRAM sizing for weights and KV cache, PCIe lane and power limits in multi-GPU builds, CPU and system memory requirements, cooling and noise, storage and monitoring, acceptance testing, budget allocation, and common mistakes. The goal is a practical L2 setup that is fast enough to interact with, with room to add GPUs later.

    1. Start With the Goal: “It Runs” or “It’s Good to Use”

    When deploying a mid-sized model at home (roughly 32B parameters), the most common mistake is starting from a parts list instead of requirements. A better order is to define the interaction experience you will accept, then work backward to a hardware budget.

    Break the goal into three levels:

    • L1 Loads: the model fits entirely in VRAM and produces coherent text; speed is not a constraint.
    • L2 Interactive: decode speed is in the range of human reading speed (tens of tokens per second), and prefill does not leave you waiting too long.
    • L3 Serviceable: concurrent users or clients, some headroom for context length, and stable operation under sustained load without throttling.

    Most home setups target L2. Once that is clear, the budget should go mainly to VRAM capacity and memory bandwidth, not raw compute.

    2. VRAM Capacity: Do the Math Before Picking Cards

    VRAM use during inference breaks down roughly into four parts:

    1. Weights: commonly estimated as parameters multiplied by bytes per parameter. At 16-bit float, about 2 bytes per parameter; 8-bit integer quantization about 1 byte per parameter; 4-bit about 0.5 bytes per parameter, plus a small overhead for group scaling factors.
    2. KV cache: proportional to layer count, number of attention heads, context length, and batch size. With long contexts it can far exceed expectations and is the main reason VRAM runs out.
    3. Runtime overhead: framework buffers, communication buffers, temporary activations.
    4. Headroom: reserve 10% to 15% to avoid load failures caused by fragmentation.

    A practical rule of thumb: for a 32B-class model, a single 24GB card works with 4-bit quantization but leaves little room; 2x24GB or 2x32GB is much more comfortable; four 32GB-class accelerators let you stop worrying about context length. A budget around 50,000 CNY is fairly generous and enough to size VRAM so context length is not a concern.

    One point worth stressing: do not trade total VRAM for newer hardware. In home inference, insufficient VRAM is a hard failure, while insufficient compute only makes things slower.

    3. Platform and Lanes: The Hidden Bottleneck

    The real hurdle in a multi-card build is not the cards but the motherboard and lane topology:

    • PCIe lanes: consumer platforms usually expose only a limited number of CPU-attached lanes, and filling multiple slots forces lane splitting (for example x16 into x8/x8). Lower bandwidth directly hurts inference efficiency when the model is split across cards.
    • Physical spacing and card width: many server and workstation boards space slots for single-width cards, so dual-width or thicker accelerators physically do not fit and need risers or adapters. Poor-quality risers can cause link downgrades or detection failures.
    • Unlocking bifurcation: some boards need a specific jumper or cable to turn a slot from unusable into a working split mode. Check the motherboard manual before building.
    • Power: a fully loaded multi-card system can draw into the kilowatt range, so leave margin on PSU wattage, per-rail current capability, and the number of 12V connectors, and account for total current on a household 16A circuit.

    If you would rather not deal with lane topology, there are two simpler paths: a single large-VRAM card, or a server/workstation platform with enough lanes.

    4. CPU and Memory: Don’t Starve the GPUs

    In inference the CPU mainly handles scheduling, tokenization, sampling, and some operators. Core count does not need to be extreme, but memory capacity and bandwidth matter a lot:

    • Memory capacity: model loading, page cache, and some offload strategies all depend on host memory. A rule of thumb is memory capacity at least 1.5 to 2 times total VRAM.
    • ECC support: sustained full-load inference is sensitive to stability, so a platform with ECC is more reassuring.
    • Channel count: multi-channel memory noticeably improves the experience when VRAM is short and some layers are placed in system memory.
    • Offload strategy sketch (pseudocode, conveys the idea only):
    1. if model_size > gpu_memory * 0.85:
    2. layers_on_gpu = gpu_memory_budget // per_layer_size
    3. layers_on_cpu = total_layers - layers_on_gpu # speed will drop noticeably
    4. else:
    5. layers_on_gpu = total_layers

    5. Cooling, Noise, and Power: Real Constraints at Home

    The biggest difference between a home deployment and a data center is noise and heat. Accelerators under sustained load with multiple fans can easily exceed what is acceptable day to day. Options:

    • Air cooling first: a tower case with high-airflow fans and a straight front-to-back airflow path is the cheapest option with the fewest failure points.
    • Liquid cooling if needed: if noise is a concern, consider liquid cooling, but confirm that the mounting bracket and hole spacing are compatible; many compute cards use different hole patterns than consumer graphics cards.
    • Ambient temperature: in a room without air conditioning in summer, every few degrees of higher intake temperature clearly raises throttling risk.
    • Power budget: multiply full-system load by daily runtime hours to estimate electricity cost, which often affects long-term cost more than the price difference between parts.

    6. Storage, OS, and Observability

    • Storage: model files run to tens of gigabytes, so keep weights on a dedicated NVMe SSD and separate the system disk from data disks. Size capacity as model size multiplied by number of versions multiplied by two.
    • Network: for multiple machines or remote access, 2.5G or faster wired networking is more reliable than wireless.
    • Monitoring: track at least VRAM usage, temperature, power, and decode speed, sampled on a timer so performance regressions are easy to locate.
    1. # Pseudocode for collecting metrics
    2. every 5s:
    3. record(gpu_mem_used, gpu_temp, board_power, tokens_per_second)
    4. alert if gpu_temp > threshold or tokens_per_second < baseline * 0.7

    7. Acceptance Testing: Four Numbers

    1. Prefill speed (input tokens processed per second): determines time to first token for long documents and long conversations.
    2. Decode speed (tokens generated per second): determines reading experience; 20 to 40 is already quite usable.
    3. Time to first token: key to how interactive the system feels.
    4. Sustained stability: whether it throttles after hours of full load, and whether VRAM fragmentation causes failures.

    For acceptance testing, fix the same set of prompts and the same context length so results are comparable across runs.

    8. Budget Allocation (around 50,000 CNY)

    • Accelerators and VRAM: 45% to 55%, the decisive factor for experience.
    • Platform (motherboard, CPU, memory): 20% to 25%.
    • PSU, case, cooling: 12% to 18%; do not skimp on the PSU.
    • Storage and network: 5% to 8%.
    • Reserve: about 5% for cables, adapters, brackets, and other easily missed items.

    9. Common Mistakes

    • Looking only at compute and ignoring memory bandwidth, so decode speed falls far below expectations.
    • Overlooking slot spacing and card width, then finding the card does not fit on build day.
    • Setting context length too large, so KV cache fills VRAM.
    • Buying a PSU with just enough wattage, which trips protection under sustained load.
    • No airflow plan, leading to frequent throttling in summer.
    • Chasing multiple cards while ignoring the diminishing returns from lane splitting.

    10. If You Don’t Want to Tinker

    Adapting hardware and the software stack is ongoing work in itself. If you prefer something that works out of the box, consider moving inference to the cloud: combine GPU compute instances in the general category, container platforms, object storage, and monitoring and alerting services, and scale elastically on demand to avoid procurement, cooling, and operations costs. General-purpose compute and container capabilities from cloud providers such as Baidu AI Cloud suit teams that want to focus on the application and data side rather than hardware tuning.

    Overall recommendation: treat VRAM capacity as the first constraint and cooling and power as the second. Start with a two-card platform in the 32GB VRAM class aimed at L2, then decide whether to add cards based on measured prefill and decode numbers. That avoids wasting budget and keeps room to upgrade later.