logo
Kurashizu Blogwhere ideas flow
  • Home
  • News
  • Blog
  • About
  • Home
  • News
  • Blog
  • About

© 2026 Kurashizu. All rights reserved.

Admin·New Post·Service Status
Powered by Cloudflare·02.11.26
← Back to news

Jamesob's guide to running SOTA LLMs locally

Original article
github.com|388 points|175 comments|by livestyle|Jul 3, 2026

A Comprehensive Guide to Local SOTA LLM Deployment

Based on the research and implementation by jamesob

Disclaimer: This guide is designed for those who want to escape the ecosystem of "AI Overlords" (like Altman and Dario) and reclaim their machine intelligence by running state-of-the-art (SOTA) models on their own silicon.


💰 Budgetary Tiers for Local Intelligence

Depending on your financial flexibility, there are two primary paths to achieving local SOTA performance.

1. The "Entry-Level" Powerhouse (~$2,000)

If you have a modest budget, you can still achieve impressive results.

  • Hardware: 2x NVIDIA RTX 3090s.
  • Capacity: Total VRAM ≈48GB\approx 48\text{GB}≈48GB.
  • Capabilities: Able to run Qwen and high-end Speech-to-Text (STT).
  • STT Implementation: Use whisper-large-v3 via a cross-platform harness. This requires roughly 11GB of VRAM.

2. The "Enterprise-Grade" Beast (~$40,000+)

For those seeking maximum intelligence, the goal is to maximize VRAM to run massive models.

  • Hardware: 4x RTX PRO 6000 (Blackwell).
  • Capacity: Total VRAM ≈384GB\approx 384\text{GB}≈384GB (calculated as 4×96GB4 \times 96\text{GB}4×96GB).
  • Capabilities: Capable of running the GLM-5.2-594B model.

Current Model Recommendations (as of July 2026)

DateRecommended ModelConfigurationNotes
2026-07GLM-5.2-Int8Mix-NVFP4-REAP-594BRunner configHigh-intelligence tier

Note: Alternative strategies exist, such as using a linked 4x DGX Spark cluster (512GB VRAM) as a "slow brain" to orchestrate a faster Qwen3.7-27b for routine tasks.


🛠️ The Hardware Architecture

To avoid the exorbitant costs of current-gen DDR5 and PCIe5 systems, the author utilized a modern last-generation strategy.

The "Secret Sauce": PCIe Switching

Instead of routing all GPU data through the PCI root complex, a c-payne.com PCIe4 switch was used. This enables GPUs to communicate peer-to-peer (P2P) at wire speeds during the allreduce phase of tensor parallelism.

Detailed Bill of Materials (BOM)

Base System (eBay Sourced)

ComponentSpecificationPrice
MotherboardASRock Rack ROMED8-2T (SP3, 7x PCIe 4.0 x16)$715
CPUAMD EPYC Milan 7313P (16-core, 3.0GHz)$504
RAM8× 16GB Crucial DDR4 ECC RDIMM (128GB Total)$642
CoolerDynatron T17 SP3 (280W TDP)$40
CaseAAAWave Sluice V2 (Open Frame)$100
PSUs2× Super Flower 1700W$750
PCIe Switchc-payne Microchip Switchtec PM40100~$1,330
Boot Drive4TB M.2 NVMe$291
Storage2x 8TB M.2 NVMe (for weights)$1,200
Fans3× 120mm PWM$15
Total$5,587

GPU & Switch Sub-BOM

PartQtyUnit PriceNotes
RTX PRO 60004~$11,500Blackwell Workstation (96GB each)
PCIe Gen4 Switch1€1,050Microchip Switchtec PM40100
Host Adapter1€140REDRIVER AIC (DS160PR810)
SlimSAS Cables2€30SFF-8654 8i (PCIe Gen4)

⚙️ Configuration & Optimization

Running this much silicon on a standard 110V circuit requires specific tuning.

Setup Checklist

  • Custom wood enclosure fabricated for GPUs/Switch.
  • Disconnect the loud, ineffective built-in switch fan.
  • Configure BIOS for bifurcation and link speed.
  • Disable ASPM.

Software & Kernel Tweaks

To prevent NCCL hangs and ensure P2P traffic stays within the switch fabric, the following parameters are critical:

  1. Kernel/GRUB: Use iommu=off.
  2. PCIe: Disable ACS (Access Control Services).
  3. Power: Implement GPU power limiting to avoid tripping breakers.

Performance Benchmark

The author uses a custom script measure-gpu-speed.sh to verify P2P bandwidth. Result: Gen4 line rate achieved ≈27.5/50.4 GB/s\approx 27.5 / 50.4 \text{ GB/s}≈27.5/50.4 GB/s with sub-microsecond latency.

Deployment Stack

The models are served using Docker containers for isolation and reproducibility:

  • LLM Serving: vLLM via docker-compose (Config: DCP4+MTP5).
    • Performance: ≈80 t/s\approx 80 \text{ t/s}≈80 t/s at 460k460\text{k}460k context.
  • STT Serving: whisper-large-v3 located in ./runners/stt.
# Example: How to check GPU P2P speed (conceptual)
./tools/measure-gpu-speed.sh --all-pairs

Hardware Setup Placeholder

Data Management

Model weights are stored on a ZFS filesystem, which allows for efficient replication and data integrity.