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

Commit

Permalink
refactoring + docs
Browse files Browse the repository at this point in the history
  • Loading branch information
absadiki committed Apr 23, 2023
1 parent 2569fff commit 7f8372b
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 817 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install mkdocs-macros-plugin
- run: pip install mkdocs-material
- run: pip install mkdocstrings[python]
- run: pip install black
- run: mkdocs gh-deploy --force
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
# PyGPT4All
Official Python CPU inference for [GPT4All](https://github.com/nomic-ai/gpt4all) language models based on [llama.cpp](https://github.com/ggerganov/llama.cpp) and [ggml](https://github.com/ggerganov/ggml).
Official Python CPU inference for [GPT4All](https://github.com/nomic-ai/gpt4all) language models based on [llama.cpp](https://github.com/ggerganov/llama.cpp) and [ggml](https://github.com/ggerganov/ggml)

[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

[//]: # ([![PyPi version](https://badgen.net/pypi/v/ptgpt4all)](https://pypi.org/project/pygpt4all/))

**NB: Under active development**

# Installation
1. The easy way is to use the prebuilt wheels

```bash
pip install pygpt4all
```

2. Build it from source:

```shell
git clone --recursive https://github.com/nomic-ai/pygpt4all && cd pygpt4all
pip install .
```

# Usage

### GPT4All model

Download a GPT4All model from https://the-eye.eu/public/AI/models/nomic-ai/gpt4all/. The easiest approach is download a file whose name ends in ggml.bin
Download a GPT4All model from https://the-eye.eu/public/AI/models/nomic-ai/gpt4all/

```python
from pygpt4all.models.gpt4all import GPT4All
Expand Down
216 changes: 0 additions & 216 deletions docs/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion docs/cmake_example.rst

This file was deleted.

Loading

0 comments on commit 7f8372b

Please sign in to comment.