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
OpenDAS
ColossalAI
Commits
55dcd305
Unverified
Commit
55dcd305
authored
Mar 07, 2023
by
BlueRum
Committed by
GitHub
Mar 07, 2023
Browse files
[chatgpt] fix readme (#3025)
parent
287d6049
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
applications/ChatGPT/examples/README.md
applications/ChatGPT/examples/README.md
+5
-5
No files found.
applications/ChatGPT/examples/README.md
View file @
55dcd305
...
@@ -15,9 +15,9 @@ Use these code to train your reward model.
...
@@ -15,9 +15,9 @@ Use these code to train your reward model.
```
shell
```
shell
# Naive reward model training
# Naive reward model training
python train_reward_model.py
--pretrain
<your model path>
python train_reward_model.py
--pretrain
<your model path>
--model
<your model
type
>
--strategy
naive
#
if to use LoRA
#
use colossalai_zero2
python
train_reward_model.py
--pretrain
<your model path>
--
lora_rank
16
torchrun
--standalone
--nproc_per_node
=
2
train_reward_model.py
--pretrain
<your model path>
--
model
<your model
type
>
--strategy
colossalai_zero2
```
```
## Train with dummy prompt data (Stage 3)
## Train with dummy prompt data (Stage 3)
...
@@ -44,7 +44,7 @@ DDP strategy and ColossalAI strategy support multi GPUs training:
...
@@ -44,7 +44,7 @@ DDP strategy and ColossalAI strategy support multi GPUs training:
# run DDP on 2 GPUs
# run DDP on 2 GPUs
torchrun
--standalone
--nproc_per_node
=
2 train_dummy.py
--strategy
ddp
torchrun
--standalone
--nproc_per_node
=
2 train_dummy.py
--strategy
ddp
# run ColossalAI on 2 GPUs
# run ColossalAI on 2 GPUs
torchrun
--standalone
--nproc_per_node
=
2 train_dummy.py
--strategy
colossalai
torchrun
--standalone
--nproc_per_node
=
2 train_dummy.py
--strategy
colossalai
_zero2
```
```
## Train with real prompt data (Stage 3)
## Train with real prompt data (Stage 3)
...
@@ -63,7 +63,7 @@ python train_prompts.py prompts.csv --strategy naive
...
@@ -63,7 +63,7 @@ python train_prompts.py prompts.csv --strategy naive
# run DDP on 2 GPUs
# run DDP on 2 GPUs
torchrun
--standalone
--nproc_per_node
=
2 train_prompts.py prompts.csv
--strategy
ddp
torchrun
--standalone
--nproc_per_node
=
2 train_prompts.py prompts.csv
--strategy
ddp
# run ColossalAI on 2 GPUs
# run ColossalAI on 2 GPUs
torchrun
--standalone
--nproc_per_node
=
2 train_prompts.py prompts.csv
--strategy
colossalai
torchrun
--standalone
--nproc_per_node
=
2 train_prompts.py prompts.csv
--strategy
colossalai
_zero2
```
```
## Inference example(After Stage3)
## Inference example(After Stage3)
...
...
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