Next-Generation Open-Source Multi-Spec LLMs: Capability Analysis and Implementation Practices

    This article explores a newly released series of open-source large language models optimized for advanced reasoning and agentic tasks. It details the model specifications, selection criteria, core capabilities such as multi-step planning and function calling, and provides a practical code example for implementing an agentic workflow.

    1. Background and Positioning

    In April 2026, a new series of open-source large language models designed for advanced reasoning and agentic tasks was released. Its goal is to bring multi-step planning, complex logical reasoning, and structured output capabilities to hardware ranging from mobile devices to workstations, while keeping parameter sizes manageable.

    For developers, these models offer three main practical values. First, they use a permissive open-source license with few restrictions on commercial use, making them suitable for direct product integration. Second, they come in a complete range of specifications under the same technical architecture, allowing developers to choose the appropriate version based on hardware budgets and latency requirements. Third, they natively support function calling and structured JSON output, facilitating seamless integration with existing business systems.

    2. Model Specifications and Selection

    The series includes four specifications, with parameter sizes ranging from approximately 2 billion to 31 billion:

    • Small Edge Edition: ~2 billion parameters, targeting resource-constrained environments like mobile phones and embedded devices, with native audio input support.
    • Small Edition: ~4 billion parameters, balancing edge capabilities and reasoning quality, also supporting audio input.
    • Medium Mixture of Experts (MoE) Edition: ~26 billion total parameters. The MoE architecture only activates a subset of expert networks during each inference pass, resulting in significantly lower computation than dense models with similar total parameters.
    • Large Dense Edition: ~31 billion parameters. Utilizes all parameters for every computation, offering a higher quality ceiling and suitable for workstation or multi-GPU server deployments.
    Specification Parameter Size Context Length Input Modalities Typical Scenarios
    Small Edge Edition ~2B 128K Text, Image, Video, Audio Offline assistants, on-device command understanding
    Small Edition ~4B 128K Text, Image, Video, Audio Lightweight local applications, mobile agents
    Medium MoE Edition ~26B (Total) 256K Text, Image, Video Server-side agents, code assistance
    Large Dense Edition ~31B 256K Text, Image, Video Workstation deployment, high-quality reasoning

    When selecting a model, consider three dimensions: the hardware budget determines the maximum feasible specification; latency targets dictate whether to prioritize architectures with fewer activated parameters; and quality requirements determine if a larger model is necessary. A common practice among development teams is to run through the entire workflow with a smaller model first, and then upgrade specific underperforming components.

    In widely used blind A/B text evaluation leaderboards, the Large Dense Edition ranked third among global open-source models, while the Medium MoE Edition ranked sixth. Leaderboard rankings will fluctuate as new models emerge, and general benchmarks cannot replace empirical testing in specific business scenarios.

    3. Core Capability Analysis

    3.1 Multi-Step Reasoning and Planning

    Agentic tasks often require breaking down a goal into several sub-tasks and adjusting subsequent steps based on intermediate results. The model’s multi-step planning and logical reasoning capabilities determine whether it can maintain the correct trajectory in long-chain tasks.

    In practice, you can prompt the model to output an execution plan before proceeding step-by-step. After each step, the program should validate the intermediate results. If deviations are detected, it should roll back or re-plan immediately, rather than waiting to check the overall output at the very end.

    3.2 Code Generation

    The models can generate functions, scripts, unit tests, and code review comments. While such outputs significantly improve development efficiency, generated code should not be pushed directly to production environments.

    A robust workflow is to compile or interpret the generated code first, then run unit tests and static analysis, and finally have a human review the critical logic. Code involving operations like file deletion or database writes must be validated in a sandbox before deployment.

    3.3 Function Calling and Structured Output

    Native function calling allows the model to select the appropriate function based on tool descriptions and generate invocation requests matching the parameter structure. Structured JSON output enables downstream programs to parse the model’s responses directly, reducing the fragility of using regular expressions to extract information.

    Even so, the model’s output may still suffer from missing fields or type errors. Client-side validation and exception handling are necessary engineering steps, not optional features.

    3.4 Multilingual and Multimodal

    The training corpus covers over 140 languages, making the models suitable for building applications for users across different regions. For low-resource language scenarios, it is recommended to build a dedicated evaluation set, as general leaderboard scores may not reflect actual performance in a specific language.

    All specifications support image and video inputs, suitable for tasks like screenshot understanding, document recognition, and surveillance footage analysis. The smaller editions also support audio input, which can be used for voice commands and field recording comprehension.

    4. Agentic Workflow Implementation Example

    A typical agentic loop involves the following steps: receiving a user request, the model deciding whether to call a tool, the program executing the tool and appending the result to the context, and the model continuing to reason based on the result until a final answer is provided.

    The example below demonstrates the basic structure of this loop. The model client is a placeholder object and should be replaced with the actual invocation method of your inference service in practice.

    1. import json
    2. # Tool description: name, purpose, and parameter structure for the model to decide when to call
    3. TOOLS = [
    4. {
    5. "name": "query_order_status",
    6. "description": "Query the current status of an order based on the order ID",
    7. "parameters": {
    8. "type": "object",
    9. "properties": {
    10. "order_id": {"type": "string", "description": "Order ID"}
    11. },
    12. "required": ["order_id"],
    13. },
    14. }
    15. ]
    16. def query_order_status(order_id: str) -> dict:
    17. # In a production environment, this calls a real business API; here it returns mock data
    18. return {"order_id": order_id, "status": "Shipped"}
    19. TOOL_HANDLERS = {"query_order_status": query_order_status}
    20. def parse_tool_call(raw_text: str):
    21. """Validate if the model output is a legal tool call, returns None if invalid"""
    22. try:
    23. call = json.loads(raw_text)
    24. except json.JSONDecodeError:
    25. return None
    26. if not isinstance(call, dict):
    27. return None
    28. if call.get("name") not in TOOL_HANDLERS or "arguments" not in call:
    29. return None
    30. return call
    31. def run_agent(llm, user_query: str, max_steps: int = 5) -> str:
    32. messages = [{"role": "user", "content": user_query}]
    33. for _ in range(max_steps):
    34. reply = llm.generate(messages=messages, tools=TOOLS) # llm is a placeholder model client
    35. call = parse_tool_call(reply)
    36. if call is None:
    37. # If it cannot be parsed as a tool call, treat it as the final answer.
    38. # In a production environment, distinguish between "final answer" and "format error" and handle them separately
    39. return reply
    40. try:
    41. result = TOOL_HANDLERS[call["name"]](**call["arguments"])
    42. messages.append({"role": "tool", "name": call["name"], "content": json.dumps(result)})
    43. except (TypeError, ValueError) as ex:
    44. messages.append({"role": "tool", "name": call["name"], "content": f"Error: {str(ex)}"})
    45. return "Max steps reached without a final answer."