{"categories":[{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/5"},{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/2"},{"label":"Linguistic","url":"https://skillfed.io/packages/category/text-processing-linguistic/2"}],"enrichment":{"capability":"A fast, Rust-backed tokenizer library that encodes and decodes text using BPE, WordPiece, and Unigram algorithms, compatible with HuggingFace tokenizer models.","skillfed_tags":["rust-backed","transformers","nlp"],"use_cases":["Accelerate batch tokenization in production NLP pipelines where throughput matters (e.g., preprocessing large datasets for model training).","Replace HuggingFace tokenizers in latency-sensitive applications like real-time inference or API endpoints.","Reduce model artifact size by storing tokenizers in .tkz format instead of tokenizer.json for deployment.","Tokenize text for BERT, GPT-2, Llama, Mistral, and other transformer models without rewriting tokenization logic.","Count tokens quickly without creating full encoding objects, useful for prompt length validation in LLM applications."],"what_it_does":"tokie is a tokenizer library written in Rust with Python bindings that converts text into token IDs and metadata for transformer models. It supports BPE (used by GPT-2 and tiktoken), WordPiece (BERT), and Unigram encoders, and can load any HuggingFace tokenizer model directly. The library is designed as a drop-in replacement for HuggingFace's tokenizers package, offering substantially faster encoding and decoding through its Rust implementation.\n\nThe package handles common tokenization workflows: single-text encoding, batch encoding across multiple CPU cores, pair encoding for cross-encoder models, padding and truncation, byte-offset tracking, and token counting. It also provides a compact binary .tkz format for model storage that is significantly smaller than the standard tokenizer.json format. No runtime dependencies are required beyond Python itself.","worth_installing":"Yes, if you are tokenizing text for transformer models and speed or model size matters. The package is actively maintained, has no known vulnerabilities, supports current Python versions, and offers a permissive dual license. Install friction is moderate due to compiled wheels, but prebuilt binaries cover common platforms. Not necessary if your tokenization is already fast enough or if you need features not yet documented in the fact sheet."},"id":"tokie","links":{"html":"https://skillfed.io/packages/tokie","md":"https://skillfed.io/packages/tokie.md","pypi":"https://pypi.org/project/tokie/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-24","license_spdx":null,"license_treatment":"permissive","name":"tokie","python_support":"supports_current","summary":"Blazingly fast tokenizer \u2014 50x faster, 10x smaller, 100% accurate"},"popularity":{"monthly_downloads":487336,"position":6386,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.4"}
