A Guide to Selecting Open-Source LLMs from Chinese Teams: From Model Marketplace to Inference Services

    This article explains how to evaluate open-source large language models developed by Chinese teams and run them through inference-as-a-service platforms. It covers the value of "model marketplace" inference microservices, the key dimensions for model evaluation, a four-layer inference service architecture with model routing, and a practical methodology and engineering checklist for deployment. Readers will learn how to make rational, reproducible model selection decisions rather than relying solely on leaderboards.

    A Guide to Selecting Open-Source LLMs from Chinese Teams: From Model Marketplace to Inference Services

    In recent years, the ecosystem of open-source models from Chinese teams has developed rapidly, with several leading organizations releasing next-generation flagship models. At the same time, inference infrastructure has been evolving quickly, and “model marketplace”-style inference-as-a-service platforms have become mainstream. Developers no longer need to download weights and build their own inference frameworks; instead, like calling an ordinary API, they can select different models on demand. This article focuses on this trend from four perspectives: model capability evaluation, inference service architecture, a selection methodology, and practical deployment recommendations, to help developers and enterprises make rational technical decisions.

    1. Understanding the “Model Marketplace”: The Value of Inference Microservices

    Inference microservices are an architectural pattern that packages large model inference capabilities into standardized services. Its core value lies in:

    1. Hiding underlying complexity: Details such as model weight downloads, quantization, GPU memory management, batch scheduling, and GPU driver compatibility are handled by the platform, so developers only need to focus on business logic.
    2. Model replaceability: Business code targets a unified inference interface, allowing models to be swapped at low cost as the ecosystem evolves, avoiding deep lock-in to a specific model version.
    3. Elastic scaling: Inference traffic usually has clear peaks and valleys. Service platforms can combine autoscaling to control costs while maintaining low latency.
    4. Unified governance: Authentication, rate limiting, logging, monitoring, and auditing are managed centrally, helping enterprises meet compliance requirements.

    In the past, the “shelves” of such platforms were stocked mainly with overseas open-source models; today, a range of open-source models from Chinese teams has also entered them. This shift means enterprises can evaluate and schedule Chinese and overseas models within the same technical stack, significantly increasing selection freedom.

    2. What Dimensions Should You Evaluate in an Open-Source LLM?

    Many teams fall into “leaderboard worship” during model selection: they adopt a model simply because it ranks high on a certain leaderboard. Leaderboards do provide useful reference points, especially specialized ones for code generation, mathematical reasoning, and long-context tasks, but scores often diverge from real business performance. A more reliable evaluation framework includes the following dimensions.

    1. Development and Coding Capability

    For scenarios aimed at improving development efficiency, focus on:

    • Real repository-level task performance: the ability to understand cross-file dependencies and generate runnable changes, not just complete single lines of code.
    • Tool calling and agent capabilities: whether function calling, structured output, and multi-step planning are supported—this determines whether the model can be orchestrated as an agent.
    • Instruction/context adherence: whether the “lost in the middle” problem is severe in long contexts, and whether system prompts and early constraints remain effective in long conversations.

    The recommended approach is to build your own evaluation set: extract 100–500 typical tasks from real business scenarios (bug fixes, API integration, SQL generation, etc.), run them with unified prompts and toolchains, and compare success rates, rework rates, and manual review costs.

    2. Long-Context and Knowledge Processing

    Long context (128K and above) has become standard for flagship models, but actual usability varies significantly. When evaluating, focus on:

    • Needle in a Haystack tests: the ability to retrieve key information at different depths and positions.
    • Long-document summarization and multi-document QA: whether hallucinations, omissions, or contradictions occur.
    • Context caching and cost: the computational overhead and billing model for long-context inference.

    3. Reasoning and Mathematical Capability

    Complex tasks often require chain-of-thought. Observe the model’s stability in multi-step reasoning: whether it changes its answer midway, whether it can self-verify correctly, and whether performance is consistent between Chinese math problems and coding problems.

    4. Chinese-Language Semantics and Domain Adaptation

    Models from Chinese teams often have natural advantages in Chinese corpora, idioms and proverbs, and regulatory texts. For Chinese-intensive business scenarios (customer service, compliance review, content generation), build a dedicated Chinese evaluation set.

    5. Deployment and Operating Cost

    • Model size: models of different parameter scales differ greatly in GPU memory usage and throughput; assess them against your available compute.
    • Quantization schemes: measure the impact of INT8/INT4 quantization on accuracy and speed on your own tasks.
    • Inference framework compatibility: whether mainstream inference engines and open service interface standards are supported, to avoid lock-in by proprietary formats.

    3. Technical Architecture for Inference Services

    A typical model inference service architecture can be divided into four layers:

    1. ┌─────────────────────────────────────────────┐
    2. │ Application layer: chat assistant / coding │
    3. │ assistant / RAG / agents │
    4. ├─────────────────────────────────────────────┤
    5. │ Orchestration layer: prompt management / │
    6. │ tool calling / workflow orchestration │
    7. ├─────────────────────────────────────────────┤
    8. │ Service layer: inference gateway / │
    9. │ auth & rate limiting / load balancing │
    10. │ unified inference API / model routing │
    11. ├─────────────────────────────────────────────┤
    12. │ Infrastructure layer: GPU cluster / │
    13. │ autoscaling / monitoring & logging / │
    14. │ object storage / model registry │
    15. └─────────────────────────────────────────────┘

    Among these, the unified inference API + model routing is the key to the “model marketplace” experience. Here is an example of how to call it:

    1. import requests
    2. def chat(model: str, messages: list) -> str:
    3. resp = requests.post(
    4. "https://inference.internal.example/v1/chat/completions",
    5. headers={"Authorization": "Bearer <token>"},
    6. json={"model": model, "messages": messages},
    7. timeout=60,
    8. )
    9. resp.raise_for_status()
    10. return resp.json()["choices"][0]["message"]["content"]
    11. # Models can be swapped at low cost without changing business code
    12. print(chat("model-a", [{"role": "user", "content": "Explain KV Cache"}]))
    13. print(chat("model-b", [{"role": "user", "content": "Explain KV Cache"}]))

    Combined with a model routing strategy that dynamically selects models based on task type, cost, and latency requirements, you can use small models for simple tasks and large models for complex ones, balancing quality and cost. If you use managed cloud capabilities, you can further combine container platforms, logging services, and monitoring/alerting to quickly build a production-grade observable environment.

    4. Selection Methodology: Four Steps

    1. Define the scenario and acceptance criteria. Clarify task types (generation, extraction, Q&A, coding), language distribution, latency requirements, and budget. Quantify “good” into measurable metrics such as accuracy, first-token latency, and cost per 1,000 calls.
    2. Build your own evaluation set. Sample and anonymize real business data, covering both typical and edge cases. Never rely solely on public leaderboards.
    3. Run small-scale canary comparisons. Select 2–3 candidate models and run them in parallel with the same prompts and toolchains, collecting manual reviews and user feedback. Note that prompts themselves often need to be adapted and tuned per model; otherwise the comparison is unfair.
    4. Validate engineering readiness. Test long-context stability, concurrent throughput, failure retries, streaming output, and content safety filtering before deciding whether to scale up.

    5. Practical Deployment Recommendations

    • Abstract the model access layer. Don’t hardcode model names in business code. Wrap providers in a unified Provider interface to preserve room for switching.
    • Preserve evaluation assets. Version-control evaluation sets and scoring scripts so they can be re-run each time you switch models, forming a regression baseline.
    • Pay attention to content compliance. Generated content should be routed through moderation policies, especially in high-risk industries.
    • Make costs observable. Log token usage and latency per request to provide data for later model routing and budget optimization.
    • Use canary releases and rollbacks. Validate a new model on 5%–10% of traffic first, gradually increase traffic once metrics meet targets, and be able to switch back within seconds if problems arise.

    Conclusion

    Open-source models from Chinese teams are in a period of rapid capability growth, and the gap with overseas models has narrowed significantly on most general tasks; in some Chinese-language and coding scenarios they even hold an edge. For enterprises, rather than obsessing over “which model is smartest,” it is more valuable to invest in a unified inference service architecture, reproducible evaluation systems, and flexible model routing—so that as models iterate rapidly, you can always obtain the best capability at the lowest cost.