LocalGPT allows you to train a GPT model locally using your own data and access it through a chatbot interface.
$ git clone https://github.com/alesr/localgpt.git
$ cd localgpt
$ pip3 install virtualenv
$ python3 -m venv env
$ source env/bin/activate
$ pip3 install -r requirements.txt
$ export OPENAI_API_KEY=<your-api-key>
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.