README.md 607 Bytes
Newer Older
mashun1's avatar
omnisql  
mashun1 committed
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
# 程式化自然语言问题合成

这是我们数据合成框架的最后一步,专注于为三元组生成分步思维链 (CoT) 解决方案。


## 第 1 步:思维链生成

```bash
# 运行 以准备用于生成 CoT 的提示
mkdir prompts
python3 generate_cot_synthesis_prompts.py
```

```bash
# 执行以生成样品的 CoT 解决方案
mkdir results
python3 synthesize_cot.py --model model_name --base_url vllm_serve_url(http://x.x.x.x:8000/v1)
```

## 第 2 步:后处理

```bash
# 执行基于执行的主要投票,选择最可靠的 CoT 解决方案
python3 post_process_cot.py
```