Running Full-Precision LLMs on a Single Consumer GPU: Capacity, Scheduling, and Tuning Lessons

    This article examines what it takes to run full-precision sparse (MoE) large models on a single high-end consumer GPU paired with large system memory. It explains the three storage tiers involved, the hidden pinned-memory limits imposed by desktop OS graphics stacks, and the zero-sum trade-off between context length and the number of expert layers kept resident in VRAM. It also covers cold-load costs, a master-agent/executor-agent split, and a reusable pre-launch checklist, concluding that server-style deployment is the more practical path to stable high throughput.

    1. Background: Why “single-GPU full-precision” became a hot topic

    Over the past year, the capability density of sparse Mixture-of-Experts (MoE) models has improved rapidly. Parameter counts often reach tens of billions to hundreds of billions, yet each forward pass activates only a small subset of experts. This produces an attractive engineering outcome: the total weight footprint is large, but the compute per pass stays manageable. As a result, running models that would normally require a multi-GPU server on a single high-end consumer GPU plus large system memory has become a viable path.

    However, “it boots” and “it is usable” are separated by three engineering gaps:

    1. Capacity gap: weights, the KV context cache, and the activated expert layers all compete for the same limited VRAM and system memory.
    2. Scheduling gap: context length and the number of resident experts crowd each other out, so speed and latency trade off against one another.
    3. Iteration gap: any configuration change can trigger a full reload that takes tens of minutes, making tuning so costly that people give up.

    This article uses a three-day local experiment as a thread to extract a general methodology. It is not tied to any specific product and focuses only on a reusable capacity model and tuning strategy.

    2. General constraints of the hardware and software stack

    2.1 Three storage tiers

    • VRAM: highest bandwidth, smallest capacity; it determines the “fast” part of the system.
    • System RAM: larger capacity, lower bandwidth; it holds the complete weight pool.
    • Local disk (especially fast SSDs): used only for cold loading; the most generous capacity and the highest latency.

    The essence of inference performance is keeping as much “hot data” as possible in the higher tiers. Once paging or page-lock contention kicks in, throughput drops off a cliff.

    2.2 Hidden quotas at the OS and driver level

    On desktop operating systems, the graphics driver stack usually enforces quota management on “lockable fixed memory.” The amount that can be registered as pinned memory is often far smaller than total physical memory. This means that even with 192GB of RAM, the portion that can be registered as fixed memory and combined with VRAM into a unified shared pool may be only about half.

    Server operating systems and headless runtime environments typically have no such limits, which is one of the root reasons the same hardware is faster on a server. Engineering recommendations:

    • Prefer server-style environments (no graphics stack, long-running processes) for deployment.
    • If a desktop environment is unavoidable, isolate the graphics stack through a virtualization layer, but expect the pinned-memory pool to shrink.
    • Use monitoring to confirm the actually available fixed memory instead of planning capacity based on physical memory.

    Illustrative capacity check logic:

    1. # Pseudocode: check whether the shared pool can hold the target weights
    2. vram = 32 # VRAM capacity in GB
    3. pinned_cap = 96 # upper limit of memory the OS allows to register as pinned
    4. weights = 140 # model weight footprint
    5. kv_budget = 8 # reserved space for the KV context
    6. pool = vram + pinned_cap
    7. print("Shared pool:", pool, "GB")
    8. print("Fits weights + context:", pool >= weights + kv_budget)

    3. The core conflict: a zero-sum game between context length and expert residency

    Two kinds of data must stay “hot” during sparse-model inference:

    • The KV context cache: grows linearly with context length, and long contexts are extremely VRAM-hungry.
    • The activated expert layers: the subset of experts hit by each forward pass; if they are not in VRAM, they must be moved from memory.

    This creates a clear trade-off curve (general patterns below, not data from a specific product):

    Goal Context length Expert layers resident in VRAM Result
    Prioritize throughput Short (tens of thousands of tokens) Many Fast
    Prioritize long-document understanding Long (hundreds of thousands of tokens) Few Noticeably slower
    Compromise Medium Medium Neither extreme

    A typical behavior observed in testing: generation holds around twenty-plus tokens/s at a medium context length; doubling the context drops speed into the single digits. This is not an implementation flaw but a physical constraint of bandwidth and capacity.

    A better approach: master-agent and executor-agent split

    In theory, you can design a scheduling scheme where a master agent uses a long context for careful planning and sub-agents use short contexts for high-throughput execution. Key implementation points:

    1. # Illustration: dual-mode config file (structure only, not a specific product format)
    2. agents:
    3. planner:
    4. context_length: 131072
    5. gpu_expert_layers: 12 # fewer resident layers to preserve context
    6. role: planning and decomposition
    7. executor:
    8. context_length: 32768
    9. gpu_expert_layers: 28 # more resident layers to preserve speed
    10. role: high-frequency execution

    The practical constraint is that most solutions do not yet support hot-swapping expert layers. After a configuration change, you must release the loaded instance and reload from disk. The lack of hot switching keeps this elegant design on paper for now.

    4. The underestimated cost: cold-load time

    Reading over a hundred GB of weights from disk into memory and VRAM takes on the order of a dozen minutes even with a fast SSD on a high-speed bus. This leads to three conclusions:

    1. Tuning must be done in “batch decisions”; do not change one variable at a time.
    2. Loading is a read-only process that does not wear out the disk or memory, so you can repeat it freely, but the time cost is real.
    3. Production environments should cache the loaded result as a resident instance to avoid frequent restarts.

    Optimization suggestions:

    • Define the task profile before startup (speed or context) and pick a mode in one shot.
    • Use a config template plus a parameter matrix to plan ahead, compressing many rounds of experiments into a few.
    • On the server side, use long-running processes and warm-up scripts to remove cold loading from the critical path.

    5. Conclusions from the three-day test and a reusable checklist

    The conclusion is not pessimistic: a single high-end consumer GPU can indeed carry full-precision large models, with reasoning quality better than comparable-size dense models. But on a desktop OS, limited by pinned-memory quotas and expert scheduling, it can only achieve medium throughput. For stable high throughput, server-style deployment is the more reasonable choice.

    Pre-launch checklist:

    • Confirm the upper limit of available fixed memory, not total physical memory.
    • Size capacity using “weights + KV reservation” and leave a safety margin.
    • Decide the mode before loading to avoid repeated cold starts.
    • Grade context length by task; do not max it out globally.
    • Monitor paging and page-lock metrics as performance-regression signals.
    • In production, run a resident instance with health checks, logging, and monitoring alerts.
    • Keep weights and data on object storage or a fast local disk to shorten cold loads.

    6. An enterprise adoption perspective

    For enterprise users, a local single GPU is better suited to R&D validation and offline batch processing. For online workloads, running inference services on a container platform, combined with elastic scaling, logging services, and monitoring alerts, forms a complete loop. In these scenarios, Baidu AI Cloud typically offers a general combination of capabilities from containerized deployment to observability, making it easier to move a model that “runs” into a service that can be operated reliably.