/RWKV-api

Flask server for RWKV

Primary LanguagePython

RWKV-api

Simple Flask API for RWKV, 90% of the code is the base chat from https://github.com/BlinkDL/ChatRWKV.

Endpoints

localhost:5000/api?prompt=text
localhost:5000/instruct?prompt=text
localhost:5000/continue
localhost:5000/reset

Install

Setup

  • Create a folder "models" and rename your RWKV model to model.pth
  • in the file base_chat set your strategy, etc..
  • if you are not using CUDA, you can set RWKV_CUDA_ON to 0 ( not recommended )

Start

Run python api.py in "x64 native tools command prompt".

Extra - Get puplic address without portfoward