Chat2DB-SQL
A text-to-SQL model from the open Chat2DB database client: it supports different SQL dialects, with an English and Chinese model card.
The last open version came out in Apr 2024. The family has not been updated for a long time: the model still works, but do not expect fixes or new sizes.
- Developer
- Chat2DB, China
- First release
- Apr 2024
- Latest release
- Apr 2024
- Sizes
- 7B
- License
- Commercial use allowedApache 2.0
- Russian
- Not supported
- Ready-made builds
- GGUF
- Running
- On your own serverNeeds a GPU
- Industries
- Finance, Retail and marketplaces, Software development
What it does
- Turning a question into SQL inside a database client
- Drafting queries for different database engines
- Hints for developers working with a schema
Where it is used
Hardware requirements
Versions
- Chat2DB-SQL-7B
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. Quantization compresses a model so it takes less video memory and runs on more modest hardware. Answers change slightly, so quality is checked on your own examples.
Frequently asked questions
Can Chat2DB-SQL 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 Chat2DB-SQL need?
At minimum: Laptop or regular PC, up to 8 GB of VRAM — smaller versions. Without a GPU the model is not practical. You can calculate the exact VRAM for your model size and context in the hardware calculator.
Does Chat2DB-SQL support Russian?
No. The developer documentation lists the supported languages and Russian is not among them.
Where can I download Chat2DB-SQL and what does it cost?
The Chat2DB-SQL 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
One of the first open models that turn a plain-language question into an SQL query against a database. Available in Ollama, but newer competitors are already stronger.
DetailsText to SQLNatural-SQLChatDB · USACommercial use with conditionsA text-to-SQL model built on DeepSeek-Coder, aimed at complex questions spanning several tables and conditions.
DetailsText to SQLOmniSQLRenmin University of China (RUC) · ChinaCommercial use allowedModels for turning questions into SQL, trained on millions of synthetic query examples across different databases. Three sizes for different hardware.
DetailsSource: huggingface.co/Chat2DB/Chat2DB-SQL-7B. Data checked against the model card on 22 Sep 2026. Have a lawyer review the license before commercial launch.


