Sqlcoder2 GPTQ by TheBloke

 »  All LLMs  »  TheBloke  »  Sqlcoder2 GPTQ   URL Share it on

Sqlcoder2 GPTQ is an open-source language model by TheBloke. Features: 15.8b LLM, VRAM: 9.2GB, License: other, Quantized, Code Generating, LLM Explorer Score: 0.1.

  4-bit   Base model:defog/sqlcoder2 Base model:quantized:defog/sql...   Code   Codegen   En   Gpt bigcode   Gptq   Quantized   Region:us   Safetensors

Sqlcoder2 GPTQ Benchmarks

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

Sqlcoder2 GPTQ Parameters and Internals

Model Type 
text-generation, natural language to SQL conversion
Use Cases 
Areas:
Research, Commercial applications
Primary Use Cases:
Natural language to SQL generation tasks
Limitations:
Requires tuning on specific schemas for optimal performance.
Additional Notes 
Fine-tuning on a given schema enhances performance.
Supported Languages 
en (Primary language for model tasks)
Training Details 
Data Sources:
20,000 human-curated questions based on 10 different schemas
Methodology:
Fine-tuned on a base StarCoder model
Hardware Used:
Tested on an A100 40GB GPU with bfloat16 weights
Input Output 
Input Format:
Formatted prompt with task and database schema.
Accepted Modalities:
text
Output Format:
SQL query
Performance Tips:
Using specific schema tuning enhances model performance.
LLM NameSqlcoder2 GPTQ
Repository 🤗https://huggingface.co/TheBloke/sqlcoder2-GPTQ 
Model NameSqlcoder2
Model CreatorDefog.ai
Base Model(s)  Sqlcoder2   defog/sqlcoder2
Model Size15.8b
Required VRAM9.2 GB
Updated2026-04-27
MaintainerTheBloke
Model Typegpt_bigcode
Model Files  9.2 GB
Supported Languagesen
GPTQ QuantizationYes
Quantization Typegptq
Generates CodeYes
Model ArchitectureGPTBigCodeForCausalLM
Licenseother
Transformers Version4.34.0
Tokenizer ClassGPT2Tokenizer
Vocabulary Size49152
Torch Data Typefloat16
Activation Functiongelu

Best Alternatives to Sqlcoder2 GPTQ

Best Alternatives
Context / RAM
Downloads
Likes
Sqlcoder GPTQ0K / 9.2 GB139
Octocoder GPTQ0K / 9.2 GB318
Redmond Hermes Coder GPTQ0K / 9.2 GB2910
Starchat Beta GPTQ0K / 8.9 GB7627
Starcoderplus GPTQ0K / 8.9 GB1625
Starcoder GPTQ0K / 8.9 GB613

Rank the Sqlcoder2 GPTQ 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