mirror of https://github.com/hpcaitech/ColossalAI
[fix] fix grok-1 example typo (#5506)
parent
0688d92e2d
commit
131f32a076
|
@ -35,7 +35,7 @@ Command example:
|
|||
./run_inference_slow.sh <MODEL_NAME_OR_PATH>
|
||||
```
|
||||
|
||||
`MODEL_NAME_OR_PATH` can be a model name from Hugging Face model hub or a local path to PyTorch-version model checkpoints. We provided weights on model hub, named `hpcaitech/grok-1`. And you could also download the weights in advance using `git`:
|
||||
`MODEL_NAME_OR_PATH` can be a model name from Hugging Face model hub or a local path to PyTorch-version model checkpoints. We have provided pytorch-version checkpoint on [HuggingFace model hub](https://huggingface.co/hpcai-tech/grok-1), named `hpcai-tech/grok-1`. And you could also download the weights in advance using `git`:
|
||||
```bash
|
||||
git lfs install
|
||||
git clone https://huggingface.co/hpcai-tech/grok-1
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PRETRAINED=${1:-"hpcaitech/grok-1"}
|
||||
PRETRAINED=${1:-"hpcai-tech/grok-1"}
|
||||
|
||||
torchrun --standalone --nproc_per_node 8 inference_tp.py --pretrained "$PRETRAINED" \
|
||||
--max_new_tokens 100 \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PRETRAINED=${1:-"hpcaitech/grok-1"}
|
||||
PRETRAINED=${1:-"hpcai-tech/grok-1"}
|
||||
|
||||
python3 inference.py --pretrained "$PRETRAINED" \
|
||||
--max_new_tokens 100 \
|
||||
|
|
Loading…
Reference in New Issue