ntransformer Runs Llama 70B on RTX 3090 via NVMe

The 30-Second Skim
- What happened: A new C++/CUDA inference engine enables Llama 70B to run on a single RTX 3090 by streaming layers via PCIe and optional NVMe direct I/O, delivering up to 83× speedup over mmap baselines.
- Key facts & numbers: ntransformer implements a 3‑tier adaptive caching system (VRAM, pinned RAM, NVMe/mmap) that automatically sizes layers to hardware resources. Llama 70B can be streamed on a single RTX 3090 (24 GB VRAM) with optional NVMe direct I/O, bypassing the CPU entirely. NVMe‑direct I/O achieves an 83× speedup over the mmap baseline for 70 B on consumer hardware (RTX 3090 + 48 GB RAM).
- What happens next: Turns out you can squeeze a 70 B LLM onto a single RTX 3090 using a clever NVMe‑to‑GPU pipeline — 83× faster than mmap, but you’ll need to tinker with your kernel.
- ntransformer implements a 3‑tier adaptive caching system (VRAM, pinned RAM, NVMe/mmap) that automatically sizes layers to hardware resources.
- Llama 70B can be streamed on a single RTX 3090 (24 GB VRAM) with optional NVMe direct I/O, bypassing the CPU entirely.
- NVMe‑direct I/O achieves an 83× speedup over the mmap baseline for 70 B on consumer hardware (RTX 3090 + 48 GB RAM).
- Layer skip using cosine‑similarity calibration removes about 20 of 80 layers per token with minimal quality loss.
Why It Matters
The 83× speedup and CPU‑bypass let AI developers and research labs run a 70 B LLM on a single RTX 3090, dramatically lowering hardware expense and latency compared to multi‑GPU or CPU‑heavy setups. At the same time, the low‑level NVMe handling introduces risk of data loss if misconfigured.
Sources Cited
Related Coverage
Ask SkimNews