Skip to content

Commit cd0f1c9

Browse files
committed
docs: fix error in huggingface conversion command
The command to convert to the Huggingface format had a number of problems. 1. It did not have enough line continuations (`\`). 2. It did not have the right path (`/huggingface_models/...` instead of `huggingface_models/...`) Fixes #21.
1 parent 1b25d56 commit cd0f1c9

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,19 @@ Please see [the training README](training/README.md) for more details about cust
115115

116116
# Converting Weights to Huggingface Format
117117

118-
Before you can use this model to perform inference, it must be converted to the Hugginface format.
118+
Before you can use this model to perform inference, it must be converted to the Huggingface format. Run this command from the root of the repo to do so.
119119

120120
```shell
121-
mkdir huggingface_models \
122-
&& python tools/convert_to_hf_gptneox.py \
123-
--ckpt-path model_ckpts/GPT-Neo-XT-Chat-Base-20B/checkpoint_5
124-
--save-path /huggingface_models/GPT-NeoXT-Chat-Base-20B
125-
--n-stages 8
126-
--n-layer-per-stage 6
121+
mkdir huggingface_models \
122+
&& python tools/convert_to_hf_gptneox.py \
123+
--ckpt-path model_ckpts/GPT-Neo-XT-Chat-Base-20B/checkpoint_100 \
124+
--save-path huggingface_models/GPT-NeoXT-Chat-Base-20B \
125+
--n-stages 8 \
126+
--n-layer-per-stage 6
127127
```
128128

129+
Make sure to replace `model_ckpts/GPT-Neo-XT-Chat-Base-20B/checkpoint_100` with the latest checkpoint in the `model_ckpts/GPT-Neo-XT-Chat-Base-20B` directory.
130+
129131
# Inference
130132

131133
To help you test the model, we provide a simple test command line test harness to interact with the bot.

0 commit comments

Comments
 (0)