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

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

miku's People

Contributors

ewof avatar lautarocesso avatar lredigonda avatar lucajusto avatar miku448 avatar rs15z avatar shaddox avatar yardanico 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

miku's Issues

Unsupported configVersion: 1

I just put 1 as the version number and it refuses to let me download my bot, saying unsupported configVersion:1

Can't build bots on mobile

Seems like you forgot about the mobile users, you only put an drag and drop in the bot photo area, and you put it obligatory so i can't continue

Todo

Task list:

  • [] Add temperature, frequency/presence penalty, and max tokens sliders
  • [] Add regenerate button
  • [] Move the bot response textbox lower
  • [] Fix prompt to be more similar to rokos

Settings do not save

Any settings I changed like text speed and backend configuration are gone on the next run of Miku.

integration with dalai

I apologize in advance, but am in high school and don't know much.. could any one help me in getting this working with Dalai?

Add long-term memory summarization

Have a system that summarizes conversation history so you can have "long-term memory" kind of like how it's been implemented on this repository. This way even after you run out of tokens it will still remember most important parts of your conversation.

Locally saving chats?

Do you have any plans of adding a feature to automatically save chats locally? instead of needing to save and then load them again and again.

Error 1

Binary found at C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected]\node_modules\node-sass\v…
│ Testing binary
│ Binary has a problem: Error: \?\C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected]\node_mo…
│ \?\C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected]\node_modules\node-sass\vendor\win32-…
│ at Module._extensions..node (node:internal/modules/cjs/loader:1319:18)
│ at Module.load (node:internal/modules/cjs/loader:1091:32)
│ at Module._load (node:internal/modules/cjs/loader:938:12)
│ at Module.require (node:internal/modules/cjs/loader:1115:19)
│ at require (node:internal/modules/helpers:119:18)
│ at module.exports (C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected]\node_modules\node…
│ at Object. (C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected]\node_modules\…
│ at Module._compile (node:internal/modules/cjs/loader:1233:14)
│ at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
│ at Module.load (node:internal/modules/cjs/loader:1091:32) {
│ code: 'ERR_DLOPEN_FAILED'
│ }
│ Building the binary locally
│ Building: C:\Program Files\nodejs\node.exe C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected].…
│ gyp info it worked if it ends with ok
│ gyp verb cli [
│ gyp verb cli 'C:\Program Files\nodejs\node.exe',
│ gyp verb cli 'C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules\.pnpm\[email protected]\node_modules\no…
│ gyp verb cli 'rebuild',
│ gyp verb cli '--verbose',
│ gyp verb cli '--libsass_ext=',
│ gyp verb cli '--libsass_cflags=',
│ gyp verb cli '--libsass_ldflags=',
│ gyp verb cli '--libsass_library='
│ gyp verb cli ]
│ gyp info using [email protected]
│ gyp info using [email protected] | win32 | x64
│ gyp verb command rebuild []
│ gyp verb command clean []
│ gyp verb clean removing "build" directory
│ gyp verb command configure []
│ gyp verb find Python Python is not set from command line or npm configuration
│ gyp verb find Python Python is not set from environment variable PYTHON
│ gyp verb find Python checking if "python3" can be used
│ gyp verb find Python - executing "python3" to get executable path
│ gyp verb find Python - executable path is "C:\Users\Mohmadmiui\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFo…
│ gyp verb find Python - executing "C:\Users\Mohmadmiui\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.…
│ gyp verb find Python - version is "3.10.11"
│ gyp info find Python using Python version 3.10.11 found at "C:\Users\Mohmadmiui\AppData\Local\Microsoft\WindowsApps…
│ gyp verb get node dir no --target version specified, falling back to host node version: 20.5.0
│ gyp verb command install [ '20.5.0' ]
│ gyp verb install input version string "20.5.0"
│ gyp verb install installing version: 20.5.0
│ gyp verb install --ensure was passed, so won't reinstall if already installed
│ gyp verb install version is already installed, need to check "installVersion"
│ gyp verb got "installVersion" 9
│ gyp verb needs "installVersion" 9
│ gyp verb install version is good
│ gyp verb get node dir target node version installed: 20.5.0
│ gyp verb build dir attempting to create "build" dir: C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\nod…
│ gyp verb build dir "build" dir needed to be created? Yes
│ gyp verb find VS msvs_version not set from command line or npm config
│ gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
│ gyp verb find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel sill…
│ gyp verb find VS looking for Visual Studio 2015
│ gyp verb find VS - not found
│ gyp verb find VS not looking for VS2013 as it is only supported up to Node.js 8
│ gyp ERR! find VS
│ gyp ERR! find VS msvs_version not set from command line or npm config
│ gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
│ gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel sill…
│ gyp ERR! find VS looking for Visual Studio 2015
│ gyp ERR! find VS - not found
│ gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
│ gyp ERR! find VS
│ gyp ERR! find VS **************************************************************
│ gyp ERR! find VS You need to install the latest version of Visual Studio
│ gyp ERR! find VS including the "Desktop development with C++" workload.
│ gyp ERR! find VS For more information consult the documentation at:
│ gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
│ gyp ERR! find VS **************************************************************
│ gyp ERR! find VS
│ gyp ERR! configure error
│ gyp ERR! stack Error: Could not find any Visual Studio installation to use
│ gyp ERR! stack at VisualStudioFinder.fail (C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\node-gyp@…
│ gyp ERR! stack at C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected]\node_modules\node-g…
│ gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules…
│ gyp ERR! stack at C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected]\node_modules\node-g…
│ gyp ERR! stack at C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected]\node_modules\node-g…
│ gyp ERR! stack at C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected]\node_modules\node-g…
│ gyp ERR! stack at C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected]\node_modules\node-g…
│ gyp ERR! stack at ChildProcess.exithandler (node:child_process:429:5)
│ gyp ERR! stack at ChildProcess.emit (node:events:514:28)
│ gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
│ gyp ERR! System Windows_NT 10.0.22621
│ gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules\…
│ gyp ERR! cwd C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected]\node_modules\node-sass
│ gyp ERR! node -v v20.5.0
│ gyp ERR! node-gyp -v v8.4.1
│ gyp ERR! not ok
│ Build failed with error code: 1
└─ Failed in 3.6s at C:\Users\Mohmadmiui\Desktop\MikuGG\miku\node_modules.pnpm\[email protected]\node_modules\node-sass
 ELIFECYCLE  Command failed with exit code 1.
