Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.