Phi2 Sqlcoder by pavankumarbalijepalli

 ยป  All LLMs  ยป  pavankumarbalijepalli  ยป  Phi2 Sqlcoder   URL Share it on

  Arxiv:1910.09700   Autotrain compatible   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 Benchmarks

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

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
Updated2024-12-22
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 GB222
Zephyr Rag Agent Webgpt0K / 40.1 GB141
Phi 2 Electrical Engineering0K / 5.6 GB9717
Phi Med V10K / 11.1 GB161
Note: green Score (e.g. "73.2") means that the model is better than pavankumarbalijepalli/phi2-sqlcoder.

Rank the Phi2 Sqlcoder 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? 40066 in total.

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