update readme
This commit is contained in:
parent
9f5e94fa8f
commit
3a00bbf44d
113
README.md
113
README.md
@ -21,7 +21,7 @@ English | [简体中文](README_ZH.md) | [日本語](README_JA.md)
|
|||||||
[![MacOS][MacOS-image]][MacOS-url]
|
[![MacOS][MacOS-image]][MacOS-url]
|
||||||
[![Linux][Linux-image]][Linux-url]
|
[![Linux][Linux-image]][Linux-url]
|
||||||
|
|
||||||
[FAQs](https://github.com/josStorer/RWKV-Runner/wiki/FAQs) | [Preview](#Preview) | [Download][download-url] | [Server-Deploy-Examples](https://github.com/josStorer/RWKV-Runner/tree/master/deploy-examples)
|
[FAQs](https://github.com/josStorer/RWKV-Runner/wiki/FAQs) | [Preview](#Preview) | [Download][download-url] | [Simple Deploy Example](#Simple-Deploy-Example) | [Server Deploy Examples](https://github.com/josStorer/RWKV-Runner/tree/master/deploy-examples) | [MIDI Hardware Input](#MIDI-Input)
|
||||||
|
|
||||||
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg
|
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg
|
||||||
|
|
||||||
@ -57,20 +57,49 @@ English | [简体中文](README_ZH.md) | [日本語](README_JA.md)
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- RWKV model management and one-click startup
|
- RWKV model management and one-click startup.
|
||||||
- Fully compatible with the OpenAI API, making every ChatGPT client an RWKV client. After starting the model,
|
- Front-end and back-end separation, if you don't want to use the client, also allows for separately deploying the
|
||||||
|
front-end service, or the back-end inference service, or the back-end inference service with a WebUI.
|
||||||
|
[Simple Deploy Example](#Simple-Deploy-Example) | [Server Deploy Examples](https://github.com/josStorer/RWKV-Runner/tree/master/deploy-examples)
|
||||||
|
- Compatible with the OpenAI API, making every ChatGPT client an RWKV client. After starting the model,
|
||||||
open http://127.0.0.1:8000/docs to view more details.
|
open http://127.0.0.1:8000/docs to view more details.
|
||||||
- Automatic dependency installation, requiring only a lightweight executable program
|
- Automatic dependency installation, requiring only a lightweight executable program.
|
||||||
- Configs with 2G to 32G VRAM are included, works well on almost all computers
|
- Pre-set multi-level VRAM configs, works well on almost all computers. In Configs page, switch Strategy to WebGPU, it
|
||||||
- User-friendly chat and completion interaction interface included
|
can also run on AMD, Intel, and other graphics cards.
|
||||||
- Easy-to-understand and operate parameter configuration
|
- User-friendly chat, completion, and composition interaction interface included. Also supports chat presets, attachment
|
||||||
- Built-in model conversion tool
|
uploads, MIDI hardware input, and track editing.
|
||||||
- Built-in download management and remote model inspection
|
[Preview](#Preview) | [MIDI Hardware Input](#MIDI-Input)
|
||||||
- Built-in one-click LoRA Finetune
|
- Built-in WebUI option, one-click start of Web service, sharing your hardware resources.
|
||||||
- Can also be used as an OpenAI ChatGPT and GPT-Playground client
|
- Easy-to-understand and operate parameter configuration, along with various operation guidance prompts.
|
||||||
- Multilingual localization
|
- Built-in model conversion tool.
|
||||||
- Theme switching
|
- Built-in download management and remote model inspection.
|
||||||
- Automatic updates
|
- Built-in one-click LoRA Finetune.
|
||||||
|
- Can also be used as an OpenAI ChatGPT and GPT-Playground client. (Fill in the API URL and API Key in Settings page)
|
||||||
|
- Multilingual localization.
|
||||||
|
- Theme switching.
|
||||||
|
- Automatic updates.
|
||||||
|
|
||||||
|
## Simple Deploy Example
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/josStorer/RWKV-Runner
|
||||||
|
|
||||||
|
# Then
|
||||||
|
cd RWKV-Runner
|
||||||
|
python ./backend-python/main.py #The backend inference service has been started, request /switch-model API to load the model, refer to the API documentation: http://127.0.0.1:8000/docs
|
||||||
|
|
||||||
|
# Or
|
||||||
|
cd RWKV-Runner/frontend
|
||||||
|
npm ci
|
||||||
|
npm run build #Compile the frontend
|
||||||
|
cd ..
|
||||||
|
python ./backend-python/webui_server.py #Start the frontend service separately
|
||||||
|
# Or
|
||||||
|
python ./backend-python/main.py --webui #Start the frontend and backend service at the same time
|
||||||
|
|
||||||
|
# Help Info
|
||||||
|
python ./backend-python/main.py -h
|
||||||
|
```
|
||||||
|
|
||||||
## API Concurrency Stress Testing
|
## API Concurrency Stress Testing
|
||||||
|
|
||||||
@ -133,6 +162,48 @@ for i in np.argsort(embeddings_cos_sim)[::-1]:
|
|||||||
print(f"{embeddings_cos_sim[i]:.10f} - {values[i]}")
|
print(f"{embeddings_cos_sim[i]:.10f} - {values[i]}")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## MIDI Input
|
||||||
|
|
||||||
|
Tip: You can download https://github.com/josStorer/sgm_plus and unzip it to the program's `assets/sound-font` directory
|
||||||
|
to use it as an offline sound source. Please note that if you are compiling the program from source code, do not place
|
||||||
|
it in the source code directory.
|
||||||
|
|
||||||
|
### USB MIDI Connection
|
||||||
|
|
||||||
|
- USB MIDI devices are plug-and-play, and you can select your input device in the Composition page
|
||||||
|
- 
|
||||||
|
|
||||||
|
### Mac MIDI Bluetooth Connection
|
||||||
|
|
||||||
|
- For Mac users who want to use Bluetooth input,
|
||||||
|
please install [Bluetooth MIDI Connect](https://apps.apple.com/us/app/bluetooth-midi-connect/id1108321791), then click
|
||||||
|
the tray icon to connect after launching,
|
||||||
|
afterwards, you can select your input device in the Composition page.
|
||||||
|
- 
|
||||||
|
|
||||||
|
### Windows MIDI Bluetooth Connection
|
||||||
|
|
||||||
|
- Windows seems to have implemented Bluetooth MIDI support only for UWP (Universal Windows Platform) apps. Therefore, it
|
||||||
|
requires multiple steps to establish a connection. We need to create a local virtual MIDI device and then launch a UWP
|
||||||
|
application. Through this UWP application, we will redirect Bluetooth MIDI input to the virtual MIDI device, and then
|
||||||
|
this software will listen to the input from the virtual MIDI device.
|
||||||
|
- So, first, you need to
|
||||||
|
download [loopMIDI](https://www.tobias-erichsen.de/wp-content/uploads/2020/01/loopMIDISetup_1_0_16_27.zip)
|
||||||
|
to create a virtual MIDI device. Click the plus sign in the bottom left corner to create the device.
|
||||||
|
- 
|
||||||
|
- Next, you need to download [Bluetooth LE Explorer](https://apps.microsoft.com/detail/9N0ZTKF1QD98) to discover and
|
||||||
|
connect to Bluetooth MIDI devices. Click "Start" to search for devices, and then click "Pair" to bind the MIDI device.
|
||||||
|
- 
|
||||||
|
- Finally, you need to install [MIDIberry](https://apps.microsoft.com/detail/9N39720H2M05),
|
||||||
|
This UWP application can redirect Bluetooth MIDI input to the virtual MIDI device. After launching it, double-click
|
||||||
|
your actual Bluetooth MIDI device name in the input field, and in the output field, double-click the virtual MIDI
|
||||||
|
device name we created earlier.
|
||||||
|
- 
|
||||||
|
- Now, you can select the virtual MIDI device as the input in the Composition page. Bluetooth LE Explorer no longer
|
||||||
|
needs to run, and you can also close the loopMIDI window, it will run automatically in the background. Just keep
|
||||||
|
MIDIberry open.
|
||||||
|
- 
|
||||||
|
|
||||||
## Related Repositories:
|
## Related Repositories:
|
||||||
|
|
||||||
- RWKV-4-World: https://huggingface.co/BlinkDL/rwkv-4-world/tree/main
|
- RWKV-4-World: https://huggingface.co/BlinkDL/rwkv-4-world/tree/main
|
||||||
@ -146,27 +217,35 @@ for i in np.argsort(embeddings_cos_sim)[::-1]:
|
|||||||
|
|
||||||
### Homepage
|
### Homepage
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Chat
|
### Chat
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Completion
|
### Completion
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Composition
|
### Composition
|
||||||
|
|
||||||
|
Tip: You can download https://github.com/josStorer/sgm_plus and unzip it to the program's `assets/sound-font` directory
|
||||||
|
to use it as an offline sound source. Please note that if you are compiling the program from source code, do not place
|
||||||
|
it in the source code directory.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Model Management
|
### Model Management
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Download Management
|
### Download Management
|
||||||
|
|
||||||
|
95
README_JA.md
95
README_JA.md
@ -21,7 +21,7 @@
|
|||||||
[![MacOS][MacOS-image]][MacOS-url]
|
[![MacOS][MacOS-image]][MacOS-url]
|
||||||
[![Linux][Linux-image]][Linux-url]
|
[![Linux][Linux-image]][Linux-url]
|
||||||
|
|
||||||
[FAQs](https://github.com/josStorer/RWKV-Runner/wiki/FAQs) | [プレビュー](#Preview) | [ダウンロード][download-url] | [サーバーデプロイ例](https://github.com/josStorer/RWKV-Runner/tree/master/deploy-examples)
|
[FAQs](https://github.com/josStorer/RWKV-Runner/wiki/FAQs) | [プレビュー](#Preview) | [ダウンロード][download-url] | [シンプルなデプロイの例](#Simple-Deploy-Example) | [サーバーデプロイ例](https://github.com/josStorer/RWKV-Runner/tree/master/deploy-examples) | [MIDIハードウェア入力](#MIDI-Input)
|
||||||
|
|
||||||
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg
|
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg
|
||||||
|
|
||||||
@ -58,20 +58,47 @@
|
|||||||
## 特徴
|
## 特徴
|
||||||
|
|
||||||
- RWKV モデル管理とワンクリック起動
|
- RWKV モデル管理とワンクリック起動
|
||||||
- OpenAI API と完全に互換性があり、すべての ChatGPT クライアントを RWKV クライアントにします。モデル起動後、
|
- フロントエンドとバックエンドの分離は、クライアントを使用しない場合でも、フロントエンドサービス、またはバックエンド推論サービス、またはWebUIを備えたバックエンド推論サービスを個別に展開することを可能にします。
|
||||||
|
[シンプルなデプロイの例](#Simple-Deploy-Example) | [サーバーデプロイ例](https://github.com/josStorer/RWKV-Runner/tree/master/deploy-examples)
|
||||||
|
- OpenAI API と互換性があり、すべての ChatGPT クライアントを RWKV クライアントにします。モデル起動後、
|
||||||
http://127.0.0.1:8000/docs を開いて詳細をご覧ください。
|
http://127.0.0.1:8000/docs を開いて詳細をご覧ください。
|
||||||
- 依存関係の自動インストールにより、軽量な実行プログラムのみを必要とします
|
- 依存関係の自動インストールにより、軽量な実行プログラムのみを必要とします
|
||||||
- 2G から 32G の VRAM のコンフィグが含まれており、ほとんどのコンピュータで動作します
|
- 事前設定された多段階のVRAM設定、ほとんどのコンピュータで動作します。配置ページで、ストラテジーをWebGPUに切り替えると、AMD、インテル、その他のグラフィックカードでも動作します
|
||||||
- ユーザーフレンドリーなチャットと完成インタラクションインターフェースを搭載
|
- ユーザーフレンドリーなチャット、完成、および作曲インターフェイスが含まれています。また、チャットプリセット、添付ファイルのアップロード、MIDIハードウェア入力、トラック編集もサポートしています。
|
||||||
- 分かりやすく操作しやすいパラメータ設定
|
[プレビュー](#Preview) | [MIDIハードウェア入力](#MIDI-Input)
|
||||||
|
- 内蔵WebUIオプション、Webサービスのワンクリック開始、ハードウェアリソースの共有
|
||||||
|
- 分かりやすく操作しやすいパラメータ設定、各種操作ガイダンスプロンプトとともに
|
||||||
- 内蔵モデル変換ツール
|
- 内蔵モデル変換ツール
|
||||||
- ダウンロード管理とリモートモデル検査機能内蔵
|
- ダウンロード管理とリモートモデル検査機能内蔵
|
||||||
- 内蔵のLoRA微調整機能を搭載しています
|
- 内蔵のLoRA微調整機能を搭載しています
|
||||||
- このプログラムは、OpenAI ChatGPTとGPT Playgroundのクライアントとしても使用できます
|
- このプログラムは、OpenAI ChatGPTとGPT Playgroundのクライアントとしても使用できます(設定ページで `API URL` と `API Key`
|
||||||
|
を入力してください)
|
||||||
- 多言語ローカライズ
|
- 多言語ローカライズ
|
||||||
- テーマ切り替え
|
- テーマ切り替え
|
||||||
- 自動アップデート
|
- 自動アップデート
|
||||||
|
|
||||||
|
## Simple Deploy Example
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/josStorer/RWKV-Runner
|
||||||
|
|
||||||
|
# Then
|
||||||
|
cd RWKV-Runner
|
||||||
|
python ./backend-python/main.py #The backend inference service has been started, request /switch-model API to load the model, refer to the API documentation: http://127.0.0.1:8000/docs
|
||||||
|
|
||||||
|
# Or
|
||||||
|
cd RWKV-Runner/frontend
|
||||||
|
npm ci
|
||||||
|
npm run build #Compile the frontend
|
||||||
|
cd ..
|
||||||
|
python ./backend-python/webui_server.py #Start the frontend service separately
|
||||||
|
# Or
|
||||||
|
python ./backend-python/main.py --webui #Start the frontend and backend service at the same time
|
||||||
|
|
||||||
|
# Help Info
|
||||||
|
python ./backend-python/main.py -h
|
||||||
|
```
|
||||||
|
|
||||||
## API 同時実行ストレステスト
|
## API 同時実行ストレステスト
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -134,6 +161,48 @@ for i in np.argsort(embeddings_cos_sim)[::-1]:
|
|||||||
print(f"{embeddings_cos_sim[i]:.10f} - {values[i]}")
|
print(f"{embeddings_cos_sim[i]:.10f} - {values[i]}")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## MIDI Input
|
||||||
|
|
||||||
|
Tip: You can download https://github.com/josStorer/sgm_plus and unzip it to the program's `assets/sound-font` directory
|
||||||
|
to use it as an offline sound source. Please note that if you are compiling the program from source code, do not place
|
||||||
|
it in the source code directory.
|
||||||
|
|
||||||
|
### USB MIDI Connection
|
||||||
|
|
||||||
|
- USB MIDI devices are plug-and-play, and you can select your input device in the Composition page
|
||||||
|
- 
|
||||||
|
|
||||||
|
### Mac MIDI Bluetooth Connection
|
||||||
|
|
||||||
|
- For Mac users who want to use Bluetooth input,
|
||||||
|
please install [Bluetooth MIDI Connect](https://apps.apple.com/us/app/bluetooth-midi-connect/id1108321791), then click
|
||||||
|
the tray icon to connect after launching,
|
||||||
|
afterwards, you can select your input device in the Composition page.
|
||||||
|
- 
|
||||||
|
|
||||||
|
### Windows MIDI Bluetooth Connection
|
||||||
|
|
||||||
|
- Windows seems to have implemented Bluetooth MIDI support only for UWP (Universal Windows Platform) apps. Therefore, it
|
||||||
|
requires multiple steps to establish a connection. We need to create a local virtual MIDI device and then launch a UWP
|
||||||
|
application. Through this UWP application, we will redirect Bluetooth MIDI input to the virtual MIDI device, and then
|
||||||
|
this software will listen to the input from the virtual MIDI device.
|
||||||
|
- So, first, you need to
|
||||||
|
download [loopMIDI](https://www.tobias-erichsen.de/wp-content/uploads/2020/01/loopMIDISetup_1_0_16_27.zip)
|
||||||
|
to create a virtual MIDI device. Click the plus sign in the bottom left corner to create the device.
|
||||||
|
- 
|
||||||
|
- Next, you need to download [Bluetooth LE Explorer](https://apps.microsoft.com/detail/9N0ZTKF1QD98) to discover and
|
||||||
|
connect to Bluetooth MIDI devices. Click "Start" to search for devices, and then click "Pair" to bind the MIDI device.
|
||||||
|
- 
|
||||||
|
- Finally, you need to install [MIDIberry](https://apps.microsoft.com/detail/9N39720H2M05),
|
||||||
|
This UWP application can redirect Bluetooth MIDI input to the virtual MIDI device. After launching it, double-click
|
||||||
|
your actual Bluetooth MIDI device name in the input field, and in the output field, double-click the virtual MIDI
|
||||||
|
device name we created earlier.
|
||||||
|
- 
|
||||||
|
- Now, you can select the virtual MIDI device as the input in the Composition page. Bluetooth LE Explorer no longer
|
||||||
|
needs to run, and you can also close the loopMIDI window, it will run automatically in the background. Just keep
|
||||||
|
MIDIberry open.
|
||||||
|
- 
|
||||||
|
|
||||||
## 関連リポジトリ:
|
## 関連リポジトリ:
|
||||||
|
|
||||||
- RWKV-4-World: https://huggingface.co/BlinkDL/rwkv-4-world/tree/main
|
- RWKV-4-World: https://huggingface.co/BlinkDL/rwkv-4-world/tree/main
|
||||||
@ -147,27 +216,35 @@ for i in np.argsort(embeddings_cos_sim)[::-1]:
|
|||||||
|
|
||||||
### ホームページ
|
### ホームページ
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### チャット
|
### チャット
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### 補完
|
### 補完
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### 作曲
|
### 作曲
|
||||||
|
|
||||||
|
Tip: You can download https://github.com/josStorer/sgm_plus and unzip it to the program's `assets/sound-font` directory
|
||||||
|
to use it as an offline sound source. Please note that if you are compiling the program from source code, do not place
|
||||||
|
it in the source code directory.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### コンフィグ
|
### コンフィグ
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### モデル管理
|
### モデル管理
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### ダウンロード管理
|
### ダウンロード管理
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ API兼容的接口,这意味着一切ChatGPT客户端都是RWKV客户端。
|
|||||||
[简明服务部署示例](#Simple-Deploy-Example) | [服务器部署示例](https://github.com/josStorer/RWKV-Runner/tree/master/deploy-examples)
|
[简明服务部署示例](#Simple-Deploy-Example) | [服务器部署示例](https://github.com/josStorer/RWKV-Runner/tree/master/deploy-examples)
|
||||||
- 与OpenAI API兼容,一切ChatGPT客户端,都是RWKV客户端。启动模型后,打开 http://127.0.0.1:8000/docs 查看API文档
|
- 与OpenAI API兼容,一切ChatGPT客户端,都是RWKV客户端。启动模型后,打开 http://127.0.0.1:8000/docs 查看API文档
|
||||||
- 全自动依赖安装,你只需要一个轻巧的可执行程序
|
- 全自动依赖安装,你只需要一个轻巧的可执行程序
|
||||||
- 预设多级显存配置,几乎在各种电脑上工作良好。通过配置页面切换到WebGPU策略,还可以在AMD,Intel等显卡上运行
|
- 预设多级显存配置,几乎在各种电脑上工作良好。通过配置页面切换Strategy到WebGPU,还可以在AMD,Intel等显卡上运行
|
||||||
- 自带用户友好的聊天,续写,作曲交互页面。支持聊天预设,附件上传,MIDI硬件输入及音轨编辑。
|
- 自带用户友好的聊天,续写,作曲交互页面。支持聊天预设,附件上传,MIDI硬件输入及音轨编辑。
|
||||||
[预览](#Preview) | [MIDI硬件输入](#MIDI-Input)
|
[预览](#Preview) | [MIDI硬件输入](#MIDI-Input)
|
||||||
- 内置WebUI选项,一键启动Web服务,共享硬件资源
|
- 内置WebUI选项,一键启动Web服务,共享硬件资源
|
||||||
@ -230,7 +230,7 @@ for i in np.argsort(embeddings_cos_sim)[::-1]:
|
|||||||
|
|
||||||
### 模型管理
|
### 模型管理
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### 下载管理
|
### 下载管理
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user