Use Hugging Face Tokenizers in the browser using Rust and WASM. View the tokenisation of your words using the tokenizer for the model you're using.
https://sd-tokenizer.rocker.boo/
wasm-pack build --target no-modulesAfter building the WASM we can load everything from an http-server.
Example server:
npx http-server
npx http-server
Starting up http-server, serving ./
http-server version: 14.1.1
http-server settings:
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none
Available on:
http://127.0.0.1:8080
http://192.168.1.7:8080
http://172.21.0.1:8080
http://172.19.0.1:8080
http://172.18.0.1:8080
Hit CTRL-C to stop the server
And we can go to http://127.0.0.1:8080.
Using fly to host the service
fly deploy
Open and welcome for issues or PRs.
