Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cryscan/web-rwkv-realweb
https://github.com/cryscan/web-rwkv-realweb
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cryscan/web-rwkv-realweb
- Owner: cryscan
- License: other
- Created: 2024-02-13T15:04:48.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-09-22T11:40:23.000Z (3 months ago)
- Last Synced: 2024-10-20T11:43:00.616Z (2 months ago)
- Language: Rust
- Size: 32 MB
- Stars: 26
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web-RWKV-RealWeb
Run the RWKV model locally in browser on your GPU. This demo is built upon the [web-rwkv](https://github.com/cryscan/web-rwkv) inference engine.
Check the [live demo](https://cryscan.github.io/web-rwkv-realweb/)!
## Dependencies
### `node.js` and `typescript`
To install `typescript`, use
```bash
$ npm install -g typescript
```### `rust` and `wasm-pack`
To install `wasm-pack`, use
```bash
$ cargo install wasm-pack
```### Model Download
Download the model [here](https://huggingface.co/cgisky/AI00_RWKV_V5/blob/main/RWKV-5-World-0.4B-v2-20231113-ctx4096.st),
and put it under `assets/models`.## Compile and Pack
To build and pack, run
```bash
$ ./build.cmd
```## Run
Start a local http server to serve the folder, open the page in your browser.