A light-weight example of chatGPT using neural nets and custom trained model
miniChatGPT.mov
- TensorFlow is an end-to-end open-source platform for machine learning
- Flask is a micro web framework written in Python
- NLTK is a leading platform for building Python programs to work with human language data
- Python, HTML/CSS
git clone [https://github.com/eruigu/miniChatGPT.git]
install python3: check the version "python3 --version"
MacOS: pip3 install virtualenv
Linux (Debian): sudo apt install pythonx.x-venv (replace x with your version of python)
python3 -m venv venv
source venv/bin/activate && pip install -U pip setuptools
MacOS: pip3 install wheel
Linux (Debian): pip install wheel
MacOS: pip3 install -r requirements.txt
Linux (Debian): pip install -r requirements.txt
python3 -m minichatgpt.model_training.trainingThis will create two .pkl (pickle) files: classes and words & miniGPT_model.h5 in src/backend/
python3 -m minichatgpt.backend.serverthis will create a .h5 model file in the current directory
You can change the server config in server.py
docker docker build -t minichatgpt:1.0.0 .this will create an image for the project
docker run --name minichatgpt -d -p 8001:8001 minichatgpt:1.0.0this creates and runs a container for the image in the background.
access at localhost:8001