Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix grammar/typos #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions examples/redpajama/README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# gglm Support for RedPajama Model
# ggml support for RedPajama model

## Ackonwledgement
## Acknowledgement

We highly appreciate the great effort from the fork of [gptneox.cpp](https://github.com/byroneverson/gptneox.cpp). Our support of the RedPajama Model is mainly based on this implementation. We extend the model configure and fixed a bug when setting use_parallel_residual flag to False in their original implementation. We also extend the chat model for RedPajama.
We highly appreciate the great effort from the fork of [gptneox.cpp](https://github.com/byroneverson/gptneox.cpp). Our support of the RedPajama model is mainly based on this implementation. We extend the model configure and fixed a bug when setting use_parallel_residual flag to false in their original implementation. We also extend the chat model for RedPajama.

## Usage:

### RedPajama Chat model:
### RedPajama chat model:

- Make the code:

make redpajama-chat quantize-gptneox


- Prepare the RedPajama model (f16 and q4_0) for gglm:
- Prepare the RedPajama model (f16 and q4_0) for ggml:

bash ./examples/redpajama/scripts/install-RedPajama-INCITE-Chat-3B-v1.sh

Expand Down Expand Up @@ -55,13 +55,13 @@ We highly appreciate the great effort from the fork of [gptneox.cpp](https://git
--repeat_penalty 1.1 \
--seed 0

- Run other quantized version of RedPajama Chat model (Make sure you get the f16 model prepared before you run this):
- Run other quantized version of RedPajama chat model (Make sure you get the f16 model prepared before you run this):

- Make the code to quantize the model if you have not:

make quantize-gptneox

- Generate the quantized model, the supported types include: q4_0, q4_1, q4_2, q5_0, q5_1, and q8_0. For example, to run q4_1, you need to do the following convertion:
- Generate the quantized model, the supported types include: q4_0, q4_1, q4_2, q5_0, q5_1, and q8_0. For example, to run q4_1, you need to do the following conversion:

python ./examples/redpajama/scripts/quantize-gptneox.py ./examples/redpajama/models/pythia/ggml-RedPajama-INCITE-Chat-3B-v1-f16.bin --quantize-output-type q4_1

Expand Down Expand Up @@ -91,15 +91,15 @@ We highly appreciate the great effort from the fork of [gptneox.cpp](https://git
make redpajama quantize-gptneox


- Prepare the RedPajama Base/Instruct model (f16 and q4_0) for gglm:
- Prepare the RedPajama Base/Instruct model (f16 and q4_0) for ggml:

bash ./examples/redpajama/scripts/install-RedPajama-INCITE-Base-3B-v1.sh

# Or

bash ./examples/redpajama/scripts/install-RedPajama-INCITE-Instruct-3B-v1.sh

- Run other quantize version of RedPajama Base/Instruct model (Make sure you get the f16 model prepared before you run this). Then you can generate the quantized model, the supported types include: q4_0, q4_1, q4_2, q5_0, q5_1, and q8_0. For example, to run q4_1, you need to do the following convertion, e.g for RedPajama-Base q8_0:
- Run other quantize version of RedPajama Base/Instruct model (Make sure you get the f16 model prepared before you run this). Then you can generate the quantized model. The supported types include: q4_0, q4_1, q4_2, q5_0, q5_1, and q8_0. For example, to run q4_1, you need to do the following conversion, e.g for RedPajama-Base q8_0:

python ./examples/redpajama/scripts/quantize-gptneox.py ./examples/redpajama/models/pythia/ggml-RedPajama-INCITE-Base-3B-v1-f16.bin --quantize-output-type q8_0

Expand Down Expand Up @@ -140,4 +140,4 @@ gptneox-util.h
gptneox.h
convert_gptneox_to_ggml.py
quantize-gptneox.py
```
```