<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Asankhaya Sharma</title>
    <description>The latest articles on DEV Community by Asankhaya Sharma (@codelion86).</description>
    <link>https://dev.to/codelion86</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2745210%2F625d5b8c-8651-49f2-8d10-f469c1dd9615.jpeg</url>
      <title>DEV Community: Asankhaya Sharma</title>
      <link>https://dev.to/codelion86</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/codelion86"/>
    <language>en</language>
    <item>
      <title>adaptive-classifier: Cut your LLM costs with smart query routing (32.4% cost savings demonstrated)</title>
      <dc:creator>Asankhaya Sharma</dc:creator>
      <pubDate>Wed, 22 Jan 2025 03:30:08 +0000</pubDate>
      <link>https://dev.to/codelion86/adaptive-classifier-cut-your-llm-costs-with-smart-query-routing-324-cost-savings-demonstrated-1a51</link>
      <guid>https://dev.to/codelion86/adaptive-classifier-cut-your-llm-costs-with-smart-query-routing-324-cost-savings-demonstrated-1a51</guid>
      <description>&lt;p&gt;Hey Folks! I'm excited to share a new open-source library that can help optimize your LLM deployment costs. The adaptive-classifier library learns to route queries between your models based on complexity, continuously improving through real-world usage.&lt;/p&gt;

&lt;p&gt;We tested it on the arena-hard-auto dataset, routing between a high-cost and low-cost model (2x cost difference). The results were impressive:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;32.4% cost savings with adaptation enabled&lt;/li&gt;
&lt;li&gt;Same overall success rate (22%) as baseline&lt;/li&gt;
&lt;li&gt;System automatically learned from 110 new examples during evaluation&lt;/li&gt;
&lt;li&gt;Successfully routed 80.4% of queries to the cheaper model&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Perfect for setups where you're running multiple LLama models (like Llama-3.1-70B alongside Llama-3.1-8B) and want to optimize costs without sacrificing capability. The library integrates easily with any transformer-based models and includes built-in state persistence.&lt;/p&gt;

&lt;p&gt;Check out the repo for implementation details and benchmarks. Would love to hear your experiences if you try it out!&lt;/p&gt;

&lt;p&gt;Repo - &lt;a href="https://github.com/codelion/adaptive-classifier" rel="noopener noreferrer"&gt;https://github.com/codelion/adaptive-classifier&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>machinelearning</category>
      <category>python</category>
    </item>
  </channel>
</rss>
