What problem does it solve? Tokenizing large text corpora with pure Python implementations is slow, and building custom vocabularies for domain-specific or multilingual models requires deep knowledge of subword algorithms. This Skill provides guidance for high-performance tokenization and custom tokenizer training with the HuggingFace Tokenizers library. ## Core Features & Use Cases - Fast Tokenization: Rust-based implementation tokenizes 1GB of text in under 20 seconds, with batch encoding, padding, and truncation support. - Custom Tokenizer Training: Train BPE, WordPiece, or Unigram tokenizers from files, iterators, or streaming datasets with configurable vocabulary size and special tokens. - Alignment Tracking: Map tokens back to original character offsets for NER, question answering, and token classification tasks. - Transformers Integration: Convert custom tokenizers to PreTrainedTokenizerFast and use them with AutoTokenizer and any transformers model. - Use Case: You are pretraining a domain-specific language model on medical literature. Use this Skill to train a 50k BPE tokenizer on your PubMed corpus, wrap it for transformers, and verify the unknown token rate stays below 1%. ## Quick Start Train a custom BPE tokenizer with a 30,000 token vocabulary on my corpus file and show me how to load it with transformers AutoTokenizer.