mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-20 04:34:37 +00:00
Update Python bindings README.md (#1389)
Signed-off-by: Andriy Mulyar <andriy.mulyar@gmail.com>
This commit is contained in:
parent
a69d23ecc4
commit
707b91a24f
@ -47,6 +47,15 @@ output = model.generate("The capital of France is ", max_tokens=3)
|
|||||||
print(output)
|
print(output)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
GPU Usage
|
||||||
|
```python
|
||||||
|
from gpt4all import GPT4All
|
||||||
|
model = GPT4All("orca-mini-3b.ggmlv3.q4_0.bin", device='gpu') # device='amd', device='intel'
|
||||||
|
output = model.generate("The capital of France is ", max_tokens=3)
|
||||||
|
print(output)
|
||||||
|
```
|
||||||
|
|
||||||
## Troubleshooting a Local Build
|
## Troubleshooting a Local Build
|
||||||
- If you're on Windows and have compiled with a MinGW toolchain, you might run into an error like:
|
- If you're on Windows and have compiled with a MinGW toolchain, you might run into an error like:
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user