paper-with-me

홈 › Papers

GPUTOK: GPU Accelerated Byte Level BPE Tokenization

2026-03-03 · Venu Gopal Kadamba, Kanishkha Jaisankar arxiv

As large language models move toward million-token context windows, CPU tokenizers become a major slowdown because they process text one step at a time while powerful GPUs sit unused. We built a GPU-based byte-level BPE tokenizer that follows GPT-2's merge rules. It includes a basic BlockBPE-style kernel and a faster, optimized version that uses cuCollections static map, CUB reductions, and a pybind11 interface for Python. On WikiText103 sequences up to 131k tokens, the optimized GPU tokenizer produces the same tokens as a CPU version and, for the longest inputs, is about 1.7x faster than tiktoken and about 7.6x faster than the HuggingFace GPT-2 tokenizer. Nsight profiling shows that 70-80% of CUDA API time goes to memory allocation, so adding memory pooling should give the biggest speed boost next. Tests on generation tasks using WikiText103 prompts show that our GPU tokenizer's outputs stay within about one percentage point of tiktoken and HuggingFace GPT-2 on similarity and overlap metrics, meaning it keeps output quality while making long-context inference more practical.

📄 PDF Abstract BibTeX arXiv:2603.02597

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

SpaceByte: Towards Deleting Tokenization from Large Language Modeling

2024-04-22 · Kevin Slagle

Tokenization is widely used in large language models because it significantly improves performance. However, tokenization imposes several disadvantages, such as performance biases, increased adversarial vulnerability, de…

DecoderLanguage ModelingLanguage Modelling

Decoupling the Benefits of Subword Tokenization for Language Model Training via Byte-level Simulation

2026-04-29 · Théo Gigant, Bowen Peng, Jeffrey Quesnelle arxiv

Subword tokenization is an essential part of modern large language models (LLMs), yet its specific contributions to training efficiency and model performance remain poorly understood. In this work, we decouple the effect…

Improbable Bigrams Expose Vulnerabilities of Incomplete Tokens in Byte-Level Tokenizers

2024-10-31 · Eugene Jang, Kimin Lee, Jin-Woo Chung, Keuntae Park 외

Tokenization is a crucial step that bridges human-readable text with model-readable discrete tokens. However, recent studies have revealed that tokenizers can be exploited to elicit unwanted model behaviors. In this work…

Hallucination

Exact Byte-Level Probabilities from Tokenized Language Models for FIM-Tasks and Model Ensembles

2024-10-11 · Buu Phan, Brandon Amos, Itai Gat, Marton Havasi 외

Tokenization is associated with many poorly understood shortcomings in language models (LMs), yet remains an important component for long sequence scaling purposes. This work studies how tokenization impacts model perfor…

LEMMA

Byte Latent Transformer: Patches Scale Better Than Tokens

2024-12-13 · Artidoro Pagnoni, Ram Pasunuru, Pedro Rodriguez, John Nguyen 외

We introduce the Byte Latent Transformer (BLT), a new byte-level LLM architecture that, for the first time, matches tokenization-based LLM performance at scale with significant improvements in inference efficiency and ro…