rbourgeat / llm-rp

✨ Your Custom Offline Role Play with LLM and Stable Diffusion on Mac and Linux (for now) πŸ§™β€β™‚οΈ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgraded project here ==> ImpAI

The project is not deprecated but i just recode all the app in a new repository !





Code style: black

✨ Your Custom Offline Role Play with AI on Mac and Linux (for now) πŸ§™β€β™‚οΈ

LLM RP

πŸ“Ž Requirement

For now, Mac & Linux:

  • Python >= 3.8
  • pip install -r requirements.txt && python3 -m spacy download en_core_web_sm
  • Install git lfs

πŸ› οΈ Config

You can custom global variables at the top of app/run.py as you want.

For increase performance, you can reduce the generated images size, the number of iterations etc...

πŸ–οΈ Note: the output images folder is in app/images/

πŸ‘‰πŸ» Start

Each time you want to run the game:

python3 app/run.py

The first time you load the app you will wait a while, because the program will download, export and quantize the better llama model for your config and install stable diffusion.

Next open your browser at http://127.0.0.1:4242

Click on the πŸ—‘οΈ for reset le Role Play

You can customize the prompt here: prompts/RolePlay.txt

πŸ“ Todo

  • πŸ’Ύ Create a persistent role play (with save system)
  • πŸ–ΌοΈ Adding Quantized Stable Diffusion
  • πŸ› οΈ Compile for GPU Linux / GPU Windows
  • 🎀 Adding whisper.cpp
  • πŸ”‰ Adding Bark or an other Text-Prompted Generative Audio Model
  • πŸ”₯ Doing a better interface
  • πŸ”’ Lock user input when model generating response

πŸ”Ž Resources

About

✨ Your Custom Offline Role Play with LLM and Stable Diffusion on Mac and Linux (for now) πŸ§™β€β™‚οΈ


Languages

Language:Python 64.2%Language:JavaScript 15.5%Language:CSS 14.8%Language:HTML 5.5%