Giter VIP home page Giter VIP 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

llm-rp's People

Contributors

rbourgeat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

llm-rp's Issues

a few errors after trying to run the app

Hi, i'm getting a few errors while trying to get the app to work, installing openssl and pytorch didn't help, i followed the readme, what do I do? (Mac m2, Macos Sonoma beta 7)
/Users/sasia/Library/Python/3.9/lib/python/site-packages/urllib3/__init__.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020 warnings.warn( Traceback (most recent call last): File "/Users/sasia/llm-rp/app/run.py", line 47, in <module> dpm = DPMSolverMultistepScheduler.from_pretrained(SD_MODEL, subfolder="scheduler") File "/Users/sasia/Library/Python/3.9/lib/python/site-packages/diffusers/utils/dummy_pt_objects.py", line 645, in from_pretrained requires_backends(cls, ["torch"]) File "/Users/sasia/Library/Python/3.9/lib/python/site-packages/diffusers/utils/import_utils.py", line 540, in requires_backends raise ImportError("".join(failed)) ImportError: DPMSolverMultistepScheduler requires the PyTorch library but it was not found in your environment. Checkout the instructions on the installation page: https://pytorch.org/get-started/locally/ and follow the ones that match your environment.

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.