European Open Source AI Index
DatabaseNewsGuidesAboutContribute

SQLCoder

by Defog.ai

Text-to-SQL model.
Code
Latest
https://huggingface.co/defog/sqlcoder-7b-2
CodeLlama-7B
SQLCoder-7B-2
CC-BY-SA-4.0
Organization creating code generation for LLMs.
https://huggingface.co/defog
February 2024
Availability
Base Model Data
Proprietary dataset used.
End User Model Data
Data sources published in GitHub repo
https://github.com/defog-ai/sql-eval
Base Model Weights
Gated model available on HuggingFace.
https://huggingface.co/meta-llama/CodeLlama-7b-Instruct-hf
End User Model Weights
Weights made available on HuggingFace.
https://huggingface.co/defog/sqlcoder-7b-2
Training Code
GitHub exists, but mainly contains inference code. Training procedure broadly outlined in text.
https://github.com/defog-ai/sqlcoderhttps://defog.ai/blog/open-sourcing-sqlcoder2-7bhttps://defog.ai/blog/sqlcoder2-technical-details
Documentation
Code Documentation
No code, so no documentation.
Hardware Architecture
No description of hardware architecture found.
Preprint
Info about model released through blog post.
https://defog.ai/blog/open-sourcing-sqlcoder2-7b
Paper
No peer-reviewed paper found.
Modelcard
Model card provides a decent amount of information.
https://huggingface.co/defog/sqlcoder-7b-2
Datasheet
No datasheet found.
Access
Licenses
CC-BY-SA-4.0.
https://huggingface.co/defog/sqlcoder-7b-2
Is this information not up to date?
Contribute here ->
Supported by the Centre for Language Studies and the Dutch Research Council. Website design & development © 2024 by BSTN. This version of the index generated 09 April 2026, website content last updated 11 March 2026.