From 707b91a24f31cb2d19897bb9f53e79eb1165455c Mon Sep 17 00:00:00 2001 From: Andriy Mulyar Date: Fri, 1 Sep 2023 13:01:40 -0400 Subject: [PATCH 1/2] Update Python bindings README.md (#1389) Signed-off-by: Andriy Mulyar --- gpt4all-bindings/python/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gpt4all-bindings/python/README.md b/gpt4all-bindings/python/README.md index 5d3d916136ea..f1acb0d1b120 100644 --- a/gpt4all-bindings/python/README.md +++ b/gpt4all-bindings/python/README.md @@ -47,6 +47,15 @@ output = model.generate("The capital of France is ", max_tokens=3) 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 - If you're on Windows and have compiled with a MinGW toolchain, you might run into an error like: ``` From b6e38d69eda9920f4fddb438093e02f88aa3cf60 Mon Sep 17 00:00:00 2001 From: Andriy Mulyar Date: Fri, 1 Sep 2023 13:21:41 -0400 Subject: [PATCH 2/2] Python version bump Signed-off-by: Andriy Mulyar --- gpt4all-bindings/python/setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpt4all-bindings/python/setup.py b/gpt4all-bindings/python/setup.py index 85d22c2ba0f0..3a0341937aae 100644 --- a/gpt4all-bindings/python/setup.py +++ b/gpt4all-bindings/python/setup.py @@ -61,10 +61,10 @@ def copy_prebuilt_C_lib(src_dir, dest_dir, dest_build_dir): setup( name=package_name, - version="1.0.8", + version="1.0.9", description="Python bindings for GPT4All", - author="Richard Guo", - author_email="richard@nomic.ai", + author="Nomic and the Open Source Community", + author_email="support@nomic.ai", url="https://pypi.org/project/gpt4all/", classifiers = [ "Programming Language :: Python :: 3",