Reading view
How to Test LLM State Tracking With a StateBench-Style Deployment Log
Nine promotion histories, a Python replay, and a four-variant prompt with an UNKNOWN option show whether a release assistant tracks state or just reads the last line.
The post How to Test LLM State Tracking With a StateBench-Style Deployment Log appeared first on Towards Data Science.
Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.
Benchmarks with Qwen3 and Llama on llama.cpp show a draft model sped up code, JSON, and tool calls up to 1.7x, while uncached agent loops ran 6% slower.
The post Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache. appeared first on Towards Data Science.
A Second LLM Judge Hit 87.5% Precision but Left 21 of 33 for Humans
Using Han and Kim's Chatbot Arena data, GPT-6 Luna and Claude Haiku 4.5 were tested as a panel, and Haiku alone matched users on 22 of 23 clear matchups.
The post A Second LLM Judge Hit 87.5% Precision but Left 21 of 33 for Humans appeared first on Towards Data Science.
The Birthday Paradox Shows Small LLMs Pick From About 6 of 40 Words
Ask the same question 300 times, count the repeats, and solve for N: a few lines of Python that work on any chatbot you can type into.
The post The Birthday Paradox Shows Small LLMs Pick From About 6 of 40 Words appeared first on Towards Data Science.
What a 90% Prompt Cache Hit Rate Hides About Attention Work
Request hit rate, token reuse, and latency tell different stories; a 2026 preprint found lower 99th-percentile but higher median time to first token.
The post What a 90% Prompt Cache Hit Rate Hides About Attention Work appeared first on Towards Data Science.
Neurosymbolic Agents Explained, With a Z3 Example in Python
Starting from Air Canada's chatbot case, a tour of Logic-LM, Agent-C, and Amazon's checks shows the solver is sound but the English-to-logic step is not.
The post Neurosymbolic Agents Explained, With a Z3 Example in Python appeared first on Towards Data Science.
“Collaboration over competition”: Hugging Face hands model inference traffic to OpenRouter
Hugging Face and OpenRouter have announced a partnership that promises to make AI model inference faster and more reliable for developers.
The collaboration, announced by the two companies on Monday, will see Hugging Face use OpenRouter’s infrastructure to route language-model requests to third-party providers based on pricing, performance and reliability.
Previously, Hugging Face used its own routing system, introduced as part of its Inference Providers service in January 2025, to connect developers with companies running AI models. The service initially launched with four providers: Fal, Replicate, SambaNova and Together AI. The system would select a provider to handle each request, but if that provider encountered a problem, the request failed.
With OpenRouter now in the mix, the request can automatically be passed to another provider, meaning that developers should encounter fewer failed requests.
Hugging Face co-founder and CEO Clément Delangue sees the partnership as an example of how collaboration between AI companies can make open-weight models more accessible to developers, with each company focusing on its own strengths.
“Too many people treat AI as a zero-sum race. Open-source is winning by doing the opposite: collaboration over competition!”
“Too many people treat AI as a zero-sum race,” Delangue writes on LinkedIn. “Open-source is winning by doing the opposite: collaboration over competition!”
“Hugging Face for storage and collaboration. OpenRouter for inference,” he adds.
Stripe, Nvidia and the bigger picture
The announcement comes less than a week after Stripe completed its acquisition of OpenRouter, a deal first announced in August and reportedly worth more than $7 billion.
Hugging Face, for its part, is also in the process of being acquired by AI chip giant Nvidia for nearly $13 billion. Nvidia, however, is currently grappling with a scandal involving its former CEO Jensen Huang, who resigned last week amid the controversy.
At any rate, the OpenRouter integration is already live, initially covering 160 models from 38 AI labs. For Hugging Face, the arrangement means it can offer developers more dependable access to these models without having to maintain its own routing system.
In real terms, this means that users can continue chatting directly with AI models on Hugging Face’s model pages, while new interface features let them compare providers by price, speed and uptime, and check performance metrics to help them choose a provider.

