Sqlcoder2 by defog

 »  All LLMs  »  defog  »  Sqlcoder2   URL Share it on

Sqlcoder2 is an open-source language model by defog. Features: LLM, VRAM: 31.2GB, License: other, Code Generating, LLM Explorer Score: 0.11.

  Code   Codegen   En   Endpoints compatible   Gpt bigcode   Pytorch   Region:us   Sharded

Sqlcoder2 Benchmarks

nn.n% — How the model compares to the reference models: Anthropic Sonnet 3.5 ("so35"), GPT-4o ("gpt4o") or GPT-4 ("gpt4").

Sqlcoder2 Parameters and Internals

Model Type 
text-generation
Use Cases 
Areas:
Research, Commercial applications
Primary Use Cases:
Natural language to SQL query conversion
Training Details 
Data Sources:
human-curated questions based on 10 different schemas
Data Volume:
more than 20,000 questions
Methodology:
fine-tuned on a base StarCoder model
LLM NameSqlcoder2
Repository 🤗https://huggingface.co/defog/sqlcoder2 
Required VRAM31.2 GB
Updated2026-05-10
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.34.0
Tokenizer ClassGPT2Tokenizer
Vocabulary Size49152
Torch Data Typefloat16
Activation Functiongelu

Quantized Models of the Sqlcoder2

Model
Likes
Downloads
VRAM
Sqlcoder2 GGUF287556 GB
Sqlcoder2 GPTQ11219 GB

Best Alternatives to Sqlcoder2

Best Alternatives
Context / RAM
Downloads
Likes
Starcoderbase0K / 63.3 GB1461418
...rcoder Gpteacher Code Instruct0K / 63.3 GB97980
Opencoderplus0K / 31.8 GB1004102
StarCoder Alpaca0K / 31 GB10091
Sqlcoder0K / 31.2 GB359324
SteloCoder0K / 31.2 GB111
Minicoder Lua0K / 0.1 GB220
Minicoder Random0K / 0.1 GB120
...der15B Personal Copilot Merged0K / 31.2 GB163
DPO Santacoder1b0K / 2.2 GB80
Note: green Score (e.g. "73.2") means that the model is better than defog/sqlcoder2.

Rank the Sqlcoder2 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? 53972 in total.

Our Social Media →  
Original data from HuggingFace, OpenCompass and various public git repos.
Check out Ag3ntum — our secure, self-hosted AI agent for server management.
Release v20260328a