Choosing Lightweight LLMs for 8GB VRAM: Scenario-Based Test Reference

    This article provides reference measurements and selection guidance for running lightweight LLMs on an 8GB VRAM mobile discrete GPU. It covers general 4B and 8B text models plus E4B and 12B multimodal models, with data on file size, cold and warm load times, generation speed, and VRAM usage, while clearly stating test boundaries. It then recommends models for daily text chat, pipeline tasks, and image-related work, gives a pre-deployment checklist, and discusses how to divide work between local and cloud environments. The 12B model was not fully measured, so no selection conclusion is drawn for it.

    Many developers run local machines with only 8GB of VRAM, such as a mobile discrete GPU. When VRAM is tight, a model may fail to load or generate text too slowly for daily use. Parameter count is only a starting point for model selection. File size, load speed, generation speed, and VRAM headroom together determine whether a model can be used over the long term. This article provides several reference data points and explains the boundaries of those data so you can make judgments on your own machine.

    1. Test Conditions and Data Boundaries

    The test host machine had 64GB of system memory. WSL (Windows Subsystem for Linux) was allocated 32GB of memory for the Linux subsystem. The GPU was a mobile discrete GPU with 8GB of VRAM. Model files were stored in the Linux user directory, and the inference service was hosted by a common local LLM serving framework.

    It should be noted that the original test records did not fully describe the inference backend. The records mentioned using the CPU build of a certain C++ inference framework as a baseline, and they also reported VRAM usage. Therefore, the VRAM data below refers by default to results when the framework was running on the GPU, but the specific driver version, framework version, and CUDA state were not fully recorded. In addition, to compile a C++ inference framework with full CUDA capability yourself, the system must have a complete compilation toolchain installed. Before reproducing the tests, confirm that inference actually uses the GPU, for example by checking service logs or monitoring VRAM changes with nvidia-smi.

    The models tested in this article include general text models with 4B and 8B parameters, as well as multimodal models with E4B and 12B parameters. The 12B model was not fully measured, so this article does not draw model-selection conclusions from it.

    2. Reference Measurements

    Model Type File size Cold start load Warm start load Generation speed VRAM usage
    General 4B Text ~2.5GB ~12.3s 0.13 to 0.16s 38 to 43 tok/s ~2.7 to 2.8GB
    General 8B Text ~5.2GB ~16.8s ~0.23s 22 to 26 tok/s ~4.9GB
    E4B Multimodal ~9.6GB ~14.4s 0.66 to 0.72s 54 to 56 tok/s ~3.1GB
    12B Multimodal Not fully measured Not recorded Not recorded Not recorded Not recorded

    Cold start refers to the first load process in which the model is read from disk into memory. Warm start generally refers to a load process in which the model file is already in the system cache.

    The numbers above do not record prompt length, output length, batch size, quantization format, or measurement tools, so they should be treated as reference values rather than performance metrics that can be directly promised. In addition, the E4B file is nearly twice as large as the 8B file, but its VRAM usage is lower and its generation speed is faster. File size and runtime overhead cannot be directly converted into each other. Quantization format and model structure may be the reasons, and this article has not verified this.

    3. How to Choose by Scenario

    Which model for daily text chat?

    The 8B general model is suitable as the only resident local text model. In the test, its VRAM usage was about 4.9GB, leaving some headroom on an 8GB GPU. However, this value corresponds to the context length used in the test. As the context grows longer, cache usage increases and the actual headroom decreases accordingly. If business inputs are significantly longer than the test length, measure peak VRAM again first. Otherwise, some frameworks will offload part of the computation to system memory, causing a clear drop in speed and, in severe cases, direct errors.

    The original draft suggested that the 8B model produces more robust Chinese output, but no comparison samples were included. This judgment is for reference only. It is recommended to sample and check with your own real corpus.

    Which model for small pipeline tasks?

    The 4B general model is suitable for background tasks such as text classification, title generation, and short-text rewriting. Its VRAM usage is about 2.7 to 2.8GB, and its generation speed is about 38 to 43 tok/s, making it suitable for scenarios that are sensitive to both latency and resource consumption. It is not suitable for complex long-chain reasoning. If concurrent requests increase, each request will consume additional VRAM, so retesting is needed based on the actual concurrency level.

    Which model when image input is needed?

    The E4B multimodal model is suitable for daily assistance tasks such as screenshot understanding and chart interpretation. In the test, its VRAM usage was about 3.1GB, and its generation speed was about 54 to 56 tok/s. Note that this article did not systematically evaluate its image-understanding quality, so it can only be said that it can be put into use for these tasks; it cannot be asserted that it performs excellently on all vision tasks.

    Can the 12B model be used?

    This article did not complete full measurements of the 12B model and cannot provide a selection conclusion. If your task truly requires more detailed image descriptions, first measure cold start time, peak VRAM, and output speed on your own machine. After confirming that the results are acceptable, set it as an on-demand fallback model rather than a default resident model.

    4. Pre-Deployment Checklist

    1. VRAM headroom: record both the VRAM after model loading and the peak VRAM during inference, and reserve sufficient headroom. Specific values should be based on your own test results.
    2. Context length: test with the longest input used in the business scenario.
    3. Concurrency: concurrent requests consume VRAM at the same time, so retest according to the actual concurrency level.
    4. Quantization format: different quantized versions vary significantly in file size and VRAM usage. Record the actual version used.
    5. Fallback plan: when the main model fails to load or VRAM is insufficient, switch to the 4B model or shorten the context length.
    6. Measurement records: save measurement tools, commands, and service logs so that others can reproduce the results.

    5. How to Divide Work Between Local and Cloud

    Local lightweight models are suitable for sensitive data and high-frequency small tasks. Compute-intensive tasks can be handed off to the cloud. A common approach is to keep a resident small model locally and launch a larger model in the cloud when needed, switching between them through a unified interface.

    When using a hybrid approach, consider cross-border data transfer and compliance requirements, network latency, and cloud instance startup time. These factors often affect the final experience more than single-inference speed, and they should be included in the evaluation at the design stage.

    6. Conclusion

    With 8GB of VRAM, parameter count is not the only selection criterion. The 8B general model is suitable as the main daily text model, the 4B model is suitable for small background nodes, and the E4B multimodal model is suitable for image-related tasks. The 12B model needs to be tested separately in your own environment before its use is decided.

    The data in this article comes from a single specific configuration and represents reference values, not a universal performance promise. Before deployment, complete retesting in your own environment according to the checklist above.