一个为Postgres、Redshift和Snowflake设计的强大语言模型,可用于将文本转换为SQL,其能力与最具能力的通用前沿模型相当。

8B

2,156 拉取 更新于 3 个月前

说明文件

许可证: cc-by-sa-4.0

一个为Postgres、Redshift和Snowflake设计的强大语言模型,可用于将文本转换为SQL,其能力与最具能力的通用前沿模型相当。

image/png

模型描述

由: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开发的SQL-Eval上进行评估,SQL-Eval是基于PostgreSQL的评估框架,用于测试和校准模型能力。

您可以在这里了解更多关于SQLEval背后的方法。

联系我们

通过X在@defogdata联系我们,或在founders@defog.ai邮箱。