<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Model Training on Nalar</title>
    <link>https://nalar.dev/tags/model-training/</link>
    <description>Recent content in Model Training on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 03 Sep 2026 00:00:00 +0700</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/model-training/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Train Larger AI Models with Gradient Accumulation</title>
      <link>https://nalar.dev/train-larger-ai-models-with-gradient-accumulation/</link>
      <pubDate>Thu, 03 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/train-larger-ai-models-with-gradient-accumulation/</guid>
      <description>&lt;p&gt;Training a neural network often becomes memory-bound before it becomes compute-bound. You may want a batch of 64 examples for stable optimization, but the model, activations, optimizer state, and input tensors leave enough accelerator memory for only 8 examples at a time.&lt;/p&gt;&#xA;&lt;p&gt;Reducing the batch size to 8 may work, but it also changes the optimization process. &lt;strong&gt;Gradient accumulation&lt;/strong&gt; provides another option: process several smaller microbatches, add their gradients together, and update the model only after the desired effective batch has been processed.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Understand Knowledge Distillation for Smaller AI Models</title>
      <link>https://nalar.dev/understand-knowledge-distillation-for-smaller-ai-models/</link>
      <pubDate>Thu, 03 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/understand-knowledge-distillation-for-smaller-ai-models/</guid>
      <description>&lt;p&gt;A large model may produce useful predictions but still be too expensive or slow for the environment where it must run. A mobile application, an edge device, or a high-volume service can have tighter limits on memory, latency, and compute.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Knowledge distillation&lt;/strong&gt; is one way to address that gap. Instead of training a smaller model only from the original labels, we also train it to imitate information produced by a stronger &lt;strong&gt;teacher&lt;/strong&gt; model. The smaller model is called the &lt;strong&gt;student&lt;/strong&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