ERROR: Failed to install dependencies.
Press any key to exit.

Laptop. Windows 11 pro. Amd ryzen 3 3250U. Radeon Vega 3. Pls help.

OPENAI_ENDPOINT does not work

Its listed in the docs, but its not in the code at all. Only way I could get it to connect is to change the backend configuration in the UI

Libvips error

Good evening,

I'm on Linux (PopOS 22.04) and I would like to run this project. I'm currently stuck with this error :

/media/shaddox/Saturn/AI-Models/miku/node_modules/.pnpm/[email protected]/node_modules/sharp/lib/sharp.js:37
  throw new Error(help.join('\n'));
        ^
Error: 
Something went wrong installing the "sharp" module
libvips-cpp.so.42: cannot open shared object file: No such file or directory
Possible solutions:
- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
- Install for the current linux-x64 runtime: "npm install --platform=linux --arch=x64 sharp"
- Consult the installation documentation: https://sharp.pixelplumbing.com/install
    at Object.<anonymous> (/media/shaddox/Saturn/AI-Models/miku/node_modules/.pnpm/[email protected]/node_modules/sharp/lib/sharp.js:37:9)
    at Module._compile (node:internal/modules/cjs/loader:1205:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1259:10)
    at Object.require.extensions.<computed> [as .js] (/media/shaddox/Saturn/AI-Models/miku/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1608:43)
    at Module.load (node:internal/modules/cjs/loader:1068:32)
    at Function.Module._load (node:internal/modules/cjs/loader:909:12)
    at Module.require (node:internal/modules/cjs/loader:1092:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/media/shaddox/Saturn/AI-Models/miku/node_modules/.pnpm/[email protected]/node_modules/sharp/lib/constructor.js:11:1)
    at Module._compile (node:internal/modules/cjs/loader:1205:14)

It seems brew did install it correctly, for what it's worth, however it's unable to find it. Any ideas?

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.