Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 821 Bytes

README.md

File metadata and controls

50 lines (33 loc) · 821 Bytes

LocalGPT

LocalGPT allows you to train a GPT model locally using your own data and access it through a chatbot interface.

Installation

Clone the repository:

$ git clone https://github.com/alesr/localgpt.git
$ cd localgpt

Create a virtual environment:

$ pip3 install virtualenv
$ python3 -m venv env
$ source env/bin/activate

Install the dependencies:

$ pip3 install -r requirements.txt

Set the OpenAI API key as an environment variable:

$ export OPENAI_API_KEY=<your-api-key>

Usage

Load files to train the model by adding them to the data folder located in the root of the project.

Then run the following command:

$ python3 localgpt.py

This will train the model and start the chatbot interface.