最新版
4.7GB
一个适用于Postgres、Redshift和Snowflake的文本到SQL生成的高级语言模型,性能与最先进的通用前沿模型相当。
8B
2,156 拉取 更新于3个月前
3个月前更新
3个月前
c93d3f61e387 · 3.7GB
模型
架构llama
·
参数8.03B
·
量化Q3_K_S
3.7GB
参数
{"stop":["<|eot_id|>","<|end_of_text|>"],"temperature":0}
78B
README
版权协议:cc-by-sa-4.0
一个适用于Postgres、Redshift和Snowflake的文本到SQL生成的高级语言模型,性能与最先进的通用前沿模型相当。
模型描述
由:Defog, Inc 开发
模型类型:[文本到SQL]
版权协议:[CC-by-SA-4.0]
调整自模型:[Meta-Llama-3-8B-Instruct]
演示页面
https://defog.ai/sqlcoder-demo/
理想的提示和推理参数
将温度设置为0,不要进行采样。
提示
<|begin_of_text|><|start_header_id|>user<|end_header_id|>
Generate a SQL query to answer this question: `{user_question}`
{instructions}
DDL statements:
{create_table_statements}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
The following SQL query best answers the question `{user_question}`:
```sql
评估
该模型在由Defog开发的基于PostgreSQL的评估框架SQL-Eval上进行评估,用于测试和校准模型功能。
您可以在此处阅读更多关于SQLEval背后的方法。
联系方式
在X(推特)上关注我们@defogdata,或在[email protected]发送电子邮件。