Sqlcoder by defog

 ยป  All LLMs  ยป  defog  ยป  Sqlcoder   URL Share it on

  Code   Codegen   En   Finetuned   Gpt bigcode   Pytorch   Region:us   Sharded
Model Card on HF ๐Ÿค—: https://huggingface.co/defog/sqlcoder 

Sqlcoder Benchmarks

nn.n% — How the model compares to the reference models: Anthropic Sonnet 3.5 ("so35"), GPT-4o ("gpt4o") or GPT-4 ("gpt4").
Sqlcoder (defog/sqlcoder)
๐ŸŒŸ Advertise your project ๐Ÿš€

Sqlcoder Parameters and Internals

Model Type 
text-generation
Use Cases 
Areas:
Research, Commercial applications
Applications:
Natural language to SQL conversion
Additional Notes 
This repository is now significantly outdated. It is recommended to use the improved version at sqlcoder-7b-2.
Supported Languages 
en (proficient)
Training Details 
Data Volume:
10,537 human-curated questions
Methodology:
Two-phase fine-tuning with questions classified by difficulty
Input Output 
Output Format:
SQL queries
LLM NameSqlcoder
Repository ๐Ÿค—https://huggingface.co/defog/sqlcoder 
Required VRAM31.2 GB
Updated2026-02-18
Maintainerdefog
Model Typegpt_bigcode
Model Files  10.0 GB: 1-of-4   9.9 GB: 2-of-4   9.9 GB: 3-of-4   1.4 GB: 4-of-4
Supported Languagesen
Generates CodeYes
Model ArchitectureGPTBigCodeForCausalLM
Licenseother
Transformers Version4.31.0
Tokenizer ClassGPT2Tokenizer
Vocabulary Size49152
Torch Data Typebfloat16
Activation Functiongelu

Quantized Models of the Sqlcoder

Model
Likes
Downloads
VRAM
Sqlcoder GGUF1915406 GB
Sqlcoder GPTQ9379 GB

Best Alternatives to Sqlcoder

Best Alternatives
Context / RAM
Downloads
Likes
Starcoderbase0K / 63.3 GB62373410
...rcoder Gpteacher Code Instruct0K / 63.3 GB178181
Opencoderplus0K / 31.8 GB849102
Sqlcoder20K / 31.2 GB572117
StarCoder Alpaca0K / 31 GB10321
SteloCoder0K / 31.2 GB181
Minicoder Lua0K / 0.1 GB80
Minicoder Random0K / 0.1 GB70
DPO Santacoder1b0K / 2.2 GB70
Tiny Starcoder Py0K /  GB902
Note: green Score (e.g. "73.2") means that the model is better than defog/sqlcoder.

Rank the Sqlcoder Capabilities

๐Ÿ†˜ Have you tried this model? Rate its performance. This feedback would greatly assist ML community in identifying the most suitable model for their needs. Your contribution really does make a difference! ๐ŸŒŸ

Instruction Following and Task Automation  
Factuality and Completeness of Knowledge  
Censorship and Alignment  
Data Analysis and Insight Generation  
Text Generation  
Text Summarization and Feature Extraction  
Code Generation  
Multi-Language Support and Translation  

What open-source LLMs or SLMs are you in search of? 51623 in total.

Our Social Media →  
Original data from HuggingFace, OpenCompass and various public git repos.
Release v20241124