LabscoMCP early access ↗
Orchestra-Research avatar✓ Official

huggingface-tokenizers

Local tool required★ 13k on GitHub
part of orchestra-research/ai-research-skillsby orchestra-research

Text has to be chopped into small pieces and turned into numbers before a model can read it; this does the chopping at about a gigabyte every twenty seconds, and can learn a set of pieces tailored to your own kind of writing.

WHEN TO USE

SCOPE

USE FOR

  • Train a custom BPE or WordPiece vocabulary on your own text corpus from scratch.
  • Chop a huge pile of text fast enough to keep a production system fed.
  • Map a model's predicted token back to its exact character span in the source text.
  • Wrap a custom-trained tokenizer so it works as a normal HuggingFace transformers tokenizer.

NOT FOR

  • For a language-independent tokenizer like the one T5 or ALBERT use, use SentencePiece instead.
  • For OpenAI's GPT-model BPE tokenizer, use tiktoken instead.