lxe / simple-llm-chatbot

Playground LLM chatbot app using stable-lm (but you can use any model)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple-LLM-Chatbot

A minimalistic chatbot script to experiment with LLMs.

./screenshot.png

Usage

  1. Be on a machine with an NVIDIA card with 12-24 GB of VRAM.

  2. Get the environment ready

conda create -n llm-playground python=3.10
conda activate llm-playground
conda install -y cuda -c nvidia/label/cuda-11.7.0
conda install -y pytorch=2 pytorch-cuda=11.7 -c pytorch
  1. If on WSL, help bitsandbytes understand where to grab the dynamic libs from
export LD_LIBRARY_PATH=/usr/lib/wsl/lib
  1. Install the requirements
pip install -r requirements.txt
  1. Run the script
python app.py
usage: app.py [-h] [-s]

Chatbot Demo

options:
  -h, --help   show this help message and exit
  -s, --share  Enable sharing of the Gradio interface

License

MIT

About

Playground LLM chatbot app using stable-lm (but you can use any model)


Languages

Language:Python 100.0%