Selecting Domestic LLMs for Enterprise Engineering: A Dual-Model Collaboration Architecture

    In enterprise and public sector projects, AI model selection is driven by strict compliance and sovereignty requirements, limiting the use of mainstream foreign models. This article explores the engineering trade-offs between small and large parameter domestic LLMs. While small models excel at rapid execution and standardized tasks, they often miss implicit design intents. Large models, however, understand complex architectural contexts and make superior design inferences. We analyze a practical dual-model collaboration architecture where large models act as the cognitive planner for complex reasoning, and small models serve as the efficient executor for routine coding tasks, balancing cost, efficiency, and quality in compliant engineering environments.

    The Real Constraints of Model Selection: Compliance and Cognitive Capability

    In government and enterprise projects, technology selection is never merely a performance benchmark. A frequently overlooked hard prerequisite is sovereignty and compliance. Public sector and critical information infrastructure projects generally impose strict security and controllability requirements on underlying models. Foreign models and their associated toolchains are often directly excluded from procurement. Consequently, the familiar overseas LLM ecosystems cannot enter the candidate list; the actual viable options are domestically developed model frameworks.

    Once these constraints are established, a deeper contradiction emerges: a model must not only “execute tasks” but also “understand intent.” In an integrated development environment, the model is expected to handle not just isolated Q&A, but a holistic understanding of business system architectures, data flow, and the anticipation of edge cases. There is a massive gap in engineering experience between a model that simply generates code and a model that comprehends why the code is written a certain way.

    Small Parameter Models: Efficient Execution but Limited Comprehension

    The market offers various lightweight models with smaller parameter scales, lower single-inference costs, and rapid response times. Driven by explicit instructions, they efficiently complete standardized tasks such as code completion, unit test generation, and log analysis. However, the most common engineering dilemma is not that the “model cannot do the task,” but rather that the “model does the task incorrectly.”

    Consider a typical enterprise data management scenario. The system needs to manage the ownership relationship between records and underlying data. To ensure data consistency during concurrent operations, the design requires adding an exclusive lock to the primary key ID of the underlying data. This is a highly specific engineering design decision: the lock granularity directly determines system concurrency and code complexity. If a model defaults to applying the lock to the directory ID of the record folder, it might pass functional tests but violates the original design intent. It fails to understand the fundamental difference in concurrency safety between “locking the data primary key” and “locking the record directory.” The former prevents the entire data record from being deleted by other users during backend operations, while the latter only protects the directory structure itself.

    This is the typical shortcoming of small parameter models. When instruction boundaries are clear and context is unambiguous, they perform exceptionally well. However, once instructions contain “implicit design intents” or “constraints requiring reasoning,” they tend to opt for the most common, superficial interpretation rather than the design solution best suited to the current context. Developers are forced to write exhaustively detailed prompts, explicitly listing every edge condition, as any ambiguous phrasing can introduce hidden defects.

    Large Parameter Models: Reasoning Beyond Semantics to Structure

    Conversely, the core advantage of large parameter models is not simply “higher benchmark scores,” but their capacity for joint modeling of complex contexts. They can simultaneously consider code context, business domain descriptions, data model definitions, and the design tendencies revealed in a developer’s recent interactions, thereby making more reasonable inferences from ambiguous instructions.

    Continuing the scenario above, a model with deep comprehension capabilities—upon seeing the description that “records depend on data,” the operational security requirements, and the overall system architecture—can automatically infer the engineering conclusion that “to prevent concurrent data deletion, the data primary key should be locked.” It does not require the developer to explicitly write out every design decision; instead, relying on a holistic perception of the system structure, it provides suggestions that maintain architectural consistency. This capability is particularly crucial when maintaining large-scale systems. Many design choices in projects are not optimal solutions, but compromises made after evaluating readability, team collaboration, and performance. Only by understanding the “rationale behind these compromises” can a model truly become a developer’s design partner rather than a mechanical code generator.

    Furthermore, in understanding unstructured text such as code comments and requirement descriptions, large parameter models are better at extracting core arguments, determining logical boundaries, and identifying flaws in reasoning. Small models often tend to speak in generalities and avoid focal points in similar tasks, whereas large models can grasp key dimensions such as “when this statement holds true, where it fails, and what the basis is.”

    Engineering Best Practices: A Dual-Model Collaboration Architecture

    Based on the analysis above, a highly effective strategy for implementing domestic models in actual projects is a hybrid architecture utilizing “large-small model collaboration.”

    In this architecture, the large parameter model assumes the “cognitive” role: understanding business requirements, parsing ambiguous instructions, performing system design reasoning, and generating overall schemes and key algorithmic logic. It does not prioritize the highest token generation speed; rather, it focuses on providing high-quality judgments at critical decision points. The small parameter model assumes the “executor” role: within the design framework established by the large model, it completes structured tasks such as code formatting, boilerplate code generation, and test case completion, leveraging its low-cost, low-latency advantages to improve overall development efficiency.

    The benefits of this combined approach include:

    • Controlled Quality: Core design decisions and boundary conditions are vetted by the large model, reducing the risk of deviating from the intended design.
    • Balanced Cost: High-cost inference calls are focused on critical nodes, while routine, repetitive work is handled by the low-cost model.
    • Compliance and Reliability: Both are domestic models, satisfying the data security requirements of enterprise projects.

    Re-evaluating Prompt Engineering: From “Wishing” to “Contracting”

    This collaborative model does not contradict the currently popular “wishful programming.” Wishful programming focuses on rapidly transforming ideas into runnable code, with the core objective of “having the model build things for you.” However, in a formal project development lifecycle, the model must adhere not only to functional requirements but also to various project-specific conventions: data dictionary naming standards, transaction boundary control strategies, unified exception code definitions, and even comment formatting requirements.

    Here, the model follows a “contract,” not a “wish.” A model with deep engineering understanding can recognize that “although a shorter syntax could be used here, conventional patterns must be adopted for team maintainability,” and adjust its output accordingly. This conscious adherence to “non-functional requirements” is currently unattainable for small parameter models.

    Conclusion

    The development of domestic models is not merely a race for parameter scale. For developers, understanding the applicable boundaries of different model scales and rationally designing collaboration workflows is of far greater practical value than debating “which model is stronger.” Under compliance constraints, adopting a combined strategy where “large parameter models handle understanding and planning, and small parameter models handle execution and output” achieves a superior balance among cost, efficiency, and quality. This will remain the mainstream choice for implementing intelligent coding capabilities in government and enterprise projects for the foreseeable future.