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
57a3c4db
Unverified
Commit
57a3c4db
authored
Apr 06, 2023
by
kingkingofall
Committed by
GitHub
Apr 06, 2023
Browse files
[chat]fix readme (#3429)
* fix stage 2 fix stage 2 * add torch
parent
7d8d8256
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
applications/Chat/examples/README.md
applications/Chat/examples/README.md
+1
-1
applications/Chat/inference/README.md
applications/Chat/inference/README.md
+1
-0
No files found.
applications/Chat/examples/README.md
View file @
57a3c4db
...
...
@@ -57,7 +57,7 @@ You can run the `examples/train_rm.sh` to start a reward model training.
You can also use the following cmd to start training a reward model.
```
torchrun --standalone --nproc_per_node=4 train_reward_model.py
torchrun --standalone --nproc_per_node=4 train_reward_model.py
\
--pretrain "/path/to/LLaMa-7B/" \
--model 'llama' \
--strategy colossalai_zero2 \
...
...
applications/Chat/inference/README.md
View file @
57a3c4db
...
...
@@ -51,6 +51,7 @@ Please ensure you have downloaded HF-format model weights of LLaMA models.
Usage:
```
python
import
torch
from
transformers
import
LlamaForCausalLM
USE_8BIT
=
True
# use 8-bit quantization; otherwise, use fp16
...
...
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