[GH-ISSUE #4659] [Other] Consider integrating Gigatoken for faster prompt tokenization #2118

Closed
opened 2026-11-04 01:56:49 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @AlecMcCutcheon on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4659

I came across Gigatoken, and thought it might be worth exploring as a potential performance improvement for Strata.

Gigatoken is a high-performance tokenizer implementation that claims substantial speed improvements over Hugging Face Tokenizers and TikToken, with benchmarks showing hundreds of times faster tokenization for many popular model families, including Qwen, Llama, and DeepSeek.

What makes this particularly interesting is its compatibility mode: it aims to produce identical token IDs to existing Hugging Face and TikToken implementations. This means it could potentially accelerate tokenization without changing model weights, vocabularies, or requiring any retraining.

Potential benefits for Strata:

Faster prompt processing, particularly with large context windows.
Reduced CPU overhead when tokenizing incoming prompts.
Potentially improved time-to-first-token (TTFT), especially for workloads where tokenization is a meaningful bottleneck.
Better throughput when processing large amounts of text or handling multiple requests.
Obviously, faster tokenization won't directly accelerate GPU inference or autoregressive generation, and the actual end-to-end improvement would depend on how much time Strata currently spends tokenizing versus running inference.

Still, given Strata's focus on making local inference as fast and accessible as possible, I think benchmarking Gigatoken against the current tokenizer implementation would be worthwhile.

Repository: https://github.com/marcelroed/gigatoken

Strata version: v0.1.54

Originally created by @AlecMcCutcheon on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4659 I came across [Gigatoken](https://github.com/marcelroed/gigatoken), and thought it might be worth exploring as a potential performance improvement for Strata. Gigatoken is a high-performance tokenizer implementation that claims substantial speed improvements over Hugging Face Tokenizers and TikToken, with benchmarks showing hundreds of times faster tokenization for many popular model families, including Qwen, Llama, and DeepSeek. What makes this particularly interesting is its compatibility mode: it aims to produce identical token IDs to existing Hugging Face and TikToken implementations. This means it could potentially accelerate tokenization without changing model weights, vocabularies, or requiring any retraining. Potential benefits for Strata: Faster prompt processing, particularly with large context windows. Reduced CPU overhead when tokenizing incoming prompts. Potentially improved time-to-first-token (TTFT), especially for workloads where tokenization is a meaningful bottleneck. Better throughput when processing large amounts of text or handling multiple requests. Obviously, faster tokenization won't directly accelerate GPU inference or autoregressive generation, and the actual end-to-end improvement would depend on how much time Strata currently spends tokenizing versus running inference. Still, given Strata's focus on making local inference as fast and accessible as possible, I think benchmarking Gigatoken against the current tokenizer implementation would be worthwhile. Repository: https://github.com/marcelroed/gigatoken Strata version: v0.1.54
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
  • Add the Strata version (Settings > About, or strata --version).

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6512520851 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". - [ ] Add the Strata version (Settings > About, or `strata --version`). Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 4, 2026):

Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection.

To bring it back: fix the title (area prefix) and the missing parts, then comment /reopen. A check runs and reopens it, or tells you what is still missing. See CONTRIBUTING.md.

<!-- gh-comment-id:6622493467 --> @github-actions[bot] commented on GitHub (Nov 4, 2026): Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection. To bring it back: fix the title (area prefix) and the missing parts, then comment `/reopen`. A check runs and reopens it, or tells you what is still missing. See [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2118
No description provided.