tiktoken
PulseAugur coverage of tiktoken — every cluster mentioning tiktoken across labs, papers, and developer communities, ranked by signal.
17 day(s) with sentiment data
-
LLM tokenization, context windows, and temperature explained
Large language models process text by breaking it down into tokens, which are numerical representations of words or parts of words. This tokenization process means models don't 'see' letters within a word, leading to po…
-
text-chipper v1.1.0 achieves 37.1 MiB/s with guaranteed token budgets
The text-chipper library has released version 1.1.0, introducing significant improvements in text chunking for RAG pipelines. This new version achieves a throughput of 37.1 MiB/s, outperforming other chunking methods by…
-
Image data in prompts inflates token counts and costs, developers warned
Embedding image data as base64 text within prompts can drastically inflate token counts, leading to unexpected costs and potential context window issues. A 133 KB image, when encoded as base64 and fed into a tokenizer l…
-
Line numbers add 42% to LLM code token costs
Adding line numbers to code sent to large language models can significantly increase token count and associated costs. Measurements show that common line-numbering formats, like the `cat -n` style, can add up to 42% to …
-
Anthropic's Claude token counts differ significantly from OpenAI's estimates
Online token counters for Anthropic's Claude models often provide inaccurate estimates because they rely on OpenAI's tokenizer. The actual token counts for Claude can be significantly higher, with prose and code example…
-
Python's json.dumps default inflates LLM prompt costs for non-ASCII text
A common default setting in Python's `json.dumps` function, `ensure_ascii=True`, can significantly increase the token count for prompts containing non-ASCII characters like Russian or Chinese. This is because the functi…
-
Coding agents need code maps, not more tools, to save context
A new approach to coding agents suggests that instead of adding more tools, these agents need a "map" of the codebase to efficiently navigate and understand code. This map, built using tools like Graphify, can significa…
-
Python LLM Gateway Slashes Costs by 82% with Caching and Routing
A developer has outlined a Python-based gateway for optimizing LLM costs, demonstrating an 81.9% reduction in simulated daily expenses from $80.37 to $14.52. The approach involves implementing features such as per-reque…
-
Vietnamese text costs 1.5-3x more tokens than English in LLMs
Processing non-English text, particularly Vietnamese, with large language models incurs higher costs due to tokenization inefficiencies. Vietnamese can require 1.5 to 3 times more tokens than English for the same meanin…
-
LLM code context: Comments and docstrings are the real token cost, not whitespace
Analysis of the CPython 3.13 standard library reveals that comments and docstrings constitute approximately 34.8% of tokens, making them the most significant portion of code sent to LLMs. In contrast, whitespace, such a…
-
LLM token counting varies by model, language, and version
Token counting is crucial for understanding LLM costs and context limits, with different models and languages exhibiting varying tokenization efficiencies. OpenAI provides an open-source tokenizer, `tiktoken`, for exact…
-
MCP tool definitions inflate AI agent costs and degrade performance
Developers are encountering significant costs and performance issues due to the large number of tokens consumed by tool definitions in the Model Context Protocol (MCP). When AI agents connect to multiple MCP servers, th…
-
LLM ticket deduplication costs skyrocket with quadratic scaling, but categorization offers savings
Using large language models to identify duplicate support tickets can become prohibitively expensive due to the quadratic growth in comparisons required. A naive approach of comparing every ticket with every other ticke…
-
MCP tool context window usage found to be less than panic suggests
A recent analysis of MCP (Model Communication Protocol) tools reveals that their context window consumption is less severe than previously feared. By measuring the token cost of various tools, the study found that even …
-
osFoundry MCP uses polling for updates, Codex CLI pushes dedicated branches
The osFoundry MCP server utilizes a polling mechanism for resource updates rather than a push-based approach, as detailed in the first article. This method involves clients periodically querying for changes, which is at…
-
757M LLM trained from scratch loses to fine-tuned Qwen model
An individual trained a 757 million parameter LLM from scratch, comparing its performance against a fine-tuned Qwen2.5-0.5B-Instruct model. The author details the process, including data preparation, transformer archite…
-
osFoundry's Codex CLI tool relies on owner approval for GitHub PRs
The osFoundry MCP server's Codex CLI tool, when requesting a pull request to GitHub or GitLab, does not include branch names, titles, or target branches. Instead, it relies on the repository owner to provide these detai…
-
osFoundry MCP server forces Codex CLI to poll for changes due to non-functional push mechanisms
The osFoundry MCP server's push mechanisms are non-functional, forcing clients to use a polling approach for updates. This is particularly relevant for Codex CLI, which is not a daemon and thus relies on a sequence curs…
-
UUIDs in LLM prompts inflate costs by 4.8x, prompt engineering fix advised
Using Universally Unique Identifiers (UUIDs) as database IDs in LLM prompts significantly increases costs due to how tokenizers process random strings. These identifiers, when fed into models like GPT-5.6, Claude Haiku …
-
Codex CLI and osFoundry: A deep dive into session run queuing and permissions
This series of articles details how the Codex CLI interacts with the osFoundry MCP server to queue and manage session runs. It explains that the `request_session_run` tool is unique as it initiates work without manual i…