最新版
4.7GB
一个强大的文本到SQL生成语言模型,适用于Postgres,Redshift和Snowflake,其性能与最顶尖的通用模型相当。
8B
2,156 拉取 更新于3个月前
3 个月前更新
3 个月前
ab8ef958853d · 16GB
模型
架构llama
·
参数8.03B
·
量化F16
16GB
params
{"stop":["<|eot_id|>","<|end_of_text|>"],"temperature":0}
78B
说明文档
许可协议: cc-by-sa-4.0
一个强大的文本到SQL生成语言模型,适用于Postgres,Redshift和Snowflake,其性能与最顶尖的通用模型相当。
模型描述
由: 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背后的方法的更多信息,请参阅此处。
联系方式
在Twitter上通过@defogdata或通过电子邮件至[email protected]与我们联系