P

Phi2 Nl2sql Lora

Developed by pavankumarbalijepalli
This is a fine-tuned version of Phi-2 on the b-mc2/sql-create-context dataset for NL2SQL use cases, specifically designed to convert natural language questions into SQL queries.
Downloads 49
Release Time : 2/20/2024

Model Overview

This model is fine-tuned based on microsoft/phi-2, focusing on the task of converting natural language questions into SQL queries, suitable for simple database query scenarios.

Model Features

Efficient Inference
41% faster inference time and lower memory usage compared to SQLCoder-7b-2
High Execution Success Rate
29% higher execution success rate than SQLCoder-7b-2 on test datasets
Lightweight
Suitable for deployment on low-power devices such as laptops or even mobile phones

Model Capabilities

Natural Language to SQL Query
Simple Database Query Generation
PostgreSQL Syntax Support

Use Cases

Database Query
Single Table Query
Generate simple SQL queries for single tables
High accuracy and execution success rate
Two-Table Query
Generate SQL queries involving joins between two tables
Moderate accuracy and execution success rate
Featured Recommended AI Models
AIbase
Empowering the Future, Your AI Solution Knowledge Base
Š 2025AIbase