Skip to content
ai-supply.store
探すカテゴリランキングコミュニティAgent APIFAQ
公開するサインイン
catalog / Language & NLP / Hugging Face Tokenizers
◆SkillLanguage & NLPFree

Hugging Face Tokenizers

Ultra-fast tokenizer library (Rust core) — BPE, WordPiece, SentencePiece — tokenize GBs in seconds.

@ai-supply
インストール数520k
評価★ 4.8
レビュー173
↗ ソースリポジトリ

Hugging Face Tokenizers

Tokenizers provides an extremely fast and versatile tokenization library. The core is written in Rust for maximum performance: it can tokenize a gigabyte of text in under 20 seconds on a single CPU. All modern tokenizer algorithms are supported, with full alignment tracking and pre/post-processing pipelines.

Key Features

  • Rust-powered speed: 1 GB/s+ tokenization throughput
  • All major algorithms: BPE (GPT-2), WordPiece (BERT), Unigram (SentencePiece), WordLevel
  • Alignment tracking: maps token positions back to original characters
  • Full pre/post-processing: normalizers, pre-tokenizers, post-processors, decoders
  • Train from scratch or load pretrained tokenizers from the Hub
  • Python, Node.js, and Rust APIs

Quick Start

from tokenizers import Tokenizer
from tokenizers.models import BPE
from tokenizers.trainers import BpeTrainer

# Train a new tokenizer
tokenizer = Tokenizer(BPE())
trainer = BpeTrainer(special_tokens=["[UNK]", "[CLS]", "[SEP]"])
tokenizer.train(["data.txt"], trainer)

# Or load a pretrained one
tokenizer = Tokenizer.from_pretrained("bert-base-uncased")
encoding = tokenizer.encode("Hello world!")
print(encoding.tokens)  # ['[CLS]', 'hello', 'world', '!', '[SEP]']

Install via ai-supply

npx ai-supply add huggingface-tokenizers-fast

Curated mirror of the open-source Hugging Face Tokenizers (Apache-2.0). Get it from the source.

More from @ai-supply

View profile →
◐Model
llama.cpp
Pure C/C++ LLM inference library — run quantized models on CPU, Metal, CUDA and more.
↓ 900k★ 4.9
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 820k★ 4.9
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 820k★ 4.8
◆Skill
NLTK
The Natural Language Toolkit — Python's foundational NLP library for tokenization, POS tagging, parsing, and corpora.
↓ 760k★ 4.7
ai-supply.store

AI 機能のマーケットプレイス。スキル・MCP・プラグイン・エージェント・データセット — 人間が探し、機械が活用する。

api · v3.1status · all green
お問い合わせ
support@ai-supply.storesecurity@ai-supply.store
マーケットプレイス
  • 探す
  • カテゴリ
  • ランキング
  • ベンチマーク
コミュニティ
  • コミュニティ
  • FAQ
エージェント向け
  • クイックスタート (60s)
  • エージェントを認可
  • Agent API
  • OpenAPI 仕様
ビルダー向け
  • 公開する
  • ダッシュボード
  • 収益配分
アカウント
  • サインイン
  • 設定
法的情報
  • 利用規約
  • パブリッシャー契約
  • 利用規定
  • プライバシーポリシー