XiYanSQL-QwenCoder
Alibaba models for turning questions into SQL, based on Qwen2.5-Coder. They work with different SQL dialects; a small 3B version suits modest hardware.
- Developer
- Alibaba, China
- First release
- Feb 2025
- Latest release
- Apr 2025
- Sizes
- 3B – 32B
- License
- Commercial use allowedApache 2.0
- Russian
- Not supported
- Running
- On your own serverAlso runs without a GPU
- Industries
- Finance, Retail and marketplaces, Software development
What it does
- Plain-language database questions
- Queries for different databases (PostgreSQL, MySQL, SQLite)
- Automating routine reports
Where it is used
Hardware requirements
Versions
- XiYanSQL-QwenCoder 3B – 32B (2504)
- XiYanSQL-QwenCoder 3B, 7B, 14B (2502) и 32B (2412)
How to run it
I can set this up end to end: pick the model size, deploy it on your server and connect it to your systems.
Frequently asked questions
Can XiYanSQL-QwenCoder be used in a commercial project?
Yes. License: Apache 2.0. It allows commercial use, but it is still worth having a lawyer review the license before launch.
What hardware does XiYanSQL-QwenCoder need?
At minimum: Laptop or regular PC, up to 8 GB of VRAM — smaller versions. Some versions also run on an ordinary CPU, without a GPU. You can calculate the exact VRAM for your model size and context in the hardware calculator.
Does XiYanSQL-QwenCoder support Russian?
No. The model card lists its languages and Russian is not among them.
Where can I download XiYanSQL-QwenCoder and what does it cost?
The XiYanSQL-QwenCoder weights are open and free to download. You only pay for the hardware it runs on and for the setup. Source links are at the bottom of this page.
How I deploy it for clients
- SelectionI pick the model size for your task and hardware and test it on your examples.
- DeploymentI deploy it on your server or in a closed network and provide an API.
- Fine-tuningI fine-tune it on your data (LoRA) or connect a knowledge base — whichever is cheaper for the task.
- IntegrationI connect it to your CRM, ERP, bot, website or team chat and set up monitoring.
Similar models
Models for turning questions into SQL, trained on millions of synthetic query examples across different databases. Three sizes for different hardware.
DetailsText to SQLArctic-Text2SQL-R1Snowflake · USACommercial use allowedA Snowflake model for turning questions into SQL, trained with reinforcement learning by checking query results. The open 7B version is based on Qwen2.5-Coder.
DetailsCodeQwen CoderAlibaba (Qwen team) · ChinaCommercial use allowedThe broadest open coding family: from 0.5B for autocompletion to 480B for agents. Qwen3-Coder-Next (80B, 3B active) works as a developer agent on a single GPU.
DetailsSource: huggingface.co/XGenerationLab/XiYanSQL-QwenCoder-3B-2504. Data checked against the model card on 22 Sep 2026. Have a lawyer review the license before commercial launch.


