Skip to content

Repository files navigation

TokenBuster

A chat template to tokenizer playground that supports 4k+ models like DeepSeek, Qwen, Perplexity AI, etc.

Local Setup

npm install
npm run dev

Docker Compose (Web + Model Fetcher)

This project can run as two containers:

  • model-fetcher: syncs models from Hugging Face and serves model files over HTTP.
  • web: Next.js UI that fetches models/metadata/tokenizers through API calls to model-fetcher.

Start

docker compose up --build

Then open http://localhost:3000.

Optional env

  • HF_API_KEY or HF_TOKEN: token used by the fetcher when syncing private/rate-limited models.
  • SYNC_INTERVAL_MIN: fetch interval in minutes (default 5).
  • NEXT_PUBLIC_ENABLE_MODEL_FETCHER: set to false to disable all fetcher-backed /api/* calls in the UI and Next rewrites.

Patches in Xenova/Transformers library

Xenova/transformers npm library is a JavaScript library that allows you to run Hugging Face Transformers models directly in the browser or in Node.js using WebAssembly, without requiring Python. It supports tasks like tokenization, text classification, question answering, and more. All client-side and serverless.


© Vr3ll4

About

Special Token Injection (STI) Playground

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages