Skip to content

Commit c6524f4

Browse files
authored
readme : update gpt4all instructions (#980)
1 parent c9e2c26 commit c6524f4

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -275,18 +275,19 @@ cadaver, cauliflower, cabbage (vegetable), catalpa (tree) and Cailleach.
275275
276276
### Using [GPT4All](https://github.com/nomic-ai/gpt4all)
277277
278-
- Obtain the `gpt4all-lora-quantized.bin` model
279-
- It is distributed in the old `ggml` format, which is now obsoleted
280-
- You have to convert it to the new format using [./convert-gpt4all-to-ggml.py](./convert-gpt4all-to-ggml.py). You may also need to
281-
convert the model from the old format to the new format with [./migrate-ggml-2023-03-30-pr613.py](./migrate-ggml-2023-03-30-pr613.py):
282-
283-
```bash
284-
python3 convert-gpt4all-to-ggml.py models/gpt4all-7B/gpt4all-lora-quantized.bin ./models/tokenizer.model
285-
python3 migrate-ggml-2023-03-30-pr613.py models/gpt4all-7B/gpt4all-lora-quantized.bin models/gpt4all-7B/gpt4all-lora-quantized-new.bin
286-
```
287-
288-
- You can now use the newly generated `gpt4all-lora-quantized-new.bin` model in exactly the same way as all other models
289-
- The original model is saved in the same folder with a suffix `.orig`
278+
- Obtain the `tokenizer.model` file from LLaMA model and put it to `models`
279+
- Obtain the `added_tokens.json` file from Alpaca model and put it to `models`
280+
- Obtain the `gpt4all-lora-quantized.bin` file from GPT4All model and put it to `models/gpt4all-7B`
281+
- It is distributed in the old `ggml` format which is now obsoleted
282+
- You have to convert it to the new format using `convert.py`:
283+
284+
```bash
285+
python3 convert.py models/gpt4all-7B/gpt4all-lora-quantized.bin
286+
```
287+
288+
- You can now use the newly generated `models/gpt4all-7B/ggml-model-q4_0.bin` model in exactly the same way as all other models
289+
290+
- The newer GPT4All-J model is not yet supported!
290291

291292
### Obtaining and verifying the Facebook LLaMA original model and Stanford Alpaca model data
292293

0 commit comments

Comments
 (0)