Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alesr/localgpt
LocalGPT allows you to train a GPT model locally using your own data and access it through a chatbot interface
https://github.com/alesr/localgpt
chatbot gpt
Last synced: 2 months ago
JSON representation
LocalGPT allows you to train a GPT model locally using your own data and access it through a chatbot interface
- Host: GitHub
- URL: https://github.com/alesr/localgpt
- Owner: alesr
- License: mit
- Created: 2023-07-28T11:13:39.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-28T16:35:37.000Z (over 1 year ago)
- Last Synced: 2024-05-21T04:15:55.759Z (8 months ago)
- Topics: chatbot, gpt
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
$ git clone https://github.com/alesr/localgpt.git
$ cd localgpt
```### Create a virtual environment:
```bash
$ pip3 install virtualenv
``````bash
$ python3 -m venv env
``````bash
$ source env/bin/activate
```### Install the dependencies:
```bash
$ pip3 install -r requirements.txt
```### Set the OpenAI API key as an environment variable:
```bash
$ export OPENAI_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:
```bash
$ python3 localgpt.py
```This will train the model and start the chatbot interface.