Running 4-bit MoE at 24 t/s on 12GB VRAM: Betelgeuse Engine and Dual-Channel DMA Guide

An RTX 3060 12GB paired with 16GB RAM is often viewed as inadequate for modern MoE models, yielding sub-1 token/s throughput on traditional runtimes. The newly released Betelgeuse engine leverages dedicated host RAM victim caches and asynchronous hardware DMA to achieve 24 t/s on 4-bit MoE models with 100% byte-exact output. This guide dissects the critical memory bandwidth bottleneck between single and dual channel RAM with extensive benchmarks and practical configuration steps.

Running 4-bit MoE at 24 t/s on 12GB VRAM: Betelgeuse Engine and Dual-Channel DMA Guide

For local AI enthusiasts and builders, finite VRAM remains the number one bottleneck. Millions of developers currently run setups centered around the classic budget champion: NVIDIA GeForce RTX 3060 12GB paired with 16GB of system RAM. Yet when attempting to run modern Mixture of Experts architectures like Qwen 3.8 Flash Next, this hardware configuration frequently hits a hard wall. The 12GB VRAM cannot house the full set of expert weights, while conventional CPU offloading in standard llama.cpp suffers from devastating memory thrashing, crawling at 0.5 to 0.6 tokens per second.

While many believed that massive MoE models fundamentally required multi-GPU rigs, a groundbreaking open-source engine named Betelgeuse has shattered that assumption.

On a standard RTX 3060 12GB with 16GB of system RAM, Betelgeuse accelerates 4-bit quantized MoE inference to a blistering 24 tokens per second, with 100% byte-exact output and zero dropped experts.

Even more fascinating is the underlying architectural finding: upgrading from single-channel to dual-channel memory doubles inference throughput from 14 t/s to 24 t/s. This is not algorithmic placebo, but a textbook victory for bus bandwidth engineering.


1. Benchmarking Matrix Across Competing Inference Engines

To objectively measure real-world performance, all tests were executed on identical budget test hardware:

Hardware and Environment Specifications

ComponentSpecification
GPUNVIDIA GeForce RTX 3060 12GB VRAM
Host System RAM16GB DDR4, comparing single 1x16GB against dual 2x8GB channels
Operating SystemUbuntu 24.04 LTS with latest NVIDIA 550 proprietary drivers
Target ModelQwen 3.8 Flash Next across 4-bit and 8-bit quantization variants
Tested Enginesllama.cpp mainline, Strata with low-ram flags, and Betelgeuse

Real-World Throughput Comparison

Under identical hardware conditions, generation speeds across different quantizations and RAM topologies are summarized below:

Quantization FormatMemory Topologyllama.cppStrata with low-ramBetelgeuse Actual Speed
IQ4_XS 4-bit PrecisionSingle 1x16GB Channel~0.5 t/s, severe thrashing4 to 5 t/s14.0 t/s
IQ4_XS 4-bit PrecisionDual 2x8GB Channels~0.6 t/s, severe thrashing5 to 6 t/s24.0 t/s fully smooth
IQ2_XS Extreme QuantSingle 1x16GB Channel1.47 t/s8.11 t/s22.03 t/s, burst 48 t/s
Q8_K_XL 8-bit PrecisionSingle 1x16GB ChannelOut of Memory / FailsCold 8 t/s, Warm 12 t/s~10.0 t/s steady output

Every single Betelgeuse benchmark run achieved 100% byte-exact equivalence with reference decodes, without taking shortcuts like dropping active experts.


2. Deconstructing the Memory Bandwidth Bottleneck

The most eye-opening metric in the benchmark is not merely the absolute speed, but that holding total memory constant at 16GB and simply toggling from single-channel to dual-channel causes throughput to jump from 14 t/s to 24 t/s.

From a computer systems perspective, this behavior is governed directly by physical memory bus throughput:

Single-Channel RAM Chokes the PCIe Bus

In Mixture of Experts inference, every generated token activates a dynamically selected sparse subset of expert layers. When experts reside in host memory, each forward pass requires streaming weights across the PCIe bus into GPU memory.

Dual-Channel RAM Unlocks Full Bus Saturation


3. Key Architectural Innovations in Betelgeuse

Why does llama.cpp stall out while Betelgeuse flies? Betelgeuse eliminates general-purpose overhead by introducing two purpose-built architectural features for MoE workloads:

Dedicated Host RAM Victim Cache

Standard operating system page caches suffer from file system latency and background memory reclamation. Betelgeuse reserves a dedicated, unpaged victim cache area in host physical memory specifically for holding high-frequency expert weights, slashing layer eviction overhead to nanosecond latencies.

Asynchronous Hardware DMA Pipeline

Traditional implementations rely on CPU-driven memory copies with heavy interrupt overhead. Betelgeuse engages direct hardware DMA channels, enabling the GPU memory controller to initiate asynchronous transfers directly against host RAM. While the GPU computes the current token, weights for likely subsequent expert layers are already streaming into an on-device staging buffer via background DMA, achieving near-seamless computation and transfer overlap.


4. Honest Boundaries and Counter-Examples

In keeping with our engineering philosophy, we must highlight real-world edge cases to prevent false expectations:

Counter-Intuitive GPU Scaling

In community trials, an enthusiast testing on an RTX 4080 Super paired with 64GB of RAM observed throughput dropping to an unexpected 3.28 t/s on the identical Q8 model. This disparity indicates that the current Betelgeuse release contains deep micro-architectural optimizations tailored for Ampere RTX 30 series memory controllers, but may experience bus contention or scheduling synchronization stalls on Ada Lovelace architectures.

Hardware Compatibility Caveats

The project is iterating rapidly. Stable support for AMD ROCm stacks and entry-level cards with 8GB or less VRAM remains in experimental stages. Do not deploy this engine into production environments without prior local staging verification.


5. Practical Setup and Deployment Guide

If you operate an RTX 3060 12GB workstation and want to reproduce these results, follow these streamlined deployment steps:

Verify Dual-Channel Memory Topology

Execute the following command in terminal to confirm your memory modules are running in dual-channel configuration:

# Check memory slots and configured bus frequencies
sudo dmidecode --type memory | grep -E "Locator|Speed|Configured Memory Speed"

Ensure your memory modules occupy the primary dual-channel slots designated by your motherboard manual.

Build and Launch the Betelgeuse Engine

# Clone and compile Betelgeuse from source
git clone https://github.com/zyxciss/betelgeuse.git
cd betelgeuse
make -j$(nproc)

# Crucial environment flags: Enable asynchronous hardware DMA
export MOE_DMA=1
export HOST_VICTIM_CACHE_MB=12288

./bel-server \
  --model ./qwen3.8-fn-iq4_xs.gguf \
  --n-gpu-layers 33 \
  --ctx-size 8192 \
  --port 8080

Once running, connect any OpenAI-compatible client interface to test interactive latency and observe real-time token throughput.


6. Takeaway for Budget AI Builders

This benchmark delivers a crucial lesson for resource-constrained practitioners: In the modern era of sparse Mixture of Experts models, inference performance is bounded not solely by GPU compute, but by the host memory subsystem bandwidth.

Rather than spending thousands on incremental GPU upgrades, investing in an inexpensive matching RAM stick to enable dual-channel memory can double your effective throughput. Combined with tailored DMA offloading engines, older budget hardware can continue delivering stellar performance on state-of-the-art models.

💬 Discussion

GitHub Powered