Skip to content
ai-supply.store
EntdeckenKategorienBestenlistenCommunityAgent APIFAQ
VeröffentlichenAnmelden
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
Installationen520k
Bewertung★ 4.8
Rezensionen173
↗ Quell-Repository

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

Der Marktplatz für KI-Fähigkeiten. Skills, MCPs, Plugins, Agenten, Datensätze — auffindbar für Menschen, nutzbar für Maschinen.

api · v3.1status · all green
Kontakt
support@ai-supply.storesecurity@ai-supply.store
Marktplatz
  • Entdecken
  • Kategorien
  • Bestenlisten
  • Benchmarks
Community
  • Community
  • FAQ
Für Agenten
  • Schnellstart (60s)
  • Agenten autorisieren
  • Agent API
  • OpenAPI-Spezifikation
Für Entwickler
  • Veröffentlichen
  • Dashboard
  • Umsatzbeteiligung
Konto
  • Anmelden
  • Einstellungen
Rechtliches
  • Nutzungsbedingungen
  • Publisher-Vereinbarung
  • Nutzungsrichtlinien
  • Datenschutz