LLM EXPLORER 63,407 MODELS INDEXED

Phi2 Sqlcoder by pavankumarbalijepalli

By pavankumarbalijepalli · 116 downloads

Phi2 Sqlcoder is an open-source language model by pavankumarbalijepalli. Features: 2.8b LLM, VRAM: 5.6GB, License: mit, Quantized, LLM Explorer Score: 0.11.

  Arxiv:1910.09700   Custom code Dataset:b-mc2/sql-create-conte...   Doi:10.57967/hf/1886   En   Endpoints compatible   Gguf   Lora   Nl2sql   Peft   Phi   Quantized   Region:us   Safetensors   Sharded   Tensorflow

Phi2 Sqlcoder Parameters and Internals

Model Type 
CASUAL_LM
Use Cases 
Areas:
Generating SQL queries based on natural language questions and database schemas
Primary Use Cases:
NL2SQL automatic query generation
Limitations:
Complex logic or edge cases, Security vulnerabilities like SQL injection attacks
Considerations:
The context should be below 2048 tokens. Safety measures should be taken when using in production.
Additional Notes 
The Fine-tuned Phi-2 is smaller in size, thus faster and suitable for low-powered devices.
Supported Languages 
English (NLP), SQL ()
Training Details 
Data Sources:
b-mc2/sql-create-context
Context Length:
2048
Input Output 
Input Format:
Natural language question and relevant database schema
Accepted Modalities:
text
Output Format:
SQL query
LLM NamePhi2 Sqlcoder
Repository πŸ€—https://huggingface.co/pavankumarbalijepalli/phi2-sqlcoder 
Model Size2.8b
Required VRAM5.6 GB
Updated2026-07-11
Maintainerpavankumarbalijepalli
Model Files  5.0 GB: 1-of-2   0.6 GB: 2-of-2   5.6 GB
Supported Languagesen
GGUF QuantizationYes
Quantization Typegguf
Model ArchitectureAutoModelForCausalLM
Licensemit
Model Max Length2048
Is Biasednone
Tokenizer ClassCodeGenTokenizer
PEFT TypeLORA
LoRA ModelYes
PEFT Target Modulesdense|q_proj|k_proj|fc2|fc1|v_proj
LoRA Alpha16
LoRA Dropout0.05
R Param16

Best Alternatives to Phi2 Sqlcoder

Best Alternatives
Context / RAM
Downloads
Likes
Phi2 Bunny0K / 5.6 GB663
Zephyr Rag Agent Webgpt0K / 40.1 GB11
Phi 2 Electrical Engineering0K / 5.6 GB927
Phi Med V10K / 11.1 GB91
Note: green Score (e.g. "73.2") means that the model is better than pavankumarbalijepalli/phi2-sqlcoder.