Files
StarPilot/tinygrad_repo/examples/tinychat/tinychat-browser
github-actions[bot] eefc084302 sunnypilot v2025.12.18-3820
version: sunnypilot v2025.003.000 (dev)
date: 2025-12-18T05:48:43
master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
2025-12-18 05:48:43 +00:00
..
2025-12-18 05:48:43 +00:00
2025-12-18 05:48:43 +00:00
2025-12-18 05:48:43 +00:00
2025-12-18 05:48:43 +00:00
2025-12-18 05:48:43 +00:00
2025-12-18 05:48:43 +00:00
2025-12-18 05:48:43 +00:00
2025-12-18 05:48:43 +00:00
2025-12-18 05:48:43 +00:00
2025-12-18 05:48:43 +00:00

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.
  • ./examples/tinychat/tinychat-browser/make_tiktoken_js.sh
    • Prerequisite: install npm, webpack.
  • cd examples/tinychat && python -m http.server 7776
  • In browser: open either localhost:7776/tinychat-browser (WebGPU), or localhost:7776/tinychat-browser/?backend=wasm (WASM)