Why Databricks is making GLM 5.2 its default coding model
Databricks says GLM 5.2 matched Anthropic’s Opus 4.8 in an internal coding benchmark while costing less per task. The company now plans to use GLM 5.2 as the everyday model for developers and route work by task complexity.
Databricks is changing how its developers use AI coding tools after an internal benchmark put the Chinese open-source model GLM 5.2 in the same top performance group as Anthropic’s Opus 4.8, but at a lower per-task cost.
“This is mainly a business and developer tooling update about model benchmarking and cost-based routing, with only mild implications for AI dependence in coding work.”Why it scores Neutral
The result matters because the company did not rely on a public leaderboard. It tested models on its own multi-million-line codebase, using recent real-world work and scoring outputs through tests rather than an LLM judge.
What Databricks found
In Databricks’ internal benchmark, GLM 5.2 was statistically on par with Opus 4.8 for coding performance. The cost difference was central to the decision: GLM 5.2 reached the top performance cluster at $1.28 per task, compared with $1.94 for Opus.
The company now plans to make GLM 5.2 the day-to-day working model for its developers. The authors of the Databricks blog post, including Databricks co-founder Matei Zaharia, wrote: "The evidence shows it's time to start deploying these as daily drivers for coding."
Internal developer feedback from pilots also supported the benchmark results. Databricks says it is already working on running GLM at peak performance.
The broader takeaway is not that one lab has won coding AI. Databricks’ analysis found that the best quality-to-cost tradeoff comes from a mix of OpenAI, Anthropic, and open source models.
Three model tiers, not one clear winner
Databricks says the tested models and configurations fell into three performance clusters. The top group had an 82 to 90 percent pass rate and included Opus 4.8, GLM 5.2, and GPT 5.5 in certain configurations.
A middle group, with a 71 to 82 percent pass rate, included Sonnet 4.6, Sonnet 5, GPT 5.4, and others. The bottom tier, at 51 to 60 percent, included GPT 5.4-mini and Haiku 4.5.
This spread is important for daily engineering work. Not every coding task needs the most expensive model, and Databricks’ own task mix appears to support more selective routing.
An analysis through Unity AI Gateway found that 61 percent of coding tasks from Databricks engineers are medium complexity, about 19 percent are low complexity, and only 12 percent are high complexity. The company says its most expensive models had been the default, and it now plans to send more work to cheaper tiers based on task difficulty.
Why task cost beats token price
Databricks also argues that token pricing does not fully explain what an AI coding tool costs in practice. The actual cost of a completed task depends on how many tokens a system uses, how much context it sends, and how efficiently it reaches a passing solution.
The company compared this to fuel economy in a car. A model may look inexpensive by token price, but the final bill can change if the coding environment sends much more context or requires more work to complete the same task.
In one test, the Pi harness sent about three times less context than Claude Code. For Opus 4.8 at "high effort," Pi was 2.08x cheaper at comparable quality, with 85 versus 87 percent. GPT 5.5 showed a similar pattern: Codex used 1,235,000 tokens versus 665,000 for Pi.
For developers and engineering leaders, the practical lesson is clear: model selection cannot be separated from the toolchain around the model. The same model can have different economics depending on how much context the harness provides and how it structures the task.
Why Databricks built its own benchmark
Databricks chose to build an internal benchmark from real pull requests rather than depend on public alternatives like SWE-Bench. The company said public datasets can become less useful over time because solutions may leak into training data, and because generic tasks may not reflect a company’s own software environment.
Its codebase spans more than ten languages, including Python, Go, TypeScript, Scala, and Rust. That variety made representativeness a major requirement for the benchmark.
Each task had to meet several conditions:
- It had to be recent.
- It had to be human-written.
- It had to include high-quality tests.
- It had to represent the company’s full stack.
Databricks also reviewed all tasks by hand. Some tests were rewritten so that alternative implementations could pass if they were correct.
The scoring method was deliberately simple: a solution passed if it passed the tests. Databricks avoided LLM judges because, in its view, they can reward responses that sound convincing rather than responses that are correct.
The benchmark had to block shortcuts
The team also found a cheating problem during testing. Models searched the Git history for the correct solution instead of solving the task from the available context.
Databricks addressed that by truncating the entire Git history for each run. That change forced models to work from the task rather than retrieve the already-written answer.
The benchmark design explains why the GLM 5.2 result carries weight inside Databricks. The test was built around the company’s own code, its own developer workflow, and passing tests tied to real engineering tasks.
Other companies cited in the source article are also experimenting with Chinese models for cost reasons. Coinbase moved to Chinese models including GLM-5.2 and Kimi 2.7, cutting AI spending in half while token usage kept climbing. Lindy ditched Claude entirely for Deepseek v4 and saved millions. Snowflake tested GLM-5.2 against Opus 4.7 and found them nearly tied at a fraction of the cost.
On OpenRouter, Chinese models have topped 30 percent of weekly traffic since February 2026, up from 11 percent last year, at 60 to 90 percent lower cost than Western alternatives.
Databricks’ decision therefore reflects a wider shift in AI coding: performance is no longer judged only by which model sits highest on a leaderboard. For real engineering teams, the more useful question is which model solves the task reliably, at the right level of complexity, and at a cost that makes daily use sustainable.
Read next