| [ Web Proxy ] |
| Viewing: https://amplitude.com/blog/open-weights-experimentation | [Back] [Original] |
On July 24, Microsoft published an open letter, "Open Weights and American AI Leadership," making a case that open-weight models are critical infrastructure for competition, security, and the diffusion of AI into everyday business. The original 25 signatories were a specific kind of company: Nvidia, Microsoft, Meta, Dell, IBM, Palantir, Mistral, Hugging Face. They obviously have a stake in open models as a category. In the first week, that list grew past 200 signatories, adding OpenAI, Google, Amazon, Uber, Databricks, GitHub, and Fireworks AI (our own infrastructure vendor), among many others.
Amplitude is on that list too. Our CEO Spenser Skates posted his email to Microsoft requesting to join. In the note, he mentioned our open-source SDKs across every major stack and described Amplitude as heavy users of open-weight AI. He made a note that Kimi and GLM are already core to how we operate, both internally and in customer-facing AI features.
Theres an industry shift happening, and were happy to be a part of it. Companies that build AI products are willing to put their name on open weights as infrastructure worth defending. We want to go one step further. In this post, Ill outline exactly how Amplitude is using open-weight models to improve our Agents. If your team is considering open-weight models, use our example as inspiration to run your own tests and make your products even better.
Open-weight models have been improving rapidly over the last year. As of today, theyve significantly closed the performance gap with frontier models. The Stanford HAI AI Index reports the human-preference gap between open and closed models on Chatbot Arena falling from 8% to 1.7% in just the last year. The latest proof point is Kimi K3, the 2.8-trillion-parameter open model Moonshot released in late July, which the company says performs competitively with Anthropic's Fable 5.
These open-weight models aren't an automatic improvement on OpenAI or Anthropics models. Instead, they're an opportunity for teams to make specific tradeoffs. The New Stack spells out the exact compromise teams make when they choose Kimi K3 over the closed frontier models: "same results, one-third the cost, four times slower." Cost has been the headline when it comes to discussing open-weight models, but theres a more important reason that will ultimately matter more: autonomy.
An open-weight model can be downloaded, installed on company infrastructure, and fine-tuned against a specific product surface before it ever serves a real request. The data stays contained inside that infrastructure instead of leaving for a third party on every call. In short, its customizable and ownable. As teams strategize to manage increasing token prices, the control offered by open-weight models is becoming an attractive choice.
Before open-weight models were a possibility, the AI system behind Global Agent, Amplitude's in-product agent experience, was running on Sonnet 4.6 across its full set of subagents: Global Chat, Chart Agent, Data Assistant, Session Replay SQL, Preference Extractor, and a handful of smaller ones. Like all frontier models, Sonnet is built to be generally good at everything rather than at specifically what we need Global Chat or Chart Agent to do. Since Sonnet's weights aren't open, we could prompt around failure patterns, but couldn't fine-tune the model itself against them. It works well, but theres still room for improvement.
The goal of our test was to find out whether an open-weight model could maintain Global Agent's existing customer experience (using Amplitude's own evaluation criteria) at a meaningfully lower cost. We wanted a real deployment decision rather than just a hypothetical research readout, so we did all we could to detail specifics: which model, at what cost, for which customers, etc.
Where to run it. We considered two primary options here:
Since our model is already in a hosted catalog sitting behind a production agent, Fireworks won. Inside Fireworks, dedicated GPU instances matched serverless exactly on Amplitude's own quality suite, delivered the most consistent latency the team measured, and came with a fixed hourly cost that scales with volume instead of token count. That combination made dedicated the safe default.
Which model to run. The team started by mapping three open-weight options against the tiers of Claude's lineup to make comparisons easier.
Amplitude picked Kimi K2.7 for Global Agent's head agent, not because it scored highest on paper, but because it was the closest fit.
Picking the model class was step one. Making Kimi K2.7 actually behave like Sonnet in production was the longer project. That work split into two separate problems, latency and reliability, which Ill discuss in detail below.
Test structure. Our model tests ran on an 186-case internal evaluation suite built to mirror the real shape of Amplitude traffic: conversational capability questions, tool routing and dispatch, chart generation, and the date/arithmetic handling. A standalone testing environment, isolated from the production path and graded on outcomes rather than intermediate steps, let the team validate the new architecture before any of it touched live routing.
Latency remediation. Our data showed subagents rarely trigger but dominate wall-clock time when they do. Our Data Science (299 seconds) and Chart Deep Research (217 seconds) subagent calls took considerably longer than the agents handling the bulk of traffic.
Average AI response latency by agent, last 30 days of production traffic.
Routing chart work through a single-agent compiler flow instead of a full subagent dispatch matched production correctness at roughly 15% lower mean latency. Two shipped changes did most of the rest:
Reliability remediation. The team traced every failed case on our internal eval suite back to a specific, recurring pattern. Almost none of these issues showed up when Sonnet ran the same harness:
About 80% of failed cases traced back to the head agent rather than the subagents, which is part of why the fixes went there first. None of the fixes were a better-worded instruction. Instead, we built remediations to specifically address the common failures.
We used a loop breaker to cut off tool access after repeated bad calls and forced an honest answer instead of a dead turn. We added a dedicated compute tool and date table so numbers and dates never pass through the model's own arithmetic. Clearer grounding rules now require a docs or tool check before any capability claim. A sanitizer strips leaked reasoning tags and guarantees a real final message even when generation fails partway through. And a context clamp ties history compression to the model's actual context window, which turned out to be the root cause behind nearly every "prompt too long" failure.
Without any adjustments, Kimi K2.7 initially scored 64 on our 186-case suite, a real gap behind Sonnet 4.6. After our remediation work, Kimi scored 73.7, edging out Sonnet's 72.7 on the identical test cases.
Kimi K2.7's score on Amplitude's internal eval, before and after the remediation work, against Sonnet 4.6 as the production reference
The fixes closed the performance gap without impacting cost. Running the same workload on Kimi K2.7 still comes out to roughly a third of Sonnet's price. The real gap may even be wider, since Anthropic bills cache writes and Fireworks doesn't.
Per-1M-token pricing on Fireworks vs. Anthropic.
Global Chat, the head agent, is where that cost multiplier matters most. It accounts for roughly 44% of all Global Agent spend on its own, which is why the model swap and the tuning work concentrated there first.
Share of total Global Agent spend by subagent, most recent measurement period.
Kimi K2.7 wasnt superior out of the box. It was a Sonnet-class open-weight model that needed Amplitude-specific tuning and correcting to account for specific failures. After our adjustments, Kimi K2.7 produces results comparable to Sonnet on the metrics that matter for Amplitude, at a third of the price.
The model conversation isnt over. Kimi's own launch benchmarks are vendor-reported, and independent coverage is thin. Some third-party trackers still give Sonnet the edge on tool-routing reliability. Theres a lot of subjectivity in deciding what's right for an individual product or even specific user groups.
Our plan isn't to move every Amplitude customer onto an open-weight model at once. Amplitude is testing across customer segments to see whether one model should serve everyone, or whether some customers end up on an open-weight model while others stay on Sonnet. Perhaps live production traffic will help us settle the questions our eval suite can't answer.
Amplitude could only run this evaluation because we already collect product usage data and build evals to determine whether a model swap holds up for customers. Agent Analytics is designed to answer exactly this kind of question for any team running AI agents of their own: how the agent performs, what it costs per session, and where the real tradeoffs are between the two.
The latency chart, the spend-by-subagent breakdown, the failure taxonomy, and the before-and-after eval scores are all Agent Analytics views of our own Global Agent. Our instrumentation is what turned a model swap into a deployment decision. Benchmarks told us Kimi K2.7 was Sonnet-class on paper. Global Chat alone is 44% of Global Agent spend, so the head agent is where a 3x cost gap pays off first. It showed Data Science calls running 299 seconds, so the latency work had a target. And it traced the 9-point eval gap to five recurring failure patterns, so every remediation shipped against a named failure instead of a hunch, and the re-run scored 73.7 against Sonnet's 72.7.
If you're weighing an open-weight swap for your own agent, the sequence is the same one we ran: baseline cost per session and failure patterns on production traffic, test the candidate model against your own evals, fix the specific gaps, then let a slice of live traffic settle what the eval suite can't. We built Agent Analytics for ourselves last year when we found a measurement gap between traditional product analytics and observability tools for our own agent use cases. Learn more here.
Amplitude Agents help you understand your users more easily than ever.
Jacob is a product manager at Amplitude, focused on the core analytics product. He began his career at startups in the ed-tech and recruiting space, where he learned to build products informed by data. Outside of work, youll find him listening to podcasts or getting lost in a sci-fi or fantasy novel.
More from JacobAug 18, 2026
11 min read
Aug 17, 2026
9 min read
Aug 17, 2026
9 min read
Aug 13, 2026
6 min read
| Web Proxy Viewer | New URL | Original Page |