Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #85 from mkinney/main
Browse files Browse the repository at this point in the history
update the download link, as well as the code examples in README
  • Loading branch information
abdeladim-s committed Apr 28, 2023
2 parents 8ecd23e + 2a15f90 commit a8581d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ pip install pygpt4all

### GPT4All model

Download a GPT4All model from https://the-eye.eu/public/AI/models/nomic-ai/gpt4all/
Download a GPT4All model from http://gpt4all.io/models/ggml-gpt4all-l13b-snoozy.bin

```python
from pygpt4all.models.gpt4all import GPT4All

def new_text_callback(text):
print(text, end="")

model = GPT4All('./models/ggml-gpt4all-j.bin')
model = GPT4All('./models/ggml-gpt4all-l13b-snoozy.bin')
model.generate("Once upon a time, ", n_predict=55, new_text_callback=new_text_callback)
```

Expand All @@ -39,7 +39,7 @@ from pygpt4all.models.gpt4all_j import GPT4All_J
def new_text_callback(text):
print(text, end="")

model = GPT4All_J('./models/ggml-gpt4all-j.bin')
model = GPT4All_J('./models/ggml-gpt4all-j-v1.3-groovy.bin')
model.generate("Once upon a time, ", n_predict=55, new_text_callback=new_text_callback)
```

Expand Down

0 comments on commit a8581d7

Please sign in to comment.