You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 days ago | |
|---|---|---|
| .. | ||
| .gitignore | 2 days ago | |
| README.md | 2 days ago | |
| compile.py | 2 days ago | |
| compile_wasm.sh | 2 days ago | |
| index.css | 2 days ago | |
| index.html | 2 days ago | |
| index.js | 2 days ago | |
| make_tiktoken_js.sh | 2 days ago | |
| tiktoken-export.js | 2 days ago | |
| webpack.config.js | 2 days ago | |
| worker.js | 2 days ago | |
README.md
How to build and run tinychat in browser (WebGPU and WASM)
PYTHONPATH=. python examples/tinychat/tinychat-browser/compile.py./examples/tinychat/tinychat-browser/compile_wasm.sh- Prerequisite: install emscripten. This script looks for
~/emsdk/emsdk_env.sh, adjust this based on your installation.
- Prerequisite: install emscripten. This script looks for
./examples/tinychat/tinychat-browser/make_tiktoken_js.sh- Prerequisite: install
npm,webpack.
- Prerequisite: install
cd examples/tinychat && python -m http.server 7776- In browser: open either
localhost:7776/tinychat-browser(WebGPU), orlocalhost:7776/tinychat-browser/?backend=wasm(WASM)