Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ChatGLM3-6B_pytorch
Commits
3e1bad38
Commit
3e1bad38
authored
May 10, 2024
by
lvzhen
Browse files
Update README.md
parent
9aa71e93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
README.md
README.md
+8
-8
No files found.
README.md
View file @
3e1bad38
...
@@ -113,8 +113,8 @@ python process.py
...
@@ -113,8 +113,8 @@ python process.py
#### 单轮对话微调
#### 单轮对话微调
```
bash
```
bash
cd
./finetune_demo
cd
./finetune_demo
bash sft.sh
bash sft.sh
```
```
注意:请根据自己的需求配置其中的模型路径、数据集路径;batchsize、学习率等参数在./finetune_demo/configs/sft.yaml;
注意:请根据自己的需求配置其中的模型路径、数据集路径;batchsize、学习率等参数在./finetune_demo/configs/sft.yaml;
...
@@ -126,8 +126,8 @@ python process.py
...
@@ -126,8 +126,8 @@ python process.py
注意:此时要将hf上下载的原生
`tokenizer_config.json`
和
`tokenization_chatglm.py`
两个文件放入要待测的 checkpoint 文件夹下,比如./finetune_demo/output/checkpoint-3000/
注意:此时要将hf上下载的原生
`tokenizer_config.json`
和
`tokenization_chatglm.py`
两个文件放入要待测的 checkpoint 文件夹下,比如./finetune_demo/output/checkpoint-3000/
```
bash
```
bash
cd
./finetune_demo
cd
./finetune_demo
bash sft_inf.sh
bash sft_inf.sh
```
```
...
@@ -137,8 +137,8 @@ python process.py
...
@@ -137,8 +137,8 @@ python process.py
#### 单轮对话微调
#### 单轮对话微调
```
bash
```
bash
cd
./fintune_demo
cd
./fintune_demo
bash lora.sh
bash lora.sh
```
```
注意:请根据自己的需求配置其中的模型路径、数据集路径;batchsize、学习率等参数在 ./finetune_demo/configs/lora.yaml;
注意:请根据自己的需求配置其中的模型路径、数据集路径;batchsize、学习率等参数在 ./finetune_demo/configs/lora.yaml;
...
@@ -150,8 +150,8 @@ python process.py
...
@@ -150,8 +150,8 @@ python process.py
注意:经过LORA微调训练后的checkpoint无需复制原生GLM3的tokenizer文件到其目录下。
注意:经过LORA微调训练后的checkpoint无需复制原生GLM3的tokenizer文件到其目录下。
```
bash
```
bash
cd
./finetune_demo
cd
./finetune_demo
bash lora_inf.sh
bash lora_inf.sh
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment