LLM EXPLORER 61,918 MODELS INDEXED

Sqlcoder2 GPTQ by TheBloke

By TheBloke · 12 downloads

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.09.

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

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-05-29
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 GB119
Octocoder GPTQ0K / 9.2 GB68
Redmond Hermes Coder GPTQ0K / 9.2 GB5110
Starchat Beta GPTQ0K / 8.9 GB5727
Starcoderplus GPTQ0K / 8.9 GB5225
Starcoder GPTQ0K / 8.9 GB6713