https://github.com/cryscan/web-rwkv-puzzles
Solving puzzles with RWKV locally in your browser.
https://github.com/cryscan/web-rwkv-puzzles
Last synced: 11 months ago
JSON representation
Solving puzzles with RWKV locally in your browser.
- Host: GitHub
- URL: https://github.com/cryscan/web-rwkv-puzzles
- Owner: cryscan
- License: other
- Created: 2024-12-02T18:04:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-11T04:10:51.000Z (about 1 year ago)
- Last Synced: 2025-04-12T18:42:28.473Z (about 1 year ago)
- Language: TypeScript
- Size: 8.42 MB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web-RWKV Puzzles
Run the RWKV model locally in browser on your GPU to solve a 15 puzzle.
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-puzzles/)!
## Dependencies
### `node.js`, `pnpm` and `typescript`
Install requirements:
```bash
$ npm install --global pnpm
$ npm install --global typescript
$ pnpm install
```
### `rust` and `wasm-pack`
To install `wasm-pack`, use
```bash
$ cargo install wasm-pack
```
## Compile and Pack
To build and pack, run
```bash
$ ./build.cmd
```
### MacOS
First, make the script executable:
```bash
$ chmod +x build.bash
```
Then, run the script:
```bash
$ ./build.bash
```
## Run
```bash
$ cd frontend
$ pnpm start
```