The integration also works in reverse. OpenRouter users can now send records of their AI model requests to Hugging Face Storage Buckets, where they can examine prompts and responses, build evaluation datasets and prepare models for fine-tuning.
Zooming out, OpenRouter gains a direct route into Hugging Face’s enormous developer community, potentially bringing more inference traffic — and revenue –to its new owner, Stripe.
Looking ahead, Hugging Face says it plans to let developers connect their OpenRouter accounts directly to Hugging Face, while expanding the integration to cover more AI tasks. It hasn’t provided a timeline for either development.
In a blog post announcing the tie-up, OpenRouter’s director of product marketing Sasha Blumenfeld says the partnership builds on the company’s original mission of simplifying access to AI models.
“We built OpenRouter so developers can reach many models and providers through one API, use the best model for each task, and count on it to respond.”
“We built OpenRouter so developers can reach many models and providers through one API, use the best model for each task, and count on it to respond,” Blumenfeld writes. “Starting today, that extends to everyone building on Hugging Face.”
How OpenRouter chooses providers
The integration builds on a recent routing overhaul OpenRouter announced in October, which changed the criteria its infrastructure uses to determine where inference requests are sent.
Rather than relying primarily on advertised prices, the system continuously monitors providers’ actual performance, weighing response times, costs and availability before choosing where to send each request. If a provider becomes overloaded or stops responding, OpenRouter can shift traffic elsewhere and automatically retry failed requests with another provider.

OpenRouter says the changes reduced capacity-related errors by 46%, shortened the wait for the first generated token by 16.9%, and increased token generation speed by 16.3% in one of its tests. There was a cost, however: the average price per request rose by 6%, though these figures relate specifically to OpenRouter’s routing overhaul in October.
Fast-forward to today, and developers using Hugging Face can now choose whether to prioritize lower costs or faster responses, or leave OpenRouter to decide. The interface also shows the companies available to run each model, alongside their respective prices, speeds and recent availability, allowing developers to compare their options before making a request.

Developers can also disable individual providers in their account settings, preventing requests from being sent to those companies. Organizations can apply the same restrictions across all requests billed to them.

