Skip to content

miku-gg/miku

Repository files navigation

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

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