Downloads · 30 days
8
21% of all-time downloads
eglym/DR-TEXT2SQL-CodeLlama2-7B-Chinese
DR-TEXT2SQL-CodeLlama2-7B-Chinese is a machine learning model from eglym. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-sa-4.0.
The model weights were updated at 3 AM UTC on Sep 13, 2024.
Downloads · 30 days
8
21% of all-time downloads
All-time downloads
38
Public
Parameters
6.7B
13.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors13.5 GB · 100%
From the Hugging Face model README
The model weights were updated at 3 AM UTC on Sep 13, 2024.
A capable large language model for natural language to SQL generation.
Chinese
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.732 0.495 0.368 0.224 0.486