Code Monkey home page Code Monkey logo

llm-rp's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.