defog-ai/sqlcoder
SoTA LLM for converting natural language questions to SQL queries observed · 2026-08-28
Health v2 · maintenance only
28/100
- Activity 0
- Release rhythm 35
- Longevity 79
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1112
- days_rel: n/a
- days_push: 832
- n_releases_24m: 0
Adoption not part of the score
4044 stars · 276 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
SQLCoder is a family of fine-tuned open-weight LLMs that convert natural language questions into SQL queries, outperforming GPT-4 on text-to-SQL benchmarks. It ships as a pip-installable package with a CLI launcher for connecting to databases and querying them visually.
Use cases
- convert natural language questions to SQL queries
- let non-technical users query a database in plain English
- self-host a text-to-SQL model instead of calling GPT-4
- generate SQL for novel database schemas
- run text-to-SQL locally on a GPU or Apple Silicon
When to choose
- you need high-accuracy text-to-SQL generation with open weights you can self-host
- you want to avoid sending schema data to closed LLM APIs
- you have a GPU with 16GB+ VRAM or Apple Silicon for local inference
When to avoid
- you need a general-purpose chat or coding assistant rather than SQL generation
- you cannot run local models and lack budget for GPU inference
- you need guaranteed-correct SQL without validation, since LLM output can still be wrong
Facets
library · maturity active
llm-inference machine-learning nlp database large-language-models databases python windows text-to-sql sql-generation fine-tuned-llm llama open-weights natural-language-processing gpu macos linux
2 sources
- readme: https://github.com/defog-ai/sqlcoder · fetched 2026-08-28 · 09e0b471e58d
- registry_pypi: https://pypi.org/pypi/sqlcoder/json · fetched 2026-08-29 · 4c19cb3a364c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| defog-ai/sqlcoder | main | 28 |
For agents
markdown · JSON · MCP: product_card(name="defog-ai/sqlcoder")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem