Sqlcoder 7B by defog

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

  Autotrain compatible   Code   En   Endpoints compatible   Mistral   Pytorch   Region:us   Sharded
Model Card on HF ๐Ÿค—: https://huggingface.co/defog/sqlcoder-7b 

Sqlcoder 7B Benchmarks

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

Sqlcoder 7B Parameters and Internals

Model Type 
text-generation
Use Cases 
Areas:
Research, Commercial applications
Applications:
Natural language to SQL generation
Primary Use Cases:
Converting natural language to SQL queries
Limitations:
Model is outdated, suggested to use newer version
Additional Notes 
This model version is outdated. Recommended to use newer version (defog/sqlcoder-7b-2) for better performance.
Supported Languages 
en (high)
Training Details 
Data Sources:
Human-curated questions based on 10 different schemas
Data Volume:
20,000 questions
Methodology:
Fine-tuning on a base Mistral-7B model
Input Output 
Input Format:
Natural language queries
Accepted Modalities:
text
Output Format:
SQL queries
LLM NameSqlcoder 7B
Repository ๐Ÿค—https://huggingface.co/defog/sqlcoder-7b 
Model Size7b
Required VRAM14.4 GB
Updated2025-09-23
Maintainerdefog
Model Typemistral
Model Files  9.9 GB: 1-of-2   4.5 GB: 2-of-2
Supported Languagesen
Model ArchitectureMistralForCausalLM
Licensecc-by-sa-4.0
Context Length32768
Model Max Length32768
Transformers Version4.34.0.dev0
Tokenizer ClassLlamaTokenizer
Vocabulary Size32000
Torch Data Typebfloat16

Quantized Models of the Sqlcoder 7B

Model
Likes
Downloads
VRAM
Sqlcoder 7B GGUF01372 GB
Sqlcoder 7B GGUF178983 GB
Sqlcoder 7B AWQ3664 GB
Sqlcoder 7B GPTQ674 GB

Best Alternatives to Sqlcoder 7B

Best Alternatives
Context / RAM
Downloads
Likes
...Nemo Instruct 2407 Abliterated1000K / 24.5 GB14118
MegaBeam Mistral 7B 512K512K / 14.4 GB890850
SpydazWeb AI HumanAI RP512K / 14.4 GB171
SpydazWeb AI HumanAI 002512K / 14.4 GB181
...daz Web AI ChatML 512K Project512K / 14.5 GB120
MegaBeam Mistral 7B 300K282K / 14.4 GB377916
MegaBeam Mistral 7B 300K282K / 14.4 GB809216
Hebrew Mistral 7B 200K256K / 30 GB131615
Astral 256K 7B V2250K / 14.4 GB50
Astral 256K 7B250K / 14.4 GB50
Note: green Score (e.g. "73.2") means that the model is better than defog/sqlcoder-7b.

Rank the Sqlcoder 7B 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? 51534 in total.

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