一种适用于Postgres、Redshift和Snowflake文本到SQL生成的语言模型,其能力与最强大的通用前沿模型相当。

8B

2,156 Pulls 更新于3个月前

16 标签

使用说明

许可证: 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 开发的用于测试和验证模型能力基于 PostgreSQL 的评估框架 SQL-Eval 上进行了评估。

您可以在此处了解更多关于 SQLEval 的方法 behind 这里.

联系

在 X 上联系我们 @defogdata,或在 founders@defog.ai 电子邮件地址