<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Danlab blogs]]></title><description><![CDATA[Danlab blogs]]></description><link>https://danlab.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:42:16 GMT</lastBuildDate><atom:link href="https://danlab.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[We fine-tuned a 0.4B model to decide when to call a tool. It went from 30% to 96%.]]></title><description><![CDATA[Most agent frameworks bolt function calling onto a general chat model and hope for the best. We wanted to know what a small model can do when you train it…]]></description><link>https://danlab.hashnode.dev/we-fine-tuned-a-0-4b-model-to-decide-when-to-call-a-tool-it-went-from-30-to-96</link><guid isPermaLink="true">https://danlab.hashnode.dev/we-fine-tuned-a-0-4b-model-to-decide-when-to-call-a-tool-it-went-from-30-to-96</guid><dc:creator><![CDATA[Dan Lab]]></dc:creator><pubDate>Thu, 19 Nov 2026 21:29:45 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6aff6148bfa6af59fb6e739d/a76bc3f4-996b-4edd-863a-01023fafde33.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Most agent frameworks bolt function calling onto a general chat model and hope for the best. We wanted to know what a small model can do when you train it for exactly one decision: should I call a function right now, and if so, which one?</p>
<p>So we fine-tuned Laya, our 0.4B model, on glaive-function-calling-v2 and published the weights: laya-cua on Hugging Face (the function-calling weights live under function_calling).</p>
<p>One thing to be clear about: this is a routing model. It decides (1) whether to call a function now and (2) which of the listed functions. It does not write function arguments, and it is not a computer-use model. For computer-use action types, see the same repo: <a href="https://huggingface.co/sodan/laya-cua">https://huggingface.co/sodan/laya-cua</a></p>
<h2>The numbers</h2>
<p>Test split, n=2574:</p>
<ul>
<li>Call/no-call accuracy: 0.3042 for base Laya, 0.9573 after fine-tuning. For context, an "always say no-call" heuristic scores 0.648 on the same split, so the base model was worse than a trivial heuristic here.</li>
<li>Tool choice accuracy (n=906): 0.9989 base, 1.0000 fine-tuned. This metric is already near the ceiling because most prompts list only one or two functions (a random picker scores 0.8786), so we do not read much into it.</li>
</ul>
<p>Dev split tells the same story: call/no-call 0.2978 base vs 0.9519 fine-tuned.</p>
<p>Training setup: split by conversation, 4500 train / 1454 dev / 2574 test, 2 epochs, a free Colab T4, one run, one seed.</p>
<h2>Caveats we care about</h2>
<p>The gain is the call/no-call decision, not argument writing. It is a single run with no confidence intervals. An earlier run on laya 0.4.37 gave 0.9545 on the same test split, so the result sits in a stable range, but treat it as one data point, not a law.</p>
<h2>Why it matters to us</h2>
<p>Agents that use computers make dozens of routing decisions per task. A 0.4B router that gets the call/no-call decision right 96% of the time is cheap enough to run on everything, and it keeps the bigger models from being asked questions a tiny model can answer.</p>
<p>Model weights: <a href="https://huggingface.co/sodan/laya-cua/tree/main/function_calling">https://huggingface.co/sodan/laya-cua/tree/main/function_calling</a></p>
<p>Training script and full results: <a href="https://github.com/somdipto/laya-cua/tree/main/function_calling">https://github.com/somdipto/laya-cua/tree/main/function_calling</a></p>
]]></content:encoded></item><item><title><![CDATA[We're Dan Lab. We build agents that use computers so you don't have to.]]></title><description><![CDATA[I'm Somdipto. I run Dan Lab, a three-person AI lab in Bengaluru, and this is the first post on Danlab blogs. The short version of what we do: we build…]]></description><link>https://danlab.hashnode.dev/we-re-dan-lab-we-build-agents-that-use-computers-so-you-don-t-have-to</link><guid isPermaLink="true">https://danlab.hashnode.dev/we-re-dan-lab-we-build-agents-that-use-computers-so-you-don-t-have-to</guid><category><![CDATA[Artificial Intelligence]]></category><category><![CDATA[ai agents]]></category><category><![CDATA[automation]]></category><dc:creator><![CDATA[Dan Lab]]></dc:creator><pubDate>Thu, 19 Nov 2026 20:53:58 GMT</pubDate><content:encoded><![CDATA[<p>I'm Somdipto. I run Dan Lab, a three-person AI lab in Bengaluru, and this is the first post on Danlab blogs.</p>
<p>The short version of what we do: we build agents that use computers. Not chatbots that tell you how to do the thing. Agents that open the app, click the button, fill the form and finish the thing.</p>
<p>The main thing we build is Dani Desktop. It looks like a messaging app, except every contact in the sidebar is an AI bot with its own personality, its own model and its own computer. You talk to them like contacts, watch them work, and approve what matters. Every local action asks first.</p>
<p>A few true things about it:</p>
<ul>
<li>Every bot can get its own computer: a cloud Linux desktop, an isolated local VM, or your own machine, only after you explicitly opt in</li>
<li>One harness, your choice of model per bot. No silent switching</li>
<li>Local first. Transcripts, keys and events live on your machine, not in our cloud</li>
<li>500+ apps connected once through a built-in marketplace: Gmail, Slack, GitHub, Notion, Linear and more, plus your own MCP servers</li>
<li>You can pull the whole crew into one group chat with a shared folder and a shared brief</li>
<li>Free to download for Mac, Windows and Linux</li>
</ul>
<p>The code is public under Apache-2.0 at <a href="https://github.com/Dan-Labs-Agi/dani-desktop">github.com/Dan-Labs-Agi/dani-desktop</a>. The README has one-tap downloads. If you break it, I want to know exactly how.</p>
<p>The weirdest part of Dan Lab is how we run it. Our research, code, marketing and ops are handled by teams of agents that we supervise, a lot of it inside our own product. We're a three-person company that operates like a much bigger one. Some days that's genuinely better. Some days it's chaos. I'll write honestly about both.</p>
<p>We also make Manzanilla, an on-device translation app. Your conversations stay on your phone instead of going to someone's server. More on that soon.</p>
<p>What you'll get here: build logs for Dani Desktop, how our agent teams are set up, what we learn training small models for tool use, and straight answers about what works and what doesn't. No hype. If something is broken, I'll say it's broken.</p>
<p>Try Dani Desktop and tell me what it got wrong. That's the most useful thing you can send me.</p>
]]></content:encoded></item></channel></rss>