最新版
4.7GB
这是一个为Postgres、Redshift和Snowflake设计的,能够将文本转换为SQL的强大语言模型,其能力与最强大的通用前沿模型相当。
8B
2156 次获取 更新于3个月前
3个月前更新
3个月前
82e0c4f0b61d · 6.1GB
模型
架构llama
·
参数8.03B
·
量化Q5_1
6.1GB
参数
{"stop":["<|eot_id|>","<|end_of_text|>"],"temperature":0}
78B
说明文
许可:cc-by-sa-4.0
这是一个为Postgres、Redshift和Snowflake设计的,能够将文本转换为SQL的强大语言模型,其能力与最强大的通用前沿模型相当。
模型描述
开发单位:Defog公司
模型类型:[文本到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(推特)上联系我们:[https://twitter.com/defogdata](https://twitter.com/defogdata),或者通过邮箱 [email protected]。