Blogs›Crusoe›Fast Tokenization
fastokens v2 introduces native tiktoken support, a regex-free Unicode scanner for pretokenization, and a rebuilt BPE core for improved serving latency and bulk throughput. It now supports tiktoken.model files directly, enabling compatibility with models like Kimi K3. Performance gains are significant, with up to 10-46x speedups over HuggingFace tokenizers and 10x over tiktoken on specific workloads. Features for LLM serving include a prefix cache for shared prompts and an `encode_batch_flat` function. This post discusses the broader implications of agentic inference on tokenomics, emphasizing cost per token as the ultimate measure of inference efficiency. It highlights how agentic workloads, with their multi-step plans and stateful context, can consume significantly more tokens per task, necessitating a deeper evaluation of infrastructure beyond GPU/hour and FLOPS/dollar. The post details the 'inference iceberg' metaphor, distinguishing between visible metrics (GPU specs) and underlying factors (power, cooling, networking, software stack) that impact real-world token output and cost. It introduces new metrics like tokens per watt and cost per completed task, and discusses the role of physical infrastructure and the open-source software stack in optimizing agentic AI inference. Crusoe's vertically-integrated AI factories and early adoption of NVIDIA's DSX Platform are presented as key enablers for achieving low cost per token in agentic workloads. The post also mentions Crusoe's Managed Inference and Serverless Fine-Tuning services for deploying and customizing open agentic AI systems.