AI Models
Open-source code LLMs have reached a turning point. Models like Qwen3-Coder now report results around 69.6% on SWE-bench Verified, while offering full deployment control and zero API lock-in. But choosing the right model is only half the equation — running these models at production scale requires AI infrastructure that handles secure code execution, CPU and GPU compute, and dynamic scaling.

Open-source code LLMs have reached a turning point. Models like Qwen3-Coder now report results around 69.6% on SWE-bench Verified, a widely used human-filtered benchmark of 500 real GitHub issue-resolution tasks, while offering full deployment control and zero API lock-in. But choosing the right model is only half the equation. Running these models at production scale requires AI infrastructure that handles secure code execution, CPU and GPU compute, and dynamic scaling. This guide covers seven options for building custom coding agents in 2026: Modal as the serverless infrastructure foundation, followed by six open-source code LLMs ranked by benchmark performance, licensing, and production readiness.
Modal provides the serverless infrastructure that makes deploying open-source code LLMs practical for production coding agents. The platform handles containerization, GPU scheduling, and auto-scaling through native SDKs, eliminating the infrastructure management overhead that typically slows agent development.
Modal has completed a SOC 2 Type 2 audit and supports HIPAA-compliant workloads on Enterprise plans via a Business Associate Agreement (BAA). The platform uses gVisor-based sandboxing for compute isolation, TLS 1.3 for public APIs, and encryption for data in transit and at rest.
Modal powers production workloads for AI companies across agent systems, video processing, inference, and batch workloads:
Best For: Teams that need to deploy any open-source code LLM with secure sandboxed execution, CPU and GPU compute, and production-grade scaling.
GLM-5.2 posts strong open-source coding results, reporting 62.1 on SWE-bench Pro in its official release materials. Its 1M token context window makes it well suited for repository-scale agentic coding.
GLM-5.2 excels at complex, multi-file refactoring and full-stack application generation where other models require multiple passes or external context management.
Best For: Teams building agents that work across entire repositories or need strong coding benchmark performance with repository-scale context.
Qwen3-Coder is a leading open-weight coding model with strong SWE-bench Verified results reported at 69.6%, though the exact figure depends on the benchmark scaffold, turn budget, and source. It offers the most permissive licensing in its performance class. Alibaba's long-horizon agent reinforcement learning across large-scale parallel coding environments makes it particularly effective for agentic workflows.
Qwen3-Coder's combination of benchmark leadership and permissive licensing makes it the default choice for teams that need both capability and deployment flexibility.
Best For: Enterprise teams requiring maximum coding performance under the cleanest possible license terms, especially for multi-language codebases.
Devstral-Small-2505 proves that compact models can compete with giants for agentic coding tasks. At just 24B parameters, it achieves 46.8% SWE-bench Verified, outperforming much larger models when evaluated under the same agent scaffold, while remaining small enough for local deployment.
Devstral-Small demonstrates that careful training can compensate for parameter count, beating DeepSeek-V3-0324 (671B) and Qwen3-232B-A22B when evaluated under consistent agent conditions.
Best For: Teams that need self-hosted agentic coding without massive infrastructure, or want a capable local model for development before deploying larger models in production.
Qwen2.5-Coder-32B hits the sweet spot for cost-efficient code generation. Its 92.7% HumanEval pass@1 score demonstrates exceptional single-function correctness, while its dense 32B architecture can be served cost-effectively on a single high-memory GPU, with quantization or memory optimization required to fit within 40GB.
Qwen2.5-Coder excels at code completion, single-file generation, and IDE integration where repository-scale context is less critical than fast, accurate completions.
Best For: Teams building code completion tools, CI/CD integrations, or agents focused on function-level tasks where a 480B MoE model would be overkill.
DeepSeek-Coder-V2 remains a strong open-weight code model with documented benchmark performance and broad language coverage. Its 90.2% HumanEval score and established ecosystem of fine-tuned derivatives make it a dependable option for teams that value documented reliability.
While newer models achieve higher benchmark scores, DeepSeek-Coder-V2's reliability and established tooling reduce deployment risk for production systems.
Best For: Teams that prioritize production stability over bleeding-edge benchmarks, or need a proven baseline for building specialized fine-tuned variants.
Granite-34B-Code-Instruct-8K is a historically important, Apache 2.0-licensed coding model from IBM Research. It is now deprecated and not recommended for new projects, having been superseded by IBM's current mainline Granite models, but its permissive license and focus on code explanation and fixing made it a notable enterprise-oriented option. For new 2026 deployments, IBM's current Granite models are the better reference.
Granite trades raw benchmark performance for licensing clarity, and historically suited code review and documentation generation use cases, though it is deprecated for new builds.
Best For: Enterprise teams in regulated industries where licensing clarity outweighs pure benchmark performance, with the caveat that this specific model is deprecated and current Granite models should be evaluated for new deployments.
Modal's architecture addresses the specific challenges of running code LLMs for agentic applications. The platform's custom container runtime, scheduler, and file system are optimized for the dynamic scaling and fast cold starts that agent workflows demand.
Coding agents generate and execute code autonomously, making isolation essential. Modal's sandboxes provide gVisor-isolated containers that support 100k+ concurrent sandboxes with observability through logging and monitoring, enabling agents to safely execute untrusted generated code at production scale.
Open-source code LLMs span a wide range of compute requirements, from Devstral-Small-2505 on a single GPU to GLM-5.2 requiring multi-GPU clusters. Modal's GPU support covers T4 through B200 (and RTX-PRO-6000), letting teams match infrastructure to model requirements without separate procurement for each tier.
Modal's native SDKs eliminate YAML configuration and infrastructure management overhead. Teams define compute, images, and scaling behavior in code using Modal's Python, TypeScript, and Go SDKs. This approach enables the rapid iteration that Sync Labs demonstrates with 95 deployments per day.
Modal powers infrastructure for over 10,000 teams, including AI companies like Ramp and Suno. This production track record demonstrates reliability for enterprise coding agent deployments where downtime directly impacts developer productivity.
For teams building coding agents with open-source LLMs, Modal's combination of secure sandboxed execution, flexible CPU and GPU access, and developer-friendly SDKs provides the infrastructure foundation that makes these models production-ready.
Explore the Modal documentation to get started.
Explore the Modal documentation to get started with open-source code LLM deployment.
View Modal DocsSWE-bench Verified is a human-filtered subset of 500 SWE-bench instances that evaluates whether systems can resolve real GitHub issues; many leading evaluations run it with agentic, multi-turn scaffolds. Unlike HumanEval (single-function correctness), it tests the complete workflow coding agents perform: understanding context, planning changes, and implementing fixes across multiple files. GLM-5 reports 77.8% on SWE-bench Verified, while GLM-5.2's official release materials report 62.1 on SWE-bench Pro. Scores should be interpreted alongside the specific scaffold used and other benchmarks.
Mixture-of-Experts (MoE) models like GLM-5.2 and Qwen3-Coder offer higher total parameters with only a fraction active per inference, balancing capability with cost. Dense models like Qwen2.5-Coder-32B and Devstral-Small provide simpler deployment and more predictable performance. Choose MoE for maximum capability when infrastructure supports it; choose dense for straightforward single-GPU deployment or local development.
Requirements vary significantly by model size. Devstral-Small-2505 (24B) runs on high-end consumer hardware. Qwen2.5-Coder-32B can be served on a single high-memory GPU with quantization or memory optimization. GLM-5.2 (744B-753B) requires multi-GPU clusters. Modal's serverless infrastructure handles this variability automatically, scaling across cloud GPU tiers from T4/L4/A10/L40S through A100/H100/H200/B200-class hardware based on workload requirements.
Apache 2.0 permits unrestricted commercial use, modification, and distribution, though it still carries terms such as notice-preservation obligations and patent provisions. Four of the seven models in this list (Qwen3-Coder, Devstral, Qwen2.5-Coder, Granite) use Apache 2.0, a permissive license often attractive for risk-averse enterprises that need clear legal terms, though organizations still need normal legal and procurement review.
Coding agents generate and execute code autonomously, creating potential for malicious or buggy code to cause damage. Sandboxed execution isolates this code in secure environments where it cannot access host systems, other workloads, or sensitive data. Modal's gVisor-based sandboxes provide this isolation at scale, essential for production coding agent deployments.
The leading models demonstrate strong architectural capability. GLM-5.2's 1M context window enables processing entire repositories for refactoring decisions. Qwen3-Coder's training across large-scale parallel environments includes complex multi-step planning scenarios. For pure architecture generation, pairing these models with retrieval systems and iterative refinement produces the best results.