<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Model Inference on Nalar</title>
    <link>https://nalar.dev/tags/model-inference/</link>
    <description>Recent content in Model Inference on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 06 Sep 2026 00:00:00 +0700</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/model-inference/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Compare Generated Sequences with Length-Normalized Log Probabilities</title>
      <link>https://nalar.dev/compare-generated-sequences-with-length-normalized-log-probabilities/</link>
      <pubDate>Sun, 06 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/compare-generated-sequences-with-length-normalized-log-probabilities/</guid>
      <description>&lt;p&gt;A language model assigns a probability to each next token, but applications often need to compare complete candidate sequences. A reranker may choose among generated answers. A decoder may keep several partial hypotheses. An evaluator may compare alternative completions under the same prompt.&lt;/p&gt;&#xA;&lt;p&gt;The obvious approach is to multiply each candidate&amp;rsquo;s token probabilities, or equivalently add their log probabilities. That gives the probability the model assigns to the whole continuation. It also creates an important bias: every additional token contributes a probability no greater than 1, so longer sequences usually accumulate lower raw scores even when their individual tokens are highly plausible.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Reduce Transformer Inference Cost with Early Exiting</title>
      <link>https://nalar.dev/reduce-transformer-inference-cost-with-early-exiting/</link>
      <pubDate>Sun, 06 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/reduce-transformer-inference-cost-with-early-exiting/</guid>
      <description>&lt;p&gt;A transformer classifier normally spends the same number of layers on every input. A clear support request and an ambiguous one both pass through the entire network, even when an intermediate representation already contains enough information to classify the easy case correctly.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Early exiting&lt;/strong&gt; changes that fixed-compute rule. It attaches prediction heads to intermediate layers and lets an input stop once a chosen exit rule considers the prediction sufficiently reliable. Easy inputs can use less computation, while harder inputs continue through deeper layers.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
