Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Bpe Python Packages

Python packages with the GitHub topic bpe. Sorted by monthly downloads, with stars and forks.
akretion
nfelib

nfelib - bindings Python para e ler, gerar e transmitir XML de NF-e, NFS-e nacional, CT-e, MDF-e, BP-e

52K 225 75
rsennrich
subword-nmt

Unsupervised Word Segmentation for Neural Machine Translation and Text Generation

44K 2K 469
OpenNMT
pyonmttok

Fast and customizable text tokenization library with BPE and SentencePiece support

42K 342 84
vkcom
youtokentome

Unsupervised text tokenizer focused on computational efficiency

13K 978 106
tuetoken-org
tuetoken

The fastest BPE tokenizer for modern LLMs (4.5 GB/s cold, up to 9.0 GB/s warm) -- drop-in for transformers.AutoTokenizer, byte-exact, never quadratic.

9K 7 0
gweidart
rs-bpe

A ridiculously fast Python BPE (Byte Pair Encoder) implementation written in Rust

7K 44 4
iamaber
banglatok

Fast, lossless subword tokenizers for Bangla, English, and Banglish—including code-mixed text.

5K 0 0
Systemcluster
kitoken

Fast tokenizer for language models, compatible with SentencePiece, Tokenizers, Tiktoken and more. Supports BPE, Unigram and WordPiece tokenization in JavaScript, Python and Rust.

3K 65 2
zainulwahaj
tokforge

BPE tokenizer in Rust with Python bindings. Token ids identical to tiktoken for GPT-2, GPT-4 and GPT-4o, checked on 110M differential inputs.

2K 0 0
neluca
tinybpe

🐍This is a fast, lightweight, and clean CPython extension for the Byte Pair Encoding (BPE) algorithm, which is commonly used in LLM tokenization and NLP tasks.

1K 5 0
sefineh-ai
amharic-tokenizer

Syllable-aware BPE tokenizer for the Amharic language (አማርኛ) – fast, accurate, trainable.

1K 99 16
Amrendra-gupta
turbobpe

turboBPE is a fast, minimal Byte Pair Encoding (BPE) tokenizer built on minbpe. It features a C-accelerated backend and a batch-merging algorithm to drastically speed up training while maintaining a clean, hackable codebase. Perfect for training custom vocabularies from scratch.

1K 2 0
s3bastiankoch
tiktoken-fast

Drop-in replacement for OpenAI's tiktoken in Python, JavaScript and Go, plus a Rust crate. Same token ids, 3 to 11x faster.

1K 0 0
Abhinav330
minibperust

Rust-backed BPE tokenizer with a minbpe-compatible Python API

888 0 0
VihangaFTW
bytetok

A fast, minimal BPE tokenizer for building LLMs.

824 3 0
LeeGyeongPil
langlock

Stop local LLMs from drifting into Chinese/Japanese characters. A stateful logit mask for byte-level BPE vocabularies, with Hugging Face and llama-cpp-python adapters and logit_bias/GBNF/regex exports.

823 0 0
JpCurada
filipino-tokenizer

The first, morphologically-aware subword tokenizer for Philippine languages, combining a structured linguistic affix data with BPE for language model pretraining.

759 4 0
henryhale
grouptok

A translation-grouped tokenizer: subwords that translate each other share a group

678 0 0
adam2go
puretiktoken

tiktoken in pure Python: byte-for-byte compatible BPE tokenizer for GPT-4/4o, no Rust extension, zero dependencies

622 0 0
Hk669
bpetokenizer

(py package) train your own tokenizer based on BPE algorithm for the LLMs (supports the regex pattern and special tokens)

567 4 1
Ismantic
piece-tokenizer

Implementation of Piece Tokenizer

555 0 0
zouharvi
tokenization-scorer

Package for evaluating text tokenizations.

474 52 6
Thibault00
runtoken

A blazing-fast BPE tokenizer for LLMs. Drop-in tiktoken replacement, 20-80x faster.

434 3 0
soaxelbrooke
bpe

Byte Pair Encoding for Python!

401 234 39
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology