How to Choose an Open-Source LLM for a Single Consumer GPU
Choosing an open-source model for a single 24GB consumer GPU requires balancing memory usage, task suitability, and inference speed. This guide explains how to estimate quantized model memory requirements, evaluate dense and mixture-of-experts models, select models for coding, reasoning, and OCR, and choose an inference runtime for local testing or production deployment.
Running a capable open-source large language model on a single consumer GPU with 24GB of VRAM is now practical. Choosing one, however, can be challenging: model sizes vary widely, quantization options are numerous, and different workloads demand different capabilities.
How many parameters can your GPU support? Which quantization level makes sense? Should you prioritize coding ability, reasoning, or document processing? This guide provides a systematic approach to model selection and deployment under a single-GPU constraint.
1. Start with the VRAM Budget: Understanding Quantization
For single-GPU deployment, the first constraint is memory. Parameter count and quantization precision are the primary factors determining how much space model weights require.
For a roughly 4-bit quantization format such as Q4_K_M, a useful rule of thumb is:
VRAM usage (GB) ≈ Parameters (billions) × 0.6 + KV cache and runtime overhead (roughly 2–4 GB)
This estimate suggests the following practical ranges for a 24GB GPU:
- Around 30B parameters at 4-bit precision: Weights occupy roughly 18–19GB, putting these models near the practical upper end for single-GPU deployment.
- 20B–27B parameters at 4-bit precision: Weights require roughly 14–17GB, leaving more headroom for longer contexts.
- Below 10B parameters: Much more VRAM remains available for long contexts or concurrent requests.
These figures are planning estimates rather than guarantees. In particular, the KV cache allowance must be checked against the intended context length.
How Mixture-of-Experts Models Change the Trade-Off
Mixture-of-experts (MoE) architectures separate total parameter count from the number of parameters activated for each token. A model with 30B total parameters might activate only around 3B during inference.
This can bring inference speed closer to that of a smaller model while retaining the capacity associated with a larger parameter pool. For single-GPU users, models with many total parameters but relatively few active parameters can therefore offer an attractive alternative to similarly sized dense models.
The memory constraint remains, however: keeping the entire model on the GPU still requires loading all expert weights into VRAM. The weight-memory estimate must use the total parameter count, not just the active parameter count. MoE primarily changes the compute and speed trade-off, not the amount of memory needed to store the weights.
2. Choose for the Task, Not Just the Model Size
There is no universally best model. Model selection should begin with the workload you actually need to run.
Coding and Software Development
Coding assistance is a common reason to deploy a local LLM. When evaluating a model, focus on three capabilities:
- Code-focused training: Models trained specifically for programming often perform better than general-purpose models on completion, refactoring, and debugging.
- Context length: Understanding a medium-sized project may require tens of thousands of tokens.
- Tool calling: Multi-step workflows in coding assistants require reliable function-calling support.
A roughly 30B coding-focused model can cover many everyday programming-assistance needs on a single GPU. A general-purpose multimodal model around 26B parameters can be an alternative when the workload combines image understanding and code generation.
General Chat and Reasoning
General-purpose models offer a wider range of choices. Evaluate them using questions representative of your own workload.
For mathematics and logical reasoning, public reasoning benchmarks can help narrow the shortlist. For writing and summarization, test the models directly on long documents. Benchmark scores and the quality you experience in practice do not always align.
OCR and Document Understanding
Optical character recognition is an easily overlooked but useful application for local deployment. Small OCR-specialized models, around 1B parameters, offer a different approach from running every task through a large general-purpose model:
- Single-page processing can take seconds, and some models can run on a CPU.
- A separate detection model can add layout-analysis capabilities, combining recognition with document structure.
- Support in mainstream inference frameworks can make deployment relatively straightforward.
The broader lesson is that the largest general-purpose model is not always the best choice. For a clearly defined task, a specialized 1B model may be faster, more resource-efficient, and more accurate than a general-purpose 30B model.
A useful architecture is to let a small specialized model handle preprocessing, then use a larger general-purpose model for understanding and generation.
3. Choose the Right Inference Runtime
The inference engine is another important deployment decision. Local deployment options broadly fall into two categories.
Easy-to-Use Runtimes
These prioritize getting a model running quickly. They typically support straightforward model downloads and built-in management of quantized variants.
They are well suited to initial evaluation and everyday individual use, although they generally expose less scope for performance tuning.
High-Performance Inference Engines
These focus on serving efficiency, with features such as continuous batching and PagedAttention. They are better suited to concurrent workloads and production deployments, but require more configuration.
For an individual developer, a sensible workflow is to validate model quality with a simple runtime first. Once the model meets your requirements, consider moving to a high-performance engine if your serving needs justify it.
Two Deployment Details to Check
Reserve memory for the KV cache. Model weights are only part of the VRAM budget. Long-context workloads can require several additional gigabytes for the KV cache, so a model that loads successfully may still leave insufficient room for the intended context.
Evaluate the quantized variant, not just the base model. Different quantization formats can produce meaningful quality differences for the same model. Prefer established formats with substantial community validation.
4. A Repeatable Selection Workflow
Selecting a model for a single consumer GPU means balancing model capacity, task fit, and inference speed.
Use the following process:
- Estimate the feasible memory range. As a rough starting point, a 24GB GPU can accommodate a model around 30B parameters at 4-bit precision, subject to KV cache and runtime requirements.
- Consider MoE models for inference efficiency. Their lower active parameter counts can improve speed, but all weights still need to fit when running entirely on the GPU.
- Match the model to the task. Choose a coding-focused, general-purpose, or specialized model based on the actual workload.
- Prefer small-model combinations for well-defined tasks where appropriate. A specialized preprocessing model paired with a larger model can be more effective than relying on one large general-purpose model.
- Validate quickly before optimizing deployment. Start with a simple runtime, confirm model quality, and then move to a production-oriented engine if needed.
Specific models and quantized releases will continue to change. The selection method remains useful: establish the memory budget, test against real tasks, and optimize deployment only after confirming that the model meets your needs.
