hn.today

Amazon saves millions by replacing Sonnet 4.6 with Strands Decider

strandsagents.com685 points242 comments
Screenshot of Amazon saves millions by replacing Sonnet 4.6 with Strands Decider

Amazon engineers replaced Claude Sonnet 4.6 with Strands Decider E4B to classify tickets in a large internal system, where each ticket must be assigned to one of 20 categories. They argue that this task did not require a text-generating language model: it could be framed as choosing among fixed options, with the ticket as input and the category descriptions as choices. The team tested an initial 2-billion-parameter Decider, then moved to the E4B Gemma 4 build after it performed better. On a separate ticket set, E4B also outperformed the production Sonnet system after the engineers tuned the confidence threshold for applying labels.

In production comparisons, Decider cut average processing time from 4,215 to 897 milliseconds and reduced tokens per ticket from 6,724 to 2,010, a 70% drop. The team shortened the descriptions of all 20 labels into concise criteria and added a “none” choice, while Decider’s output was just a label rather than generated JSON. They ran the model on SageMaker instances and used an AppConfig setting to control a cautious rollout: Sonnet alone, both models in parallel for comparison, or Decider alone. The switch to Decider is projected to save millions of dollars annually, with model costs reported as 98% lower. The setup uses standard AWS services, including SQS, Lambda, SageMaker, AppConfig, CloudWatch, and CDK.

Read on strandsagents.com242 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.