Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,34 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
A capable language model for text to SQL generation for Postgres, Redshift and Snowflake that is on-par with the most capable generalist frontier models.
|
3 |
+
|
4 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/603bbad3fd770a9997b57cb6/h52Z_OKYBaDDQMFZyU5pF.png)
|
5 |
+
|
6 |
+
## Model Description
|
7 |
+
|
8 |
+
Developed by: SenSen
|
9 |
+
|
10 |
+
增加模型对于中文语义理解
|
11 |
+
增加中文文本转sql数据集
|
12 |
+
|
13 |
+
## 项目简介
|
14 |
+
|
15 |
+
微调模型: [llama-3-8b-sqlcorder]
|
16 |
+
项目地址:(https://github.com/dusens/llama-3-8B-Instruct-text2sql)
|
17 |
+
|
18 |
+
## 理想的推理和提示参数
|
19 |
+
Set temperature to 0, and do not do sampling.
|
20 |
+
|
21 |
+
### Prompt
|
22 |
+
```
|
23 |
+
<|begin_of_text|><|start_header_id|>user<|end_header_id|>
|
24 |
+
|
25 |
+
Generate a SQL query to answer this question: `{user_question}`
|
26 |
+
{instructions}
|
27 |
+
|
28 |
+
DDL statements:
|
29 |
+
{create_table_statements}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
|
30 |
+
|
31 |
+
The following SQL query best answers the question `{user_question}`:
|
32 |
+
```sql
|
33 |
+
|
34 |
+
```
|