New Open-Source Sparse LLM: Efficient Inference and Multimodal Agent Workflows

    This article analyzes a new open-source sparse large language model with 320B total parameters and 18B activated parameters per token. It covers the model’s hybrid sparse and linear attention architecture, memory optimization for long-context agents, benchmark results in coding and agent tasks, a native visual coding loop for multimodal iteration, and cloud-native deployment practices using inference frameworks such as SGLang and vLLM on infrastructure such as Baidu AI Cloud.

    As large language models move deeper into software engineering and agent applications, reducing inference compute costs while preserving frontier capabilities has become a shared challenge for industry and the open-source community. A new open-source sparse large model has recently attracted attention for maintaining strong coding, agent, and multimodal capabilities at a relatively low activation scale, offering a new technical paradigm for long-context agents that need to run continuously. This article examines the model from four perspectives: architecture, capability evaluation, multimodal closed-loop workflows, and cloud deployment practices.

    Sparse Architecture and Memory Optimization

    The open-source model has 320B total parameters, but sparse designs such as mixture-of-experts allow it to activate only 18B parameters per token. Compared with the previous generation, activated parameters drop from 32B to 18B, and the number of layers is reduced from 92 to 45. This “wide and shallow” sparse design helps balance model capacity and computational latency.

    More importantly, the model uses a hybrid architecture that combines sparse attention and linear attention, and introduces mHC (multi-level head cache) and IndexPool mechanisms. When processing ultra-long contexts, standard self-attention grows quadratically with sequence length, while KV Cache memory usage expands rapidly, preventing long-text agents from running continuously. With the hybrid architecture, attention computation is reduced to about 1/3 of the traditional architecture, and KV Cache memory usage is reduced to about 1/4.4.

    These dual optimizations in memory and compute mean that, under the same hardware conditions, the model can support longer context windows—natively up to 1M context—and is less likely to be interrupted by memory overflow during multi-turn dialogue and complex tool calls. This provides a foundation for building autonomous agents with persistent memory.

    Coding and Agent Capability Evaluation

    Do these efficiency gains come at the expense of core capabilities? Results from a series of mainstream industry benchmarks show that performance remains strong. In a complex software engineering task evaluation, the model scored 63.4, compared with 46.2 for the previous generation. On an automated task benchmark, it reached 48.8, compared with 26.2 for the previous generation. In the highest thinking tier of a coding evaluation requiring deep reasoning, it reached 29.0, approaching the level of leading closed-source models at 29.5.

    These figures indicate that the model has first-tier strength in code generation, logical reasoning, and automated task orchestration. For enterprise developers, this means lower compute costs can be used to drive agents through demanding tasks such as code review, automated test writing, and continuous integration troubleshooting.

    Native Multimodal and Visual Coding Loop

    Another highlight is that the model brings native visual capabilities into the coding loop. Traditional multimodal coding often remains a one-way interaction of “input a screenshot, output code.” This model can actively inspect interfaces, judge rendering and interaction results, and continue iterating on code based on visual feedback.

    This “build, view, and check” mechanism is particularly useful for frontend development, game development, and 3D simulation tasks. Taking frontend component development as an example, the complete loop is as follows:

    1. Requirement parsing and coding: The model receives a natural language description and generates initial HTML/CSS/JS code.
    2. Environment rendering and screenshot capture: The code is executed in a sandbox environment, and a headless browser renders the page and captures its current state.
    3. Visual comparison and judgment: The model receives the rendered screenshot and uses its native visual capability to identify issues such as layout errors, overlapping elements, or missing interactions.
    4. Feedback correction and iteration: The model outputs corrected code based on visual judgment and repeats the process until the expected result is achieved.

    The following simplified pseudocode shows the core scheduling logic of such a visual coding agent:

    1. def visual_coding_agent(task_desc, max_iter=5):
    2. current_code = generate_initial_code(task_desc)
    3. for i in range(max_iter):
    4. # 1. Execute code and capture rendered screenshot
    5. screenshot = render_in_sandbox(current_code)
    6. # 2. Analyze with original requirements and visual feedback
    7. feedback = model_analyze(task_desc, current_code, image=screenshot)
    8. if feedback.is_correct:
    9. return current_code
    10. # 3. Fix code based on visual feedback
    11. current_code = model_fix_code(current_code, feedback.issues)
    12. return current_code

    Through this loop, the model no longer relies only on text logs for debugging. It gains a visual verification capability similar to that of human developers, significantly improving the success rate of complex UI tasks.

    Inference Deployment in Cloud-Native Environments

    The model now supports mainstream open-source local inference frameworks, such as SGLang, vLLM, and similar categories. For enterprise applications, achieving highly available and scalable deployment in cloud environments is key.

    On cloud-native infrastructure such as Baidu AI Cloud, a complete LLM inference and agent runtime platform can be built:

    1. Compute foundation: High-performance GPU compute clusters can support inference services, while container platforms provide elastic scaling to handle high-concurrency code generation requests.
    2. Storage and caching: For 1M ultra-long contexts and multimodal data, object storage can hold pretraining corpus caches, agent conversation histories, and intermediate rendered screenshots, ensuring high availability and low-latency reads.
    3. Monitoring and scheduling: Logging services and monitoring and alerting capabilities can track token generation speed, KV Cache hit rates, and agent task execution chains in real time, helping teams locate performance bottlenecks in long-context inference.

    By combining the architectural advantages of the open-source model with mature cloud-native services, developers can quickly build end-to-end intelligent development pipelines covering code generation, visual verification, and automated deployment, unlocking the productivity of multimodal agents in software engineering.

    Conclusion

    The new open-source sparse model discussed here balances computational efficiency, long-context support, and frontier coding capability through a design with 320B total parameters and 18B activated parameters, together with a hybrid attention architecture. Its native visual coding loop breaks the limitations of traditional text-only code generation. As efficient open-source models like this integrate more deeply with cloud-native foundations such as Baidu AI Cloud, the barrier to building complex multimodal agents will be further lowered, pushing software development toward a new stage of automation and intelligence.