There is one notable catch in all of this: developers can no longer use their own third-party provider API keys for language-model requests through Hugging Face. Those requests must now be billed through Hugging Face, although developers can still select particular providers.
Hugging Face says it will continue charging the underlying providers’ prices without adding a markup.
It’s worth noting that the integration currently applies only to language models. Image, video and audio generation continue using Hugging Face’s existing infrastructure.
The rise of open-weights
The backdrop to all this, of course, is the rapid rise of open-weight models as more cost-effective alternatives to those emerging from the trillion-dollar frontier AI labs.
Back in September, The New Stack reported that open-weight models accounted for 60% of OpenRouter’s US token consumption in August, with Chinese-developed models responsible for most of that traffic.
That same month, another milestone emerged: open-weight models had processed a majority of tokens on Vercel’s AI Gateway for the first time, accounting for 56% in August, up from just 7% in December 2025. However, they represented only 14% of estimated spending, while Anthropic alone accounted for 64%.
The trend has very much continued, too. According to OpenRouter’s October analysis, open-weight models accounted for 71.7% of tokens processed by its 50 most-used models at the end of September, up from 26.8% a year earlier. Over that period, weekly token consumption for open-weight models grew more than sixtyfold.
Vercel’s October AI Gateway report painted a similar picture, with open-weight models accounting for 71.5% of tokens in September. Their share of estimated spending also climbed to 23%, although proprietary models continued to account for most of the money flowing through the platform.
“The best open-weight models still trail the best proprietary ones on the hardest benchmarks. For a lot of workloads, that trade-off is worth it.”
In a blog post announcing its partnership with OpenRouter on Monday, Hugging Face argued that developers don’t always need the most capable AI models, particularly when cheaper alternatives can handle their tasks adequately. It noted that open-weight models cost roughly four times less on average than proprietary alternatives.
“The best open-weight models still trail the best proprietary ones on the hardest benchmarks,” the company writes. “For a lot of workloads, that trade-off is worth it.”
For Hugging Face and OpenRouter, the growing appetite for open-weight models creates an opportunity to capture more of that demand, with developers able to choose between competing providers based on cost and performance.
The post “Collaboration over competition”: Hugging Face hands model inference traffic to OpenRouter appeared first on The New Stack.
After 10 Heads in a Row, Small LLMs Bet Up to 82% on an 11th
Telling eight base and instruction-tuned open models that the coin is fair and the flips are independent trims their streak bias by only a few points.
The post After 10 Heads in a Row, Small LLMs Bet Up to 82% on an 11th appeared first on Towards Data Science.
Local LLMs Handle Textbook RAG but Fail on New Research Papers
Five setups, one blind grading pack: textbook scores ran 12 to 20 of 20, but a paper published this year dropped them to 0 to 9 of 15.
The post Local LLMs Handle Textbook RAG but Fail on New Research Papers appeared first on Towards Data Science.
A Practitioner's Guide to 6 Agentic GraphRAG Patterns
How autonomous agents turn static knowledge graphs into living Context Graphs that remember decisions, user intent, and operational history
The post A Practitioner's Guide to 6 Agentic GraphRAG Patterns appeared first on Towards Data Science.
RAG Retrieval Lost 40 Points When Distracting Passages Grew to 2.68M
A reproducible test of BM25, embeddings, and parent documents shows why author-written evals overrate search, and why answer position in context matters.
The post RAG Retrieval Lost 40 Points When Distracting Passages Grew to 2.68M appeared first on Towards Data Science.
“Are You Sure?” Flipped Qwen2.5-1.5B’s Right Answer 2 Times in 3
Three small open models, 150 MMLU questions each, five pushback styles: “That’s wrong” did more damage, and naming a wrong option was close to fatal.
The post “Are You Sure?” Flipped Qwen2.5-1.5B’s Right Answer 2 Times in 3 appeared first on Towards Data Science.
How to Use Apple's fm CLI to Run On-Device LLMs From Python
A Sate Padang vision test and a Malaysia capital question show why the free, private model needs grounding and validation before it leaves prototyping.
The post How to Use Apple's fm CLI to Run On-Device LLMs From Python appeared first on Towards Data Science.
How to Validate LLM Output in a DuckDB and dbt Pipeline
A Gemini Flash-Lite step pulls skills, seniority, and Nigeria eligibility from 18 RemoteOK postings, with Python checks and dbt tests guarding every answer.
The post How to Validate LLM Output in a DuckDB and dbt Pipeline appeared first on Towards Data Science.
Ask AI to Refine Your Ideas, Not Invent Them
Studies of short stories, metaphors, and 486 participants point one way, an 800-person experiment points the other, and the author weighs both.
The post Ask AI to Refine Your Ideas, Not Invent Them appeared first on Towards Data Science.
Change One Monty Hall Rule and Five LLMs Still Say Switch
Even with step-by-step reasoning, the models landed near 33% accuracy, and one quoted the host's rule correctly before ignoring it.
The post Change One Monty Hall Rule and Five LLMs Still Say Switch appeared first on Towards Data Science.
Why a Tiny GPT Can Know Two Facts and Still Not Connect Them
A tiny GPT memorized every fact I gave it, then couldn’t answer a single question that needed two of them. I tested the one-line fix from a recent paper, and it only half worked.
The post Why a Tiny GPT Can Know Two Facts and Still Not Connect Them appeared first on Towards Data Science.
Reflection's Beam Is the New Open-Weight Model Everyone Is Talking About
A 501B model that only activates 23B parameters per token sounds like a bargain, until you look at what it takes to host.
The post Reflection's Beam Is the New Open-Weight Model Everyone Is Talking About appeared first on Towards Data Science.
The Enterprise Context Layer: A Practitioner's Guide to 6 Advanced Architectural Patterns
Beyond RAG: How modern architectures engineer precise, cost-efficient context for enterprise AI agents.
The post The Enterprise Context Layer: A Practitioner's Guide to 6 Advanced Architectural Patterns appeared first on Towards Data Science.