📐 GPT token estimation and context size utilities without a full tokenizer
-
Updated
Nov 29, 2024 - TypeScript
📐 GPT token estimation and context size utilities without a full tokenizer
tokdu (Token Disk Usage) is a terminal-based utility that helps you analyze and visualize token usage in your codebase. Similar to the classic du (disk usage) command, tokdu shows you how many tokens your files and directories consume, which is essential when working with Large Language Models (LLMs) that have token limits.
Tiktoken-counter as standalone API
Add a description, image, and links to the token-counter topic page so that developers can more easily learn about it.
To associate your repository with the token-counter topic, visit your repo's landing page and select "manage topics."