Finetuned CodeGen for SQL Query Generation

Model Description

This model is a fine-tuned version of the Salesforce CodeGen model with 350M parameters, specialized in generating SQL queries from plain English text descriptions. It leverages the power of large language models to understand natural language and convert it into executable SQL, making it easier for analysts, developers, and data enthusiasts to interact with databases without deep SQL expertise.

Intended Use

This model is intended for the automatic generation of SQL queries from descriptions in English. It can be used to:

  • Quickly generate sample SQL queries for database analysis and reporting.
  • Assist in educational environments for learning SQL syntax.
  • Provide non-technical users with the ability to know how to retrieve data from databases using natural language.

How to Use

This model can be used with the Hugging Face Transformers library. Here is a quick example:


The link: https://huggingface.co/ansumanpandey/codgen-finetuned-SQLQueryGeneration/blob/main/The%20SQL%20Generation%20Code


Downloads last month
29
Safetensors
Model size
357M params
Tensor type
F32
·
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.