<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Deep Learning on Nalar</title>
    <link>https://nalar.dev/tags/deep-learning/</link>
    <description>Recent content in Deep Learning 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/deep-learning/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 Activation Functions in Transformer Feed-Forward Networks</title>
      <link>https://nalar.dev/understand-activation-functions-in-transformer-feed-forward-networks/</link>
      <pubDate>Thu, 03 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/understand-activation-functions-in-transformer-feed-forward-networks/</guid>
      <description>&lt;p&gt;Attention gets much of the attention in transformer explanations, but every transformer layer also contains a feed-forward network that performs substantial computation on each token representation. The activation function inside that network is a small-looking design choice with an important job: it introduces nonlinearity so the network can learn transformations that stacked linear projections alone cannot express.&lt;/p&gt;&#xA;&lt;p&gt;Understanding this part of a transformer helps when reading model architectures, comparing implementations, estimating parameter and compute costs, or deciding whether two feed-forward designs are actually equivalent.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
