Choosing Local Open-Source LLMs: A Practical Guide to 4B–12B Models on Limited Hardware
How do you choose a local model for an 8GB GPU? This guide compares four small-to-mid-sized model candidates, examines loading times, generation speed, and memory use, and maps the results to everyday text processing, lightweight pipelines, and vision tasks. It also provides a repeatable selection workflow and explains why preliminary measurements must be validated on the intended inference backend.
1. Why Run Small-to-Mid-Sized Models Locally?
As smaller open-source models improve, running a model on a personal development machine has shifted from an experiment to a practical part of many developers’ workflows. Compared with cloud-hosted models, local deployment can offer advantages in data privacy, latency, offline availability, and long-term costs. Compared with 70B-class models, models in the 4B–12B range are more feasible on consumer hardware and deserve a closer evaluation.
The preceding setup work established a local environment: the inference framework runs inside WSL, model files reside in the Linux user directory, and a separate inference engine was initially built for CPU execution, with a CUDA build planned for later. This article moves from setup to a first round of testing with four candidate models to assess their usefulness as everyday tools on a laptop with an 8GB discrete GPU.
The goal is not to endorse a particular product or provide a definitive benchmark. It is to develop a repeatable model-selection method: what to measure, how to interpret the results, and which deployment pitfalls to avoid.
2. Test Environment and Limitations
Meaningful comparisons require consistent test conditions. All four candidates were evaluated on the same machine and software environment:
- Host RAM: 64GB
- Memory allocated to WSL: 32GB
- WSL distribution: A recent Ubuntu LTS release
- GPU: Laptop discrete GPU with 8GB VRAM
- Inference service: A recent version of a mainstream local inference framework
- Inference engine: CPU build used as the initial baseline
Two distinctions matter when interpreting this setup.
GPU detection and the CUDA build toolchain are separate concerns
The inference service could detect the GPU inside WSL and use its supported GPU inference path. The presence of nvcc is a separate issue: it matters when compiling the CUDA version of the inference engine, not necessarily when running a framework that already provides GPU support.
Environment planning should therefore distinguish runtime dependencies from build-time dependencies.
The CPU baseline is not a final performance verdict
This first comparison used a CPU-build baseline, so it should not be treated as a definitive GPU benchmark. The reported VRAM observations also do not, by themselves, establish how much computation was offloaded to the GPU.
Before making a deployment decision, repeat the tests using the intended production path—particularly GPU inference with the selected quantization settings.
3. Initial Results and What They Mean
The four candidates fall within the 4B–12B range. The following figures are preliminary observations from one machine, not laboratory-grade benchmarks.
| Model class | Local file size | Cold-load time | Warm-load time | Generation speed | VRAM during warm operation | Initial impression |
|---|---|---|---|---|---|---|
| 4B | About 2.5GB | About 12s | 0.13–0.16s | About 38–43 tokens/s | About 2.7–2.8GB | Fast; suitable for lightweight tasks |
| 8B | About 5.2GB | About 17s | About 0.23s | About 22–26 tokens/s | About 4.9GB | Strong everyday option for Chinese text |
| 4B multimodal, with fewer active parameters | About 9.6GB | About 14s | 0.66–0.72s | About 54–56 tokens/s | About 3.1GB | Promising speed/resource trade-off for multimodal tasks |
| 12B | Larger | Substantially slower | — | Substantially slower | Close to the limit | More detailed descriptions, but slow |
Several practical lessons emerge from these observations.
Parameter count alone does not predict generation speed
The multimodal candidate with a 9.6GB local footprint generated text faster than the dense 4B candidate. Its sparse-activation architecture uses fewer parameters for each inference step.
Total parameter count is therefore an incomplete selection criterion. Whether a model is dense, sparse, or based on a mixture-of-experts architecture can have a substantial effect on its practical performance.
Disk size and VRAM use are different measurements
For the portions resident on the GPU, VRAM use includes:
GPU-resident model weights + KV cache + runtime overhead
Longer contexts and greater concurrency increase KV-cache requirements. On an 8GB GPU, a model with a roughly 5GB footprint is already approaching the comfortable operating range observed here. Moving to a larger model may require reducing context length.
A model’s on-disk size should not be treated as a direct prediction of GPU memory consumption.
Cold starts matter in a service
The difference between a subsecond warm load and a cold load of more than ten seconds is significant. A load-on-demand, unload-after-use strategy can noticeably worsen the user experience.
Keeping a model resident avoids repeated cold starts, but reduces the memory available for other models. Model selection and memory-residency policy need to be considered together.
4. Choosing a Model by Workload
Scenario 1: An everyday model for Chinese text processing
If only one general-purpose text model will remain installed or resident, the tested 8B candidate is the strongest starting point. It produced more consistent Chinese output, its memory requirements were manageable on the 8GB device, and its warm performance was responsive enough for routine work.
Typical tasks include:
- Drafting weekly reports
- Editing and polishing documents
- Generating code comments
The broader principle is that an everyday model should be selected for output consistency, not just peak capability. An occasional severe hallucination can be more disruptive than a modest difference in average speed.
This result is specific to the tested candidates; parameter count alone does not guarantee language quality.
Scenario 2: Lightweight stages in a processing pipeline
For classification, title generation, and short-text rewriting, a 4B model can use resources more efficiently. It is less suitable for complex reasoning, but can work well as a narrowly scoped pipeline component:
Input text → 4B classification stage → 8B main processing stage → 4B summary stage → Output
Combining smaller and larger models is a useful local deployment pattern. Assign frequent, structured, verifiable tasks to the smaller model, and reserve the more resource-intensive model for work that needs its capabilities.
Scenario 3: Image understanding and screenshot interpretation
For reading screenshots, interpreting charts, and answering questions about images, the sparse-activation multimodal candidate was more practical than expected. It was faster than the larger multimodal option, while its image-understanding output was useful for everyday assistance.
If these tasks are frequent, keeping the model resident can avoid repeated cold-start delays, provided the memory budget allows it.
Scenario 4: Occasional complex visual tasks
The larger multimodal candidate produced more detailed descriptions, but its slower loading and generation made it less comfortable for routine use. Long responses made the delay more noticeable.
It is better suited to occasional, more demanding visual tasks than to being the default model. A routing layer can send straightforward requests to the smaller model and load the larger one only when a request appears to need it.
5. A Repeatable Model-Selection Workflow
The observations above can be reduced to five steps.
Set a VRAM budget.
As an initial planning allowance, reserve 20%–30% for KV cache and runtime overhead rather than filling memory based on model file size alone. Validate that allowance against the intended context length and concurrency.Separate workloads by type.
Distinguish general text generation, lightweight structured tasks, and multimodal understanding. They do not necessarily need the same model.Measure three core performance indicators.
Record cold-load time, warm-load time, and steady-state generation speed. Run the decisive tests on the actual target hardware, backend, and quantization configuration.Validate consistency in the target language.
Use a sufficiently broad set of real inputs. Check for unwanted language switching, hallucinations, and inconsistent output. For Chinese-language workflows, test Chinese directly rather than relying on general impressions of model quality.Define the serving strategy.
Decide which models remain resident and which load on demand. Add routing where different workloads justify different models.
6. Conclusion
Selecting a small-to-mid-sized local model is a trade-off among memory capacity, responsiveness, and output quality. Parameter count is only a starting point: architecture, quantization, workload, and deployment strategy all shape the final experience.
In this initial evaluation, the 8B candidate offered a useful balance for everyday Chinese text processing, the 4B candidate fit lightweight pipeline tasks, and the sparse multimodal candidate was a practical option for routine visual assistance. The larger model was better reserved for occasional requests where additional detail justified the delay.
These results describe relative behavior in one environment built around a laptop GPU with 8GB VRAM. They are not a substitute for testing the intended GPU inference path. Repeating the same workflow on the target machine is the most reliable way to make a deployment decision.
Further evaluation is planned for the CUDA build and for output-quality changes across quantization levels.
