File size: 875 Bytes
3c56bb1
5c05e08
 
 
 
 
 
 
 
 
3c56bb1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

---
license: apache-2.0
language:
- zh
metrics:
- accuracy
tags:
- text-generation-inference
---

![image/png](https://cdn-uploads.huggingface.co/production/uploads/603bbad3fd770a9997b57cb6/h52Z_OKYBaDDQMFZyU5pF.png)

## Model Description

Developed by: SenSen

增加模型对于中文语义理解
增加中文文本转sql数据集

## 项目简介

微调模型: [llama-3-8b-sqlcorder]
项目地址:(https://github.com/dusens/llama-3-8B-Instruct-text2sql)

## 理想的推理和提示参数
Set temperature to 0, and do not do sampling.

### Prompt
```
<|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

```