πŸ“‹ Model Description

Quantization made by Richard Erkhov.

Github

Discord

Request more models

sqlcoder-7b-2 - GGUF

  • Model creator: https://huggingface.co/defog/
  • Original model: https://huggingface.co/defog/sqlcoder-7b-2/

NameQuant methodSize
sqlcoder-7b-2.Q2K.ggufQ2K2.36GB
sqlcoder-7b-2.IQ3XS.ggufIQ3XS2.6GB
sqlcoder-7b-2.IQ3S.ggufIQ3S2.75GB
sqlcoder-7b-2.Q3KS.ggufQ3K_S2.75GB
sqlcoder-7b-2.IQ3M.ggufIQ3M2.9GB
sqlcoder-7b-2.Q3K.ggufQ3K3.07GB
sqlcoder-7b-2.Q3KM.ggufQ3K_M3.07GB
sqlcoder-7b-2.Q3KL.ggufQ3K_L3.35GB
sqlcoder-7b-2.IQ4XS.ggufIQ4XS3.4GB
sqlcoder-7b-2.Q40.ggufQ403.56GB
sqlcoder-7b-2.IQ4NL.ggufIQ4NL3.58GB
sqlcoder-7b-2.Q4KS.ggufQ4K_S3.59GB
sqlcoder-7b-2.Q4K.ggufQ4K3.8GB
sqlcoder-7b-2.Q4KM.ggufQ4K_M3.8GB
sqlcoder-7b-2.Q41.ggufQ413.95GB
sqlcoder-7b-2.Q50.ggufQ504.33GB
sqlcoder-7b-2.Q5KS.ggufQ5K_S4.33GB
sqlcoder-7b-2.Q5K.ggufQ5K4.45GB
sqlcoder-7b-2.Q5KM.ggufQ5K_M4.45GB
sqlcoder-7b-2.Q51.ggufQ514.72GB
sqlcoder-7b-2.Q6K.ggufQ6K5.15GB

Original model description:



license: cc-by-sa-4.0
library_name: transformers
pipeline_tag: text-generation


Update notice


The model weights were updated at 7 AM UTC on Feb 7, 2024. The new model weights lead to a much more performant model – particularly for joins.

If you downloaded the model before that, please redownload the weights for best performance.

Model Card for SQLCoder-7B-2

A capable large language model for natural language to SQL generation.

!image/png

Model Details

Model Description

This is the model card of a πŸ€— transformers model that has been pushed on the Hub. This model card has been automatically generated.

  • Developed by: Defog, Inc
  • Model type: [Text to SQL]
  • License: [CC-by-SA-4.0]
  • Finetuned from model: [CodeLlama-7B]

Model Sources [optional]

Uses

This model is intended to be used by non-technical users to understand data inside their SQL databases. It is meant as an analytics tool, and not as a database admin tool.

This model has not been trained to reject malicious requests from users with write access to databases, and should only be used by users with read-only access.

How to Get Started with the Model

Use the code here to get started with the model.

Prompt

Please use the following prompt for optimal results. Please remember to use dosample=False and numbeams=4 for optimal results.

### Task
Generate a SQL query to answer [QUESTION]{user_question}[/QUESTION]

Database Schema

The query will run on a database with the following schema: {tablemetadatastringDDLstatements}

Answer

Given the database schema, here is the SQL query that [QUESTION]{user_question}[/QUESTION] [SQL]

Evaluation

This model was evaluated on SQL-Eval, a PostgreSQL based evaluation framework developed by Defog for testing and alignment of model capabilities.

You can read more about the methodology behind SQLEval here.

Results

We classified each generated question into one of 6 categories. The table displays the percentage of questions answered correctly by each model, broken down by category.

dategroupbyorderbyratiojoinwhere
sqlcoder-70b9691.497.185.797.191.4
sqlcoder-7b-29691.494.391.494.377.1
sqlcoder-34b8094.385.777.185.780
gpt-47294.397.18091.480
gpt-4-turbo7691.491.462.888.677.1
natural-sql-7b5688.685.76088.680
sqlcoder-7b6482.974.354.374.374.3
gpt-3.57277.182.834.365.771.4
claude-25271.474.357.165.762.9

Model Card Contact

Contact us on X at @defogdata, or on email at [email protected]

πŸ“‚ GGUF File List

πŸ“ Filename πŸ“¦ Size ⚑ Download
sqlcoder-7b-2.IQ3_M.gguf
LFS Q3
2.9 GB Download
sqlcoder-7b-2.IQ3_S.gguf
LFS Q3
2.75 GB Download
sqlcoder-7b-2.IQ3_XS.gguf
LFS Q3
2.6 GB Download
sqlcoder-7b-2.IQ4_NL.gguf
LFS Q4
3.58 GB Download
sqlcoder-7b-2.IQ4_XS.gguf
LFS Q4
3.4 GB Download
sqlcoder-7b-2.Q2_K.gguf
LFS Q2
2.36 GB Download
sqlcoder-7b-2.Q3_K.gguf
LFS Q3
3.07 GB Download
sqlcoder-7b-2.Q3_K_L.gguf
LFS Q3
3.35 GB Download
sqlcoder-7b-2.Q3_K_M.gguf
LFS Q3
3.07 GB Download
sqlcoder-7b-2.Q3_K_S.gguf
LFS Q3
2.75 GB Download
sqlcoder-7b-2.Q4_0.gguf
Recommended LFS Q4
3.56 GB Download
sqlcoder-7b-2.Q4_1.gguf
LFS Q4
3.95 GB Download
sqlcoder-7b-2.Q4_K.gguf
LFS Q4
3.8 GB Download
sqlcoder-7b-2.Q4_K_M.gguf
LFS Q4
3.8 GB Download
sqlcoder-7b-2.Q4_K_S.gguf
LFS Q4
3.59 GB Download
sqlcoder-7b-2.Q5_0.gguf
LFS Q5
4.33 GB Download
sqlcoder-7b-2.Q5_1.gguf
LFS Q5
4.72 GB Download
sqlcoder-7b-2.Q5_K.gguf
LFS Q5
4.45 GB Download
sqlcoder-7b-2.Q5_K_M.gguf
LFS Q5
4.45 GB Download
sqlcoder-7b-2.Q5_K_S.gguf
LFS Q5
4.33 GB Download
sqlcoder-7b-2.Q6_K.gguf
LFS Q6
5.15 GB Download