Mubit-Qwen2.5-Coder-32B-SQL - an AI model for generating SQL queries
2 min read
The model is built on Qwen/Qwen2.5-Coder-32B-Instruct and specializes in converting natural language into complex SQL queries with multiple joins and precise database schema compliance. The new release demonstrates high query execution accuracy on complex datasets and significantly reduces off-topic drift compared to alternatives. At the same time, the model retains the base programming capabilities and safety standards of the original. The solution is suitable for developers of BI systems, analytical tools, and text-to-SQL interfaces.
Key features
- High accuracy: Achieves
91.7%execution accuracy on theBIRD-SQL Hardbenchmark, outperforming a number of specialized alternatives. - Minimal drift: Demonstrates a
12.7×lower median off-topic KL deviation level compared to the competing model. - Safety and coding: Fully preserves the safety metrics of the source model (including
HarmBenchandLongHealth) and support for common programming languages. - Open license: Distributed under the free
Apache 2.0license in BF16 weights.
What you can do
- Text-to-SQL interface: Integrate the model into an analytical assistant so users can query database data using plain language.
- BI copilot: Use it to automatically generate complex database queries in business intelligence and dashboards.
- Schema analysis: Apply the model to build queries taking strict SQLite syntax and table structure requirements into account.
Example
Launching the model server using vllm:
vllm serve MubitLabs/Mubit-Qwen2.5-Coder-32B-SQL --dtype bfloat16 --max-model-len 32768Read more
DetailsBenchmarks:
91.7% (BIRD-SQL Hard), 0.864 (CUAD F1), 0.812 (IFEval).Requirements: weights in
bfloat16 format, powerful hardware required for a 32B parameter model.Limitations: not intended for direct execution of write queries on production databases without a sandbox (read-only) and validation.
Details: fine-tuned on Qwen2.5-Coder-32B-Instruct to handle complex relational queries.










Comments