Code Monkey home page Code Monkey logo

miku's Introduction

MikuGG

MikuGG is a generative visual novel platform. This is the open source interactor code for the website miku.gg. You can set up miku locally or develop features using this respository instructions.

Prerequisites

  • Node.js: Download and install from https://nodejs.org/en/download/
  • An Aphrodite engine running instance.
  • A GPU for running a large language model.
  • Any missing packages required by the install script. Packages (ex: distutils) may be missing from more recent version of Pythons. Therefore, you may need to install such packages manually:
# Example installing distutils manually
pip install setuptools

Note On windows, Make sure to add Node.js to your system's PATH.

LLM endpoint setup

We only support the OpenAI-like APIs

Recommended models We recommend using GPTQ quants to get the best possible model with the less GPU power. The more parameters (7B, 13B, etc..), the better the model will be (in this examples). But it will require more GPU power. It only supports NVIDIA cards.

This are recommendations based on December 2023. Also, You can use oobabooga to run llama.cpp models without GPU.

# Example with Aphrodite
python -m aphrodite.endpoints.openai.api_server --model TheBloke/MythoMax-L2-13B-GPTQ -q gptq --api-keys sk-EMPTY
# Endpoint will be http://localhost:2242/v1

# Example with text-generation-webui
./start_linux.sh --api
# Then, load the model
# Endpoint will be http://localhost:5000/v1

Installation

Windows

  1. Double-click install.bat or run it in the command prompt. This will install the necessary dependencies for Node.js.

  2. The script will prompt you for optional API keys. Enter the keys when prompted or leave them blank if you don't have them.

Linux / MacOS

  1. Open a terminal and navigate to the project root directory.

  2. Run make install. This will install the necessary dependencies.

  3. The script will prompt you for optional API keys. Enter the keys when prompted or leave them blank if you don't have them.

Running the Project

Windows

  1. Double-click run.bat or run it in the command prompt.

Linux / MacOS

  1. Open a terminal and navigate to the project root directory.

  2. Run make run

Servers

The UIs that are up an running are

# Bot directory UI
http://localhost:8585/

# Chat interactor UI
http://localhost:5173/

# Bot Builder UI
http://localhost:8586/

Documentation

For more information on how to use the Mikugg project, please refer to the official documentation at https://docs.miku.gg.

Local Development (Linux / MacOS)

pnpm install
pnpm build

run

pnpm run

# hotfix for vite not refreshing deps
# need to restart the app with this command if you edit the deps under package/
rm -rf apps/interactor/node_modules/.vite && pnpm start

Pull new changes

To sync with the lastest version from git, just run

pnpm pull

publish

# publish public packages to npm
npx lerna publish --no-private

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.