Skip to content
/ localgpt Public

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

License

Notifications You must be signed in to change notification settings

alesr/localgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published