最新
4.7GB
适用于Postgres、Redshift和Snowflake的文本到SQL生成的高能语言模型,与最强大的通用前沿模型相当。
8B
2,156 Pulls 更新于3个月前
3 个月前更新
3 个月前
eeab9065e922 · 4.3GB
模型
架构llama
·
参数8.03B
·
量化Q3_K_L
4.3GB
参数
{"stop":["<|eot_id|>","<|end_of_text|>"],"temperature":0}
78B
自述文件
许可证: 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
评估
此模型在SQL-Eval上进行了评估,SQL-Eval是由Defog开发的基于PostgreSQL的评估框架,用于测试和校准模型功能。
更多关于SQLEval背后的方法,您可以在这里查看这里。
联系
在X上联系我们,请访问 @defogdata,或在电子邮件 [email protected] 上联系我们