Downloads · 30 days
411
16% of all-time downloads
RichardErkhov/eglym_-_DR-TEXT2SQL-CodeLlama2-7B-gguf
eglym_-_DR-TEXT2SQL-CodeLlama2-7B-gguf is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
411
16% of all-time downloads
All-time downloads
2.5K
Public
Repo size
76.6 GB
Likes
0
Public
Click a slice to open those files.
.gguf88.7 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
DR-TEXT2SQL-CodeLlama2-7B - GGUF
license: cc-by-sa-4.0 datasets:
The model weights were updated at 3 AM UTC on Sep 12, 2024.
A capable large language model for natural language to SQL generation.
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: eglym Model type: [Text to SQL] License: [CC-by-SA-4.0] Finetuned from model: [CodeLlama-7B]
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 do_sample=False and num_beams=4 for optimal results.
Generate a SQL query to answer user_question.
Given the database schema, here is the SQL query that realize user_question.
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.
easy medium hard extra all
count 250 440 174 170 1034
compare etype exec
===================== EXECUTION ACCURACY =====================
exec 0.899 0.805 0.655 0.464 0.748