<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kumar Vivek on Medium]]></title>
        <description><![CDATA[Stories by Kumar Vivek on Medium]]></description>
        <link>https://medium.com/@kumar-vivek?source=rss-b4b8bd9d717b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0_ZJwsUx2AyIvj_2V0hc_A.jpeg</url>
            <title>Stories by Kumar Vivek on Medium</title>
            <link>https://medium.com/@kumar-vivek?source=rss-b4b8bd9d717b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 13:03:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kumar-vivek/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Evaluating a decision model: Nimble 9B and its base model Qwen3.5–9B]]></title>
            <link>https://blog.devgenius.io/evaluating-a-decision-model-nimble-9b-and-its-base-model-qwen3-5-9b-a845c2bbd7f0?source=rss-b4b8bd9d717b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a845c2bbd7f0</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[nimble]]></category>
            <category><![CDATA[qwen]]></category>
            <category><![CDATA[ollama]]></category>
            <dc:creator><![CDATA[Kumar Vivek]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 18:55:34 GMT</pubDate>
            <atom:updated>2026-10-09T09:59:50.789Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hZJsv_9XdLAtWwwJ9wdQoA.png" /><figcaption>Equal accuracy, equal speed, and a difference in how much can be routed automatically</figcaption></figure><p>In September 2026 <a href="https://typesafe.ai/">TypeSafe AI</a> released <a href="https://typesafe.ai/blog/introducing-system-one-models-and-jev">Jev</a> and called it a <em>decision model</em>, or “System One” model. A decision model does not write text. You give it some state, as text or JSON, and a set of typed questions. It returns typed answers: one option out of several, a yes or no, or a score. Every answer comes with probabilities. There is no explanation, and the output cannot be malformed.</p><p>In this article I compare a decision model called Nimble 9B with Qwen3.5–9B, the model it was trained from. Both ran locally on a MacBook Pro with an M1 Pro chip.</p><h3>In short</h3><p>The task: read a consumer complaint and pick one of nine teams that should handle it.</p><ul><li>Accuracy is the same within the margin of error. Nimble routed 77.1% of the complaints correctly and its base model 76.3%. The vendor reports a gain from 66% to 90% on its own test set.</li><li>Speed is about the same. Nimble needs about 2 seconds per complaint. So does the base model when it answers without reasoning, and Nimble is slightly slower.</li><li>The vendors publish under 100 ms per decision. I got near that only when I sent an identical request a second time. A short new request took about 1 second.</li><li>With reasoning on, the base model reached 79.6%, but the 900 complaints took more than 20 hours, against about 35 minutes without reasoning.</li><li>The two models differ in their probabilities. If automatically routed complaints must be 95% correct, Nimble can take 43% of the volume and its base model 16%. Nimble stays ahead when I resample the data, though the size of its lead varies.</li><li>I would use a decision model as the first gate in a flow that either automates or escalates. I would not swap it in for a call that already returns one word under a JSON schema.</li></ul><h3>Why this test</h3><p>Two weeks after Jev, <a href="https://ollama.com/blog/ollama-now-supports-jev-style-decision-models">Ollama 0.35 added a local endpoint</a> for this kind of model, <a href="https://docs.ollama.com/api/systemone">/v1/systemone</a>, together with open models that use the same API. One of them is <a href="https://ollama.com/library/nimble">Nimble 9B</a> from <a href="https://bespokelabs.ai/">Bespoke Labs</a>, released under Apache 2.0. That made it possible to evaluate the idea locally, on a task of my own choosing.</p><p>The published numbers are high. The <a href="https://ollama.com/library/nimble">Nimble model page</a> gives 75.7% mean accuracy across 13 public decision datasets, and says the training lifts the base model from 66% to 90% correct on Bespoke Labs’ own test set. The Ollama announcement gives 91 ms per decision on a MacBook Pro M5 Max. TypeSafe says Jev is “193.6x faster, 444.6x cheaper” than hosted frontier models in its own workflow evaluations, and calls that “on the higher end of real world gains”.</p><p>None of these numbers comes from a routing task, and routing is the first thing I would use such a model for. So I tested routing, where the model reads a description of a problem and decides which team should handle it.</p><p>I had three questions.</p><ol><li>Is a decision model more accurate than a general model of the same size?</li><li>Is it faster, and compared to what?</li><li>Can I use its probabilities for a rule like “route automatically when confident, otherwise hand to a person”?</li></ol><p>Nimble’s model page says it is fine-tuned from <a href="https://ollama.com/library/qwen3.5">Qwen3.5–9B</a>. That makes a fair comparison possible, because both models have the same architecture and the same starting weights. The main difference is the decision training. So I compare Nimble 9B with Qwen3.5–9B. Qwen runs once with reasoning off, where it answers directly, and once with reasoning on, where it first writes out its thinking and then answers.</p><h3>The task and the data</h3><p>The complaints come from the <a href="https://www.consumerfinance.gov/data-research/consumer-complaints/">Consumer Complaint Database</a> of the US Consumer Financial Protection Bureau (CFPB). Consumers file complaints about financial products there. If the consumer agrees, the text is published with personal details replaced by XXXX. The data is in the public domain. I read it through a copy on Hugging Face, <a href="https://huggingface.co/datasets/BEE-spoke-data/consumer-finance-complaints">BEE-spoke-data/consumer-finance-complaints</a>, which has 1.69 million complaints with text.</p><p>Every complaint has a product, which the consumer picks from a fixed list when filing. I use that as the label, because the product decides which team at a bank would receive the complaint. So this is a routing decision that a person made on real text. That is why I chose this dataset. It also means the label is the consumer’s own choice, and some complaints fit two products equally well. This becomes visible in the results.</p><p>CFPB uses twelve product names for nine areas. I mapped them to nine short team names and wrote one line of description for each. The descriptions are my own wording, and both models get exactly the same ones.</p><ul><li><strong>Credit reporting:</strong> Credit reports, credit scores, credit bureaus, inquiries, credit repair</li><li><strong>Debt collection:</strong> A collector or collection agency pursuing a debt</li><li><strong>Mortgage:</strong> Home loans, mortgage servicing, escrow, foreclosure</li><li><strong>Credit card:</strong> Credit cards and prepaid cards: charges, fees, disputes, rewards</li><li><strong>Bank account:</strong> Checking or savings accounts, deposits, withdrawals, overdrafts</li><li><strong>Student loan:</strong> Federal or private student loans and their servicing</li><li><strong>Vehicle loan:</strong> Car or other vehicle loans and leases</li><li><strong>Personal loan:</strong> Payday, title, instalment or personal loans</li><li><strong>Money transfer:</strong> Money transfers, payment apps, virtual currency</li></ul><p>The raw data is very uneven. Most of the complaints are about credit reporting, and a random sample would mostly measure how well a model recognises those. So I took 100 complaints per team, 900 in total, from 2018 onwards and between 200 and 2,000 characters long. The sample is drawn with fixed random seeds and saved to a file, so every model sees the same complaints. All accuracy figures below are therefore for an equal mix of teams.</p><h3>How the test was run</h3><p>Everything ran on a MacBook Pro 14-inch (2021) with an Apple M1 Pro (8 CPU cores, 14 GPU cores) and 32 GB of memory, with macOS 27.0.1 and Ollama 0.35.1.</p><pre>ollama pull nimble<br>ollama pull qwen3.5:9b-q8_0</pre><p>The second line needs a comment. The default tag qwen3.5:9b is a 4-bit build (see the <a href="https://ollama.com/library/qwen3.5/tags">list of tags</a>), and nimble is 8-bit. A 4-bit model can be a little less accurate than the 8-bit build of the same weights. If I compared the two default tags, I would not know which difference I was measuring. So I used the 8-bit tag of Qwen. All numbers below are 8-bit against 8-bit.</p><p>Nimble is not a chat model, so ollama run nimble does not work, and you call it with POST /v1/systemone. That endpoint rejects chat models, so Qwen goes through /api/chat and the test needs two code paths. The first request loads the model and takes several seconds. I send a warm-up request first, and it must not be one of the test items, because that item would later be answered from the cache in 0.1 seconds.</p><p>This is the smallest request that works, with three of the nine teams:</p><pre>curl -s http://localhost:11434/v1/systemone \<br>  -H &#39;Content-Type: application/json&#39; -d &#39;{<br>  &quot;model&quot;: &quot;nimble&quot;,<br>  &quot;state&quot;: {&quot;complaint&quot;: &quot;The escrow amount on my mortgage statement went up without notice.&quot;},<br>  &quot;questions&quot;: {<br>    &quot;team&quot;: {<br>      &quot;type&quot;: &quot;choice&quot;,<br>      &quot;instructions&quot;: &quot;Which product team should handle this complaint?&quot;,<br>      &quot;criteria&quot;: {<br>        &quot;Mortgage&quot;: &quot;Home loans, mortgage servicing, escrow, foreclosure&quot;,<br>        &quot;Credit card&quot;: &quot;Credit cards and prepaid cards: charges, fees, disputes, rewards&quot;,<br>        &quot;Bank account&quot;: &quot;Checking or savings accounts, deposits, withdrawals, overdrafts&quot;<br>      }<br>    }<br>  }<br>}&#39;</pre><pre>{<br>    &quot;model&quot;: &quot;nimble&quot;,<br>    &quot;answers&quot;: {<br>        &quot;team&quot;: {<br>            &quot;type&quot;: &quot;choice&quot;,<br>            &quot;choice&quot;: &quot;Mortgage&quot;,<br>            &quot;probabilities&quot;: {<br>                &quot;Mortgage&quot;: 0.9985900450531108,<br>                &quot;Credit card&quot;: 0.00025204474220624415,<br>                &quot;Bank account&quot;: 0.0011579102046829846<br>            },<br>            &quot;confidence&quot;: 0.9896904755809427<br>        }<br>    },<br>    &quot;usage&quot;: {<br>        &quot;input_tokens&quot;: 211,<br>        &quot;output_tokens&quot;: 1<br>    }<br>}</pre><p>The model counts 211 input tokens for a complaint of one sentence, because it also reads the question and the description of every team. This becomes important in the speed section.</p><p>The reply also contains a confidence value, which I do not use. In this article, probability always means the number the model gives for the team it chose. In the example above that is 0.9986 for Mortgage.</p><p>Qwen gets a normal prompt built from the same question, the same nine team names and the same descriptions. A JSON schema limits the answer to the nine team names, so the model cannot return anything else:</p><pre>&quot;format&quot;: {&quot;type&quot;: &quot;object&quot;,<br>           &quot;properties&quot;: {&quot;team&quot;: {&quot;type&quot;: &quot;string&quot;, &quot;enum&quot;: list(TEAMS)}},<br>           &quot;required&quot;: [&quot;team&quot;]},<br>&quot;think&quot;: False,<br>&quot;options&quot;: {&quot;temperature&quot;: 0},</pre><p>think switches Qwen’s reasoning on or off. Here is one complaint asked in all three ways:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mA2V8kRbFSttbZLlIPdZtw.gif" /><figcaption>One complaint, asked three ways on the same machine</figcaption></figure><h3>Accuracy: no measurable difference</h3><p>Nimble got 694 of the 900 complaints right, 77.1%. Qwen with reasoning off got 687 right, 76.3%. The margin of error is about 2.8 points for each, so a difference of 0.8 points is well inside it.</p><p>The vendor reports that training lifts the base model from 66% to 90% on its own test set. On this task the base model already reached 76%, and the training added nothing I could measure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_YQysDdtwG8tXHN7azwj-Q.png" /><figcaption>Routing accuracy on 900 complaints. The whiskers show the 95% margin of each bar</figcaption></figure><p>A paired comparison says the same. 53 complaints were right only with Nimble and 46 only with Qwen, and an exact <a href="https://en.wikipedia.org/wiki/McNemar%27s_test">McNemar test</a> on those gives p = 0.55. The green bar, and the green dots in the next chart, are Qwen with reasoning on. I cover that further down.</p><h4>By team</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gdVR-KImLh2dE7F3iPej3Q.png" /><figcaption>Accuracy per team, 100 complaints each</figcaption></figure><p>Neither model leads everywhere. The models disagree most on personal loans, money transfers, credit reporting and debt collection. Nimble is clearly better on the first three, and Qwen is clearly better on debt collection (66 of 100 against 53).</p><p>Nimble’s 97 of 100 on credit reporting has a cost. It answered “Credit reporting” 196 times, although only 100 complaints belong there. Qwen did so 147 times. On an equal mix this habit costs Nimble accuracy on other teams. On the real mix, where most complaints are about credit reporting, it would help.</p><h4>The errors both models share</h4><p>160 complaints were wrong with both models, and in 137 of those both chose the same wrong team. In the most common case, 26 complaints filed under debt collection went to Credit reporting. Another 13 filed under money transfer went to Bank account.</p><p>When I read these complaints, the reason was clear. Here are two that were filed under debt collection:</p><blockquote>“I was looking at my credit report and noticed my credit score drop a lot and seen that I had two collections on my report that I didn’t know about or authorized. […] So I proceeded to contact XXXX and XXXX and the police department and also all three credit bureaus.”</blockquote><blockquote>“Any debt that I have had with XXXX XXXX XXXX and XXXX XXXX XXXX has been paid. I submitted proof of payment and this is still showing on my report.”</blockquote><p>Both are about a collection entry on a credit report. A person could file them under either product, and either team could reasonably handle them.</p><p>About two-thirds of each model’s errors are of this kind, where both models chose the same wrong team. I see these as a problem of the categories more than of the models. With real intake data I would not expect accuracy close to 100%, and I would review the categories before tuning the model.</p><h3>Speed: about 2 seconds for both</h3><p>The median time per complaint was 2.25 seconds for Nimble and 2.07 seconds for Qwen with reasoning off. The slowest 5% took more than 3.2 seconds for Nimble and 3.0 for Qwen. The full run took 35 minutes for Nimble and 33 for Qwen. One request at a time, that is about 1,500 complaints per hour for Nimble and about 1,650 for Qwen.</p><p>So the decision model is not faster than its base model. It is slightly slower.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qj_fCx2Mc7GqNOnd-ueuxw.png" /><figcaption>Both models read about 240 tokens per second. Nimble’s requests are about 170 tokens longer</figcaption></figure><p>The chart shows why. For both models the time grows in a straight line with the number of tokens the model has to read. Both read at about 240 tokens per second, which makes sense for two models of the same architecture, size and precision.</p><p>The two models differ in two ways, and the differences cancel each other out.</p><p>Qwen has to write its answer, about ten tokens of JSON. That gives it a fixed cost of 0.69 seconds per request. Nimble writes nothing, and its fixed cost is 0.12 seconds.</p><p>But Nimble’s request is longer. For the same complaint and the same nine descriptions, Nimble counts a median of 502 input tokens and Qwen 331. The extra 170 tokens are probably overhead of the typed request format. At 240 tokens per second they cost about 0.7 seconds, which uses up the saving.</p><p>For a design this means that latency depends on how much the model reads. The number of options and the length of their descriptions are a cost I control, and nine one-line descriptions already make up most of a short request. It also means that once reasoning is off, a general model writes so little that a decision model has almost nothing left to save.</p><h4>100 ms only for an identical request</h4><p>The published figure for Nimble is 91 ms per decision, measured in a game demo on a MacBook Pro M5 Max. My median is 2.25 seconds, about 25 times more. A faster chip, a shorter input and caching could each explain part of that. I could test two of the three.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sa1JA0YbvrlPG7UQZKb4XA.png" /><figcaption>Nimble 9B: only an identical request comes back in 0.1 seconds. A short new request takes about 1 second</figcaption></figure><p>For the short input I sent only the first 100 characters of a complaint, with three teams to choose from. That is 228 input tokens, close to the smallest request above. It took 1.06 seconds, which is what the straight line in the speed chart predicts. A short input alone still takes more than ten times the published figure.</p><p>An identical request is different. Sent a second time, it comes back in 0.10 seconds, which is in the range of the published figure.</p><p>Any change costs the full time again. I added one sentence at the end of the complaint, then one word at the start, and both took about 2.55 seconds, the same as a new complaint. A different question about the same complaint took 1.82 seconds, and it is faster only because that request is shorter. The cache works on whole requests only.</p><p>Qwen’s identical request takes 0.64 seconds, because it still has to write the answer token by token. On a cache hit the decision model is therefore six times faster. It is the only case where it made a difference that Nimble writes no text.</p><p>The sample happens to contain an example. One complaint was filed twice with the CFPB and appears twice in the 900. Nimble answered the second copy in 0.15 seconds. It is the single dot at the bottom of the first chart in this section.</p><p>So on an M1 Pro I got 100 ms only for inputs that repeat exactly, such as polling an unchanged state, retries, or a game loop where nothing has moved. The published figure is from an M5 Max, which I could not test.</p><p>For new inputs it helps to ask everything in one request. Three questions about a new complaint took 3.35 seconds in one request, against an estimated 6.2 seconds asked one by one. The request counts 1,870 tokens, but the time is far below what the line predicts for that many, which suggests the complaint is read only once per request.</p><h3>Reasoning on: 3 points more accurate, 38 times slower</h3><p>Qwen3.5 is a reasoning model. With think enabled it writes out its reasoning before it answers. I ran that mode on all 900 complaints as well. It got 716 right, 79.6%.</p><p>Reasoning made the model about 3 points more accurate. It got 29 more complaints right than the same model without reasoning, and 22 more than Nimble. Unlike the gap between Nimble and its base model, this one holds up in a paired test (p = 0.001 against reasoning off, p = 0.007 against Nimble).</p><p>It also took much longer. The run needed 20 hours and 35 minutes. That is 38 times as long as the same model with reasoning off, and 35 times as long as Nimble.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LhT6reHCwhFPK3O8TSeqtg.png" /><figcaption>Reasoning on took 35 times as long as Nimble 9B</figcaption></figure><p>I was surprised by the size of that factor, so I looked at where the time goes. A model reads its input in one pass, here at about 240 tokens per second. It writes one token at a time, and every token needs a full pass through the model. That is about 18 tokens per second. Without reasoning, Qwen writes about 10 tokens per complaint. With reasoning the median was 862, with no limit set on the length. Over the whole run the model wrote 1.3 million tokens, against 9,300 without reasoning. Faster hardware raises both speeds, but the reasoning model still has to write that much more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TaSD4M5c96SswAAQIT1jAA.png" /><figcaption>Time per complaint on a logarithmic scale. Hollow dots are wrong answers</figcaption></figure><p>Each dot in this chart is one complaint, and a hollow dot is a wrong answer. Reasoning time is hard to predict. The fastest complaint took 29 seconds and the slowest 9 minutes 51 seconds. 330 of the 900 took longer than a minute, and 108 took longer than three. The two single-pass models stay between 1.4 and about 4 seconds, apart from the one cache hit.</p><p>The longest runs were more often wrong. The median was 45 seconds when the reasoning model was right and 89 seconds when it was wrong. For the slowest complaint of all the model wrote 10,232 tokens and still ended on the wrong team. I read long reasoning as a sign that the complaint is unclear.</p><p>Reasoning also does not fix the overlapping categories. Of the 184 complaints the reasoning model got wrong, 144 were also wrong with both other models. The gain comes from three teams: personal loans (63 of 100 against 49), money transfers (75 against 61) and credit reporting (99 against 88). On debt collection it got worse (56 against 66).</p><p>This is the comparison in which a decision model is much faster. Against a model that reasons first, Nimble needs 35 times less time and gives up about 2.5 points of accuracy. The base model with reasoning off gets the same speed-up, so the speed comes from skipping the reasoning. A decision model is one way to do that, and switching reasoning off is the other.</p><h3>Probabilities: where the decision model is better</h3><p>Up to here the decision model has only matched its base model. It does better when I use the probability as well as the answer. If automatically routed complaints must be 95% correct, Nimble can take 43% of the volume without a person. Its base model can take 16%.</p><p>This matters for a common design, where the model handles the cases it is sure about and sends the rest to a person. For that design I need to know how much of the work the model can take over at the accuracy I need. To find out, I sort all answers by the model’s probability, most confident first, and go down the list. For each required accuracy I report the largest share that still reaches it.</p><p>Nimble returns a probability for each of the nine teams. Qwen does not, so I built one. I ran Qwen a third time on all 900 complaints, again with reasoning off. In this run every team has a letter from A to I, and Qwen answers with one letter. I asked Ollama for the 20 most likely tokens at that position, took the probabilities of the nine letters among them, and scaled them to add up to 1. Accuracy in this run was 75.6%, within the margin of the first run. The orange line in the chart is this run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tARYTmxnOaMyhLngJMwO7g.png" /><figcaption>Share of complaints that can be routed without a person at a required accuracy. At 95%: Nimble 43%, Qwen 16% (Qwen with letter answers)</figcaption></figure><p>Read the chart along the 95% line. The orange dot is at 16% and the blue dot at 43%.</p><p>The share each model can route at three accuracy targets:</p><pre>Target   Nimble   Qwen<br>------   ------   ----<br>85%      76%      74%<br>90%      63%      58%<br>95%      43%      16%</pre><p>At 85% the two are nearly equal, and at 90% they are still close. They move apart at the strict end. Both models make about the same number of mistakes overall, but Nimble’s highest probabilities are more reliable.</p><p>I checked this result in two ways.</p><p>First, I repeated the comparison 2,000 times on the recorded answers. Each time I drew 900 complaints at random from the original 900, where the same complaint can be drawn more than once. This shows how much the result depends on which complaints happen to be in the sample. Nimble was ahead at the 95% target in 99% of the 2,000 runs. The size of its lead varies, with Nimble’s share between 34% and 56% and Qwen’s between 0% and 45%.</p><p>Second, Qwen’s probability is something I built myself, so I tried three ways of building it. They gave between 16% and 29% at the 95% target. Nimble’s 43% is above all three.</p><p>The green line is the reasoning model, with the probability of the answer it wrote after reasoning. The line is flat. The model gives a probability of 0.99 or more for 883 of its 900 answers, and only 80% of those are right. After reasoning, the probability no longer separates right answers from wrong ones.</p><h4>Use the probability only to rank answers</h4><p>The probabilities rank answers well, but they are not calibrated. Calibrated would mean that answers given with a probability of 0.7 are right about 70% of the time. When Nimble gives a probability between 0.6 and 0.8, it is right in 46% of the cases. Of its 356 answers with a probability of 0.99 or more, 16 were wrong.</p><p>I would therefore use the probability only to rank answers, and set the cut-off on a labelled sample of my own data, at the accuracy I need. I would check it again when the categories or the data change.</p><h3>What this means for a design: the decision model as a first gate</h3><p>Based on these results, I would put a decision model at the front of a flow, where something has to decide what can be handled automatically and what needs more attention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BWhpjI7JGkwHZDZjH2NnuA.png" /><figcaption>The design that follows from the results. Only the first gate was tested here</figcaption></figure><p>This is an escalation ladder. The cheapest step sees every item. Each step acts on the cases it is confident about and passes the rest on. A person sees the fewest.</p><p>The test covers the first gate. Nimble’s probability separated safe answers from unsafe ones well enough to act on, at about two seconds per complaint. The larger model in the diagram was not part of this test.</p><p>A second step with a model of the same size did not pay off. I tried it with the recorded answers. Every complaint where Nimble’s probability is below 0.95 goes to Qwen with reasoning on. That is 299 complaints, a third. On those the reasoning model was right 180 times and Nimble 158 times. On the other 601 each model was right 536 times. Overall accuracy rises from 77.1% to 79.6%, the same as reasoning on everything, and the total time goes from 35 minutes to about 12.5 hours. I would not accept about twelve more hours for about 2.5 points. A second step makes sense only if it is clearly more capable, so a larger model or a person.</p><p>The second step also cannot use its own probability as a gate, because after reasoning it was 0.99 or more for almost every answer. Checking whether two models agree did not help either. When I route only the complaints where Nimble is at 0.95 or more and Qwen gives the same answer, I get 65% of the complaints at 90.3% accuracy. Nimble alone gives 67% at 89.2%. Two models from the same weights make the same mistakes, so their agreement is not an independent check.</p><p>I would keep the decisions people make at the end of the ladder as new labels, because they are the cheapest way to keep checking the cut-offs as the data changes.</p><h3>Limits of this test</h3><ul><li>One dataset from one domain, with one question type and nine options. Nimble also supports yes/no and score questions, which this dataset has no clean labels for.</li><li>An equal mix of teams, which is not the real mix. The results are not reweighted.</li><li>Public data that both models may have seen in training.</li><li>One machine, an M1 Pro and not the M5 Max of the published figure, and one Ollama version. The cache behaviour is an implementation detail that may change.</li><li>Reasoning was tested only with a 9B model and without a token limit. A limit would lower the time factor, and a larger model may gain more from reasoning.</li><li>Qwen’s probabilities are built by me and are not exactly what Nimble does internally.</li><li>The cut-offs were chosen and measured on the same 900 complaints, which makes both models look a little better than they are.</li><li>The team descriptions are my wording. Different wording would change the numbers for both models.</li><li>Cost and hosted models were not part of the test.</li></ul><h3>Verdict</h3><p>On this task, the decision training did not make the model more accurate, and it did not make it faster than its own base model with reasoning off. It did make the model’s highest probabilities more reliable. That is less than the announcement&#39;s promise, but it matters for the gate design above, because more work can be automated at a strict quality level.</p><h4>Where I would use it</h4><p>The clearest case is the first gate in an “automate or escalate” flow, as described above. It is the use where Nimble was ahead of its base model on new input.</p><p>It also fits when there are many questions about the same item. Putting them in one request is natural in this API, and three questions took 3.35 seconds against an estimated 6.2. And it fits input that repeats exactly, such as polling, retries and state machines. There I measured about 100 ms, six times faster than the base model on a cache hit.</p><p>It can also replace a same-size reasoning model on a simple, well-defined decision when time matters. That cost about 2.5 points of accuracy and saved 97% of the time, with latency I can predict.</p><h4>Where I would not</h4><p>I would not replace a non-reasoning call that already returns one word under a schema. Accuracy and speed are the same, and there is a second API to maintain. Valid output is no reason to switch either. Neither model gave a single invalid answer in 900 requests.</p><p>I would also not use it when someone needs a reason. A decision model returns no explanation, so if an agent or an auditor has to see a justification, a general model is still needed.</p><h3>Reproduce</h3><p>Code, the 900 complaints and all raw results are on GitHub, in the <a href="https://github.com/kumarkeviv/articles/tree/main/2026-10-nimble-decision-model">folder for this article</a> of my articles repo.</p><pre>ollama pull nimble &amp;&amp; ollama pull qwen3.5:9b-q8_0<br><br># about 35 minutes<br>python3 usecase/cfpb.py nimble nimble<br># about 33 minutes<br>python3 usecase/cfpb.py chat qwen3.5:9b-q8_0<br># reasoning on, about 21 hours<br>python3 usecase/think.py<br># Qwen with letter answers, about 33 minutes<br>python3 usecase/letters.py<br># about 3 minutes<br>python3 usecase/cache.py<br># tables and charts<br>python3 usecase/report.py</pre><p>The scripts need only Python 3. The charts also need Google Chrome, and report.py --no-png skips them. The four model runs can be stopped and restarted, and they continue where they stopped. Run one model at a time and nothing else on the GPU, or the times are not comparable.</p><h3>Sources and further reading</h3><ul><li>TypeSafe AI: <a href="https://typesafe.ai/blog/introducing-system-one-models-and-jev">Introducing System One Models &amp; Jev</a> (15 September 2026), the announcement that defines the term</li><li>Ollama: <a href="https://ollama.com/blog/ollama-now-supports-jev-style-decision-models">Ollama now supports Jev-style decision models</a> (29 September 2026), source of the 91 ms figure</li><li>Ollama documentation: <a href="https://docs.ollama.com/api/systemone">the </a><a href="https://docs.ollama.com/api/systemone">/v1/systemone endpoint</a>, with the definition of confidence</li><li><a href="https://ollama.com/library/nimble">Nimble 9B on Ollama</a>, with the vendor’s accuracy figures</li><li><a href="https://ollama.com/library/qwen3.5">Qwen3.5 on Ollama</a> and its <a href="https://ollama.com/library/qwen3.5/tags">tags</a></li><li>CFPB: <a href="https://www.consumerfinance.gov/data-research/consumer-complaints/">Consumer Complaint Database</a></li><li>Hugging Face: <a href="https://huggingface.co/datasets/BEE-spoke-data/consumer-finance-complaints">BEE-spoke-data/consumer-finance-complaints</a>, the copy used in this test</li><li><a href="https://en.wikipedia.org/wiki/McNemar%27s_test">McNemar’s test</a>, used to compare two models on the same complaints</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a845c2bbd7f0" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/evaluating-a-decision-model-nimble-9b-and-its-base-model-qwen3-5-9b-a845c2bbd7f0">Evaluating a decision model: Nimble 9B and its base model Qwen3.5–9B</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First Look at AlloyDB for PostgreSQL]]></title>
            <link>https://kumar-vivek.medium.com/first-look-at-alloydb-for-postgres-c4ad7369cb0d?source=rss-b4b8bd9d717b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4ad7369cb0d</guid>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[google-cloud]]></category>
            <category><![CDATA[alloydb]]></category>
            <dc:creator><![CDATA[Kumar Vivek]]></dc:creator>
            <pubDate>Sun, 15 May 2022 19:19:16 GMT</pubDate>
            <atom:updated>2022-05-16T15:27:34.602Z</atom:updated>
            <content:encoded><![CDATA[<p>So 2022 Google I/O is now over, and apart from tons of consumer products, there were some exciting announcements on the Google Cloud front — the introduction and public preview of <a href="https://cloud.google.com/alloydb">AlloyDB</a>.</p><p>AlloyDB is a fully managed PostgreSQL compatible database service that Google claims to be twice as fast for transactional workload compared to AWS <a href="https://aws.amazon.com/rds/aurora/">Aurora PostgreSQL</a>.</p><p>If you have been working with Google Cloud already, you must be familiar with Cloud SQL for PostgreSQL and Spanner, which offers a <a href="https://cloud.google.com/spanner/docs/postgresql-interface">PostgreSQL interface</a>, so what&#39;s new about this AlloyDB?</p><p>AlloyDB at the core is the standard PostgreSQL with changes in the kernel to leverage Google Cloud infrastructure at full by disaggregating compute and storage at every layer of the stack. This architecture allows the storage layer to be more elastic and distributed, better equipped to handle changing workloads, fault-tolerant, and highly available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YQh-0ccXxJpPizTJcR7QGg.jpeg" /><figcaption>Image Credit: Google</figcaption></figure><p>AlloyDB also comes with an Intelligent Database Storage Engine; it helps offload many housekeeping operations using the Log Processing System (LPS) to the storage layer. This further increases the throughput for primary instances as they can now focus on the queries rather than the maintenance operations. It also enables intelligent caching, dynamically updating cache based on the most frequent database queries.</p><h3>Setting Up AlloyDB</h3><p>Setting up the cluster was intuitive and straightforward; for testing, I created a single node cluster with a read pool, and the overall setup time was approx 15 minutes.</p><p>Few things to note here:</p><ol><li><strong>Private Service Access:</strong> your VPC where AlloyDB is deployed should have GCP <a href="https://cloud.google.com/vpc/docs/private-services-access">Private Service Access</a>; if you are already using other GCP services like Filestore, MemoryStore, etc. this should be already present.</li><li><strong>Machine Types:</strong> one thing to remember here is that machine types are not changeable, so once you select them while creating the cluster, you are stuck with them. It seems this feature will be coming soon — so fingers crossed.</li><li><strong>PostgreSQL Version:</strong> AlloyDB locks in the latest version of PostgreSQL at the time of cluster creation, so if you are coming from a Cloud SQL background, you don’t have the flexibility to run a different version of PostgreSQL. The upgrades will be applied automatically by Google as they roll out.</li><li><strong>Accessing the Cluster:</strong> since the cluster is deployed in a private network — the easiest way to play around is to set up a bastion or jump server with public IP in your VPC, but ensure you have a secure connection to the GCE instance. If you have data dumps that you want to bring for testing, you might want to consider cloud storage and then access them from your bastion.</li><li><strong>Backups:</strong> they are managed and are done at the storage-snapshot level. They are available as on-demand or daily automated backups.</li><li><strong>Low Carbon Locations:</strong> it was nice to see some of the locations marked with low CO2 labels suggesting those data centers are running over renewable energy. Though I doubt how impactful it will be as enterprises, don’t choose locations on CO2 emission and more on compliance or consumer group, but it was a nice touch.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RZwFwvXBvqCnbfS6Y414Bg.gif" /><figcaption>Setting up AlloyDB for PostgreSQL</figcaption></figure><h3>Overview</h3><p>At the core of every AlloyDB PostgreSQL deployment is the cluster; the cluster can contain a single primary instance or an additional standby if HA for read/write to the PostgreSQL database.</p><p>The cluster can also have multiple read pool instances that provide the read connection points for the database running in the cluster.</p><p>As the top-level resource in AlloyDB, clusters are the central unit of resource management, enabling administrators to monitor performance and configure policies and features across multiple instances.</p><p>All cluster resources share a storage layer, which scales as needed.</p><p>The storage layer is further composed of 3 parts:</p><ol><li>Regional Log Storage: for writing fast <a href="https://www.postgresql.org/docs/current/wal-intro.html">write-ahead logs (WAL)</a></li><li>Log Processing Service (LPS): for processing these WAL records and producing the database blocks</li><li>Shared Regional Block Storage: for ensuring durability in case of zone storage failure</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*APzRFxuPYOTt7AaawxvQ3Q.jpeg" /><figcaption>Image Credit: Google</figcaption></figure><p>The primary database instance persists WAL log entries and executes the database modification operations like INSERT/DELETE/UPDATE to the regional log store.</p><p>The LPS further consumes the WAL for further processing and generates blocks. These blocks are served back to the primary database instance or to any number of replica instances in any of the zones within the region where the storage service operates.</p><h3>Benchmarks</h3><p>A real-life application benchmarking to verify the claims to be twice as faster as AWS Aurora DB will need some preparation; I will write a follow-up article with those tests in the coming weeks. But for this first look, I used <a href="https://www.postgresql.org/docs/current/pgbench.html">pgbench</a> for 10 seconds interval to verify transactional improvement as we scale horizontally with more read nodes.</p><pre>+-----------+--------------------+--------------------------+<br>| Read Pool Node Count   | Transactions per second (TPS)    |<br>+-----------+--------------------+--------------------------+<br>| 1                      | 71428  (including connection)    |<br>| 2                      | 148667 (including connection)    |<br>| 4                      | 301613 (including connection)    |<br>+-----------+--------------------+--------------------------+</pre><h3>Pricing</h3><p>While in preview, AlloyDB is available at no cost for playing around under the <a href="https://cloud.google.com/alloydb/pricing#fair-usage-limits">fair usage limit</a>. But once it goes GA or outside of fair usage limits, the pricing will be composed of 3 components:</p><ol><li>CPU and Memory pricing</li><li>Storage pricing</li><li>Networking pricing</li></ol><p><strong>CPU and Memory Pricing</strong></p><p>Compute resources for AlloyDB are priced per vCPU and GB of memory, which are determined by the VMs in AlloyDB instances. A zonal primary instance uses one VM. A high availability primary instance uses two VMs, one for the active primary and a second for the in-region standby. AlloyDB read pool nodes use one VM each.</p><p>When an instance is created, we choose the number of CPUs and the amount of memory we want for its VMs, up to 64 CPUs and 512 GB of memory per VM. Below is the breakdown for Frankfurt (europe-west-3) region:</p><pre>+-----------+--------------------+---------------------------+<br>| Frankfurt  (europe-west-3)  | price (hourly)               |<br>+-----------+--------------------+---------------------------+<br>| vCPUs                       | $0.07797 / vCPU hour         |<br>| Memory                      | $0.01322 / GB hour           |<br>+-----------+--------------------+---------------------------+</pre><p><strong>Storage pricing</strong></p><p>Here the intelligent database storage engine comes into play and automatically scales up and down the required storage — so we only pay for the storage we use. The storage cost for Frankfurt (europe-west-3) region is:</p><pre>+-----------+--------------------+---------------------------+<br>| Frankfurt  (europe-west-3)  | price (hourly)               |<br>+-----------+--------------------+---------------------------+<br>| Regional cluster storage    | $0.0004849 per GB            |<br>+-----------+--------------------+---------------------------+</pre><p><strong>Networking pricing</strong></p><p>Ingress to AlloyDB for PostgreSQL is free. Egress pricing depends on the destination of the traffic; if it&#39;s within the same region, then it&#39;s free, but for inter-region, egress traffic from anywhere in Europe to Frankfurt (europe-west-3) would cost us $0.02/GB.</p><h3>Conclusion</h3><p>This is a welcome improvement in the database offering of Google Cloud, and this might be an excellent offering to enable enterprises to move their legacy Oracle databases to GCP confidently somewhere in the future.</p><p>The complete compatibility with PostgreSQL 14 enables us to use <a href="https://ora2pg.darold.net/">ora2pg</a> right out of the box, making life easier as we no longer need to worry about the changing interfaces. There were improvements in dynamic storage, better caching, and getting rid of IO bottlenecks by autoscaling storage and read replicas. They all are significant steps forward.</p><p>But at this stage, this is a relatively new product (not even in GA). Comparing it with AWS Aurora would not be fair as it&#39;s not feature-rich yet; the cost savings and performance benefits depend highly on the use case and require a detailed benchmarking. When writing this article, <a href="https://cloud.google.com/database-migration">DMS</a> still doesn’t support AlloyDB, but it’s promised to be in the roadmap, and we might see this in the future.</p><p>Google has built some fantastic database services like <a href="https://cloud.google.com/bigtable">Bigtable</a> and <a href="https://cloud.google.com/spanner">Spanner</a>, which changed the industry for good, and I am excited about how they will build upon this service. With AlloyDB&#39;s disaggregated architecture, the dystopian world where I only pay for SQL database per query and the stored data on GCP seems closer than ever.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4ad7369cb0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>