Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

ai00_server

> AI 编程
Open source

The all-in-one RWKV runtime box with embed, RAG, AI agents, and more.

619 stars0 likes2 views
WebsiteGitHub

About

The all-in-one RWKV runtime box with embed, RAG, AI agents, and more.

AI00 RWKV Server


AI00 RWKV Server is an inference API server for the RWKV language model based upon the web-rwkv inference engine.

It supports Vulkan parallel and concurrent batched inference and can run on all GPUs that support Vulkan. No need for Nvidia cards!!! AMD cards and even integrated graphics can be accelerated!!!

No need for bulky pytorch, CUDA and other runtime environments, it's compact and ready to use out of the box!

Compatible with OpenAI's ChatGPT API interface.

100% open source and commercially usable, under the MIT license.

If you are looking for a fast, efficient, and easy-to-use LLM API server, then AI00 RWKV Server is your best choice. It can be used for various tasks, including chatbots, text generation, translation, and Q&A.

Join the AI00 RWKV Server community now and experience the charm of AI!

QQ Group for communication: 30920262

Features

  • Based on the RWKV model, it has high performance and accuracy
  • Supports Vulkan inference acceleration, you can enjoy GPU acceleration without the need for CUDA! Supports AMD cards, integrated graphics, and all GPUs that support Vulkan
  • No need for bulky pytorch, CUDA and other runtime environments, it's compact and ready to use out of the box!
  • Compatible with OpenAI's ChatGPT API interface

⭕Usages

  • Chatbot
  • Text generation
  • Translation
  • Q&A
  • Any other tasks that LLM can do

Other

  • Based on the web-rwkv project
  • Model download: V5, V6, V7

Installation, Compilation, and Usage

Download Pre-built Executables

  1. Directly download the latest version from Release

  2. After downloading the model, place the model in the assets/models/ path, for example, assets/models/RWKV-x060-World-3B-v2-20240228-ctx4096.st

  3. Optionally modify assets/configs/Config.toml for model configurations like model path, quantization layers, etc.

  4. Run in the command line

    bash
    $ ./ai00_rwkv_server
  5. Open the browser and visit the WebUI at http://localhost:65530 (https://localhost:65530 if tls is enabled)

(Optional) Build from Source

  1. Install Rust

  2. Clone this repository

    bash
    $ git clone https://github.com/cgisky1980/ai00_rwkv_server.git
    $ cd ai00_rwkv_server
  3. After downloading the model, place the model in the assets/models/ path, for example, assets/models/RWKV-x060-World-3B-v2-20240228-ctx4096.st

  4. Compile

    bash
    $ cargo build --release
  5. After compilation, run

    bash
    $ cargo run --release
  6. Open the browser and visit the WebUI at http://localhost:65530 (https://localhost:65530 if tls is enabled)

Convert the Model

It only supports Safetensors models with the .st extension now. Models saved with the .pth extension using torch need to be converted before use.

  1. Download the .pth model

  2. (Recommended) Run the python script convert_safetensors.py:

    bash
    $ python assets/scripts/convert_safetensors.py --input /path/to/model.pth --output /path/to/model.st

    Requirements: Python, with torch and safetensors installed.

  3. If you do not want to install python, In the Release you could find an executable called converter. Run

bash
$ ./converter --input /path/to/model.pth --output /path/to/model.st
  1. If you are building from source, run
bash
$ cargo run --release --package converter -- --input /path/to/model.pth --output /path/to/model.st
  1. Just like the steps mentioned above, place the model in the .st model in the assets/models/ path and modify the model path in assets/configs/Config.toml

Supported Arguments

  • --config: Configure file path (default: assets/configs/Config.toml)
  • --ip: The IP address the server is bound to
  • --port: Running port

Currently Available APIs

The API service starts at port 65530, and the data input and output format follow the Openai API specification. Note that some APIs like chat and completions have additional optional fields for advanced functionalities. Visit http://localhost:65530/api-docs for API schema.

  • /api/oai/v1/models
  • /api/oai/models
  • /api/oai/v1/chat/completions
  • /api/oai/chat/completions
  • /api/oai/v1/completions
  • /api/oai/completions
  • /api/oai/v1/embeddings
  • /api/oai/embeddings

The following is an out-of-box example of Ai00 API invocations in Python:

…

BNF Sampling

Since v0.5, Ai00 has a unique feature called BNF sampling. BNF forces the model to output in specified formats (e.g., JSON or markdown with specified fields) by limiting the possible next tokens the model can choose from.

Here is an example BNF for JSON with fields "name", "age" and "job":

start ::= json_object;
json_object ::= "{\n" object_members "\n}";
object_members ::= json_member | json_member ",\n" object_members;
json_member ::= "\t" json_key ": " json_value;
json_key ::= '"' "name" '"' | '"' "age" '"' | '"' "job" '"';
json_value ::= json_string | json_number;
json_string ::= '"'content'"';
content ::= #"\\w*";
json_number ::= positive_digit digits|'0';
digits ::= digit|digit digits;
digit ::= '0'|positive_digit;
positive_digit::="1"|"2"|"3"|"4"|"5"|"6"|"7"|"8"|"9";

WebUI Screenshots

Chat

Continuation

Paper (Parallel Inference Demo)

TODO List

  • Support for text_completions and chat_completions
  • Support for sse push
  • Integrate basic front-end
  • Parallel inference via batch serve
  • Support for int8 quantization
  • Support for NF4 quantization
  • Support for LoRA model
  • Support for tuned initial states
  • Hot loading and switching of LoRA model
  • Hot loading and switching of tuned initial states
  • BNF sampling

Join Us

We are always looking for people interested in helping us improve the project. If you are interested in any of the following, please join us!

  • Writing code
  • Providing feedback
  • Proposing ideas or needs
  • Testing new features
  • ✏Translating documentation
  • Promoting the project
  • Anything else that would be helpful to us

No matter your skill level, we welcome you to join us. You can join us in the following ways:

  • Join our Discord channel
  • Join our QQ group
  • Submit issues or pull requests on GitHub
  • Leave feedback on our website

We can't wait to work with you to make this project better! We hope the project is helpful to you!

Acknowledgement

Thank you to these awesome individuals who are insightful and outstanding for their support and selfless dedication to the project!

顾真牛 ‍

研究社交

josc146

l15y

Cahya Wirawan

yuunnn_w ⚠️

longzou ️

luoqiqi

Stargazers over time

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustaiaiagentschatgptchatgpt-api

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.