Chinese Open-Source LLMs: A Guide to Selection and Deployment

    Open-weight large language models (LLMs) have significantly lowered the barrier to utilizing cutting-edge AI, allowing developers to run, inspect, and fine-tune models on their own hardware. However, open weights do not equate to full transparency. This guide provides practical methods for evaluating, selecting, and deploying Chinese open-source LLMs across five key areas: understanding the distinction between open source and open weights, analyzing technical architectures, assessing real-world capabilities beyond public benchmarks, applying a comprehensive selection checklist, and executing local deployment step-by-step.

    Open-weight models lower the threshold for using cutting-edge AI. Developers can run models on their own hardware, inspect model behavior, and continue training based on business data. However, open weight does not equal full transparency; before selection, you must understand exactly what is being opened and how it can be used. This article organizes practical judgment methods for Chinese open-source LLMs across five dimensions: concepts, technology, evaluation, deployment, and risk.

    1. Distinguish “Open Source” from “Open Weights”

    Many articles mix these two terms, but they differ significantly in terms of compliance. Open weight means the publisher releases the model’s parameter files for users to download and deploy. Full open source typically includes the training code, inference code, and sometimes descriptions of the training data.

    The license dictates what you can do. Common licenses like Apache 2.0 and MIT have minimal commercial restrictions. Some vendors use custom community licenses that may impose limits on Monthly Active Users (MAU), specific industries, or redistribution methods.

    When selecting a model, read the full license text first and record the version number and download date. Licenses can change with new versions, so periodic reviews are necessary after a project goes live.

    2. Technical Routes: Four Key Choices to Watch

    Common technical choices in Chinese open-source models include Mixture of Experts (MoE), Grouped-Query Attention (GQA), Rotary Position Embedding (RoPE), and Knowledge Distillation. Understanding their functions helps determine the conditions under which a model is most efficient.

    • Mixture of Experts (MoE): This gives the model a large total parameter count, but only activates a subset of experts for each input. Computation is determined by the activated parameters, not the total. However, note that most implementations still require loading all expert weights into VRAM or RAM, meaning the total parameter count still impacts hardware requirements.
    • Grouped-Query Attention (GQA): This allows multiple query heads to share key-value heads, reducing the Key-Value (KV) cache footprint during inference. The longer the context, the more obvious the VRAM savings from this optimization.
    • Rotary Position Embedding (RoPE): Combined with position interpolation, RoPE can extend a model’s context window beyond its training length. However, the performance post-extension is unstable. Information loss or output degradation frequently occurs in segments exceeding the training length. You must verify this with long-text tests rather than just trusting the advertised maximum window size.
    • Knowledge Distillation: This allows smaller models to learn from the outputs of larger models and is a common method for model compression. How much capability is retained depends on the task type. Tasks like math reasoning and code generation typically experience more noticeable degradation compared to open-ended dialogue.

    3. Capability Evaluation: Don’t Rely Solely on Leaderboards

    Public leaderboards can provide a reference, but they rarely represent your specific business scenario. It is recommended to design your own test set around four types of capabilities.

    • Instruction Following: Test with instructions containing multiple constraints. For example, require the output to contain a specific number of metaphors, stay under a fixed word count, and target a specific audience. Tracking the pass rate for each constraint is more useful than looking at an overall score.
    • Long Context Understanding: This can be tested in two ways. First, embed specific information within a long text and test if the model can find it. Second, use real documents—such as contracts or financial reports—and spot-check the extraction accuracy of key numbers and clauses.
    • Long-Horizon Tasks: Focus on multi-step tool calling. Record the task completion rate, average number of steps, number of tool parameter errors, and the proportion of deviations from the original goal during execution.
    • Research Tasks: These tasks are the most prone to generating plausible but false content. The core of this testing is checking whether cited sources exist and whether key conclusions can be traced back to the original materials.

    For every type of test, record the failure cases. Failure boundaries guide the design of your application workflow better than average scores—for instance, indicating where human review must be inserted.

    4. Selection Checklist

    When selecting a model, you can verify item by item using the table below.

    Dimension Questions to Answer Basis for Judgment
    License Can it be used in commercial products? Are there user scale or industry restrictions? Full license text and version number
    Parameter Scale What are the total and activated parameters, respectively? Official publisher documentation
    VRAM Budget Can the target hardware fit the weights and cache? The estimation method below
    Quantization Scheme Is the precision loss acceptable? Before and after comparison on a custom test set
    Inference Speed Do the time-to-first-token and tokens-per-second meet requirements? Stress test data
    Domain Capability How does it perform on target languages and industry data? Evaluation on a custom dataset
    Ecosystem Maintenance Is the community active and continuously updated? Repository commit history and issue response times
    Known Limitations Does the official documentation list inapplicable scenarios? Model card and release notes

    For VRAM estimation, you can use a rough formula: weight memory footprint is approximately equal to the parameter count multiplied by the number of bytes per parameter. Taking a 7-billion parameter model as an example, half-precision (2 bytes per parameter) weights require about 14 GB, while 4-bit quantization (about 0.5 bytes per parameter) weights require about 3.5 GB. Actual usage must also account for the KV cache, framework overhead, and extra space for concurrent requests, so you should leave a margin when estimating.

    5. Basic Steps for Local Deployment

    The deployment process can be divided into six steps.

    Step 1: Confirm the license and model source. Only download from the official publisher’s channels and verify the file checksums.

    Step 2: Choose an inference framework. vLLM is suitable for multi-user concurrent service scenarios. llama.cpp is ideal for consumer-grade hardware and quantized models. Ollama is great for quick trials and personal development.

    Step 3: Choose a quantization scheme. Compare precision and speed on the same test set and record the differences.

    Step 4: Set the context length limit. A larger length means higher KV cache usage, so it should be configured based on actual business needs.

    Step 5: Conduct stress testing. Record concurrency, time-to-first-token, and throughput to ensure stable operation even under peak load.

    Step 6: Add authentication, rate limiting, and logging before the service goes live.