最新版
4.7GB
适用于Postgres、Redshift和Snowflake的文本到SQL生成能力相当强的语言模型,与最强大的通用前沿模型相当。
8B
2,156 pull requests 更新于3个月前
上次更新 3 个月前
3 个月前
c9cb06d97ca0 · 4.7GB
模型
架构llama
·
参数8.03B
·
量化Q4_K_S
4.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]