Chinese AI Model Uses Less Muscle for Coding Tasks

· Source: IEEE Spectrum · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Intermediate, medium

Summary

Z.ai, a Beijing-based lab, released its GLM 5.2 open-weights large language model on June 16, offering a cost-effective alternative for coding tasks. With 753 billion parameters (40 billion active), GLM 5.2's API costs US \$4.40 per million output tokens, significantly less than Anthropic's Opus 4.8 and Fable models. The model, released under an MIT open-source license, nearly ties Opus 4.8 on agentic coding benchmarks like FrontierSWE and PostTrainBench, and performs well in cybersecurity benchmarks. While some software engineers, like Zain Hasan, use it for simpler tasks to manage costs, others, such as David Nix, integrate it into their workflow for front-end development due to its ability to handle long-horizon tasks. However, some users, like Sai Kiran Myadaram, reported issues with rapid token exhaustion, rate limits, hallucinations, and overplanning.

Key takeaway

For AI Engineers and Directors of AI/ML evaluating coding assistant costs, Z.ai's GLM 5.2 presents a compelling, budget-friendly option. You should consider integrating this open-weights model for tasks like front-end development or long-horizon coding, where its performance nearly matches more expensive frontier models. Self-hosting GLM 5.2 can also mitigate data privacy concerns associated with Chinese-linked infrastructure, offering a strategic advantage for cost-conscious teams.

Key insights

GLM 5.2 provides a cost-effective, open-weights alternative for coding, challenging frontier models with competitive benchmarks and long-horizon task capabilities.

Principles

Method

Direct complex coding problems to frontier models and simpler, more straightforward tasks to less expensive, open-weights alternatives like GLM 5.2 to optimize costs.

In practice

Topics

Best for: AI Architect, Machine Learning Engineer, CTO, AI Engineer, Software Engineer, Director of AI/ML

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by IEEE Spectrum.