GitXplorerGitXplorer
R

GPT4ALLJ

public
2 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
9a5ef9180ce8cf0202d2c03b234588a68406858d

Update requirements.txt

RRonanKMcGovern committed 9 months ago
Verified
13c9cd92d0bdcdc8e9e455480d87da5874e5ab23

Update requirements.txt

RRonanKMcGovern committed 9 months ago
Unverified
afc5b3557f035d7ccc98a826525fac19627b52d2

back to just a text input

RRonanKMcGovern committed 2 years ago
Unverified
8dc245f8694ffd794be8ad8032567793f96a461d

default length max to 500

RRonanKMcGovern committed 2 years ago
Unverified
acece622fd915f650b51a34808e9db45075cadcc

allow for length input

RRonanKMcGovern committed 2 years ago
Unverified
1b708247638104fb8aa13a3772d2a5bd1f42d11a

add try catch

RRonanKMcGovern committed 2 years ago

README

The README file for this repository.

gpt4allj

This repository contains three Python scripts: gptOnAWS.py, app.py, and simpleApp.py.

Scripts

gptOnAWS.py

This script is a simple program that can be run on an Ubuntu server. It uses the gpt4all-j package to generate text from a pre-trained model.

The model was obtained from here: https://gpt4all.io/models/ggml-gpt4all-j.bin

app.py

This is an unfinished app that is meant to host an API. It can be used as a starting point for building a custom API that leverages gpt4all-j.

simpleApp.py (deprecated)

This script is a simple program that can be run on a MacBook Pro with Apple Silicon. It was previously dependent on files in the libraries but they are no longer needed because gpt4all-j has been updated to include them.

Installation

To install the necessary dependencies on Ubuntu, run the following commands:

sudo apt update
sudo apt install -y python3-pip
sudo apt install python3.10-venv
python3 -m venv env
source env/bin/activate
pip3 install gpt4all-j
python3 gptOnAWS.py

OR

to run app.py on a server:

pip install gunicorn

gunicorn -b 0.0.0.0:8000 app:app