<?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" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
    <channel>
        
        <title>
            <![CDATA[ Dev J. Shah - freeCodeCamp.org ]]>
        </title>
        <description>
            <![CDATA[ Browse thousands of programming tutorials written by experts. Learn Web Development, Data Science, DevOps, Security, and get developer career advice. ]]>
        </description>
        <link>https://www.freecodecamp.org/news/</link>
        <image>
            <url>https://cdn.freecodecamp.org/universal/favicons/favicon.png</url>
            <title>
                <![CDATA[ Dev J. Shah - freeCodeCamp.org ]]>
            </title>
            <link>https://www.freecodecamp.org/news/</link>
        </image>
        <generator>Eleventy</generator>
        <lastBuildDate>Wed, 02 Dec 2026 21:38:15 +0000</lastBuildDate>
        <atom:link href="https://www.freecodecamp.org/news/author/busycaesar/rss.xml" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        
            <item>
                <title>
                    <![CDATA[ The Math Behind Using LoRA to Fine-Tune LLMs ]]>
                </title>
                <description>
                    <![CDATA[ If you've been following the world of Large Language Models (LLMs), one term you have likely come across is fine-tuning. But what actually happens under the hood? What does it do to the LLM? In this a ]]>
                </description>
                <link>https://www.freecodecamp.org/news/the-math-behind-using-lora-to-fine-tune-llms/</link>
                <guid isPermaLink="false">6b105e86d822001f7d611b1a</guid>
                
                    <category>
                        <![CDATA[ llm ]]>
                    </category>
                
                    <category>
                        <![CDATA[ finetuning ]]>
                    </category>
                
                    <category>
                        <![CDATA[ lora-math ]]>
                    </category>
                
                    <category>
                        <![CDATA[ MathJax ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Dev J. Shah ]]>
                </dc:creator>
                <pubDate>Wed, 02 Dec 2026 18:08:06 +0000</pubDate>
                <media:content url="https://cdn.hashnode.com/uploads/covers/5e1e335a7a1d3fcc59028c64/6eb87488-ad56-4063-a57d-c5c19e4d9dcf.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>If you've been following the world of Large Language Models (LLMs), one term you have likely come across is fine-tuning. But what actually happens under the hood? What does it do to the LLM?</p>
<p>In this article, you'll first start by understanding what an LLM actually outputs. Then you'll learn how fine-tuning works. The method you'll focus on here is LoRA (Low-Rank Adaptation) which is one of the most popular approaches to fine-tuning.</p>
<p>Throughout the article, you'll follow one small example to understand how everything works. You don't need to have any prior machine learning or math background to follow along.</p>
<h2 id="heading-table-of-contents">Table of Contents</h2>
<ul>
<li><a href="#heading-how-an-llm-picks-the-next-token">How an LLM Picks the Next Token</a></li>
<li><a href="#heading-what-is-fine-tuning">What Is Fine-Tuning?</a></li>
<li><a href="#heading-how-lora-works">How LoRA Works</a><ul>
<li><a href="#heading-low-rank-factorization">Low-Rank Factorization</a></li>
<li><a href="#heading-how-lora-uses-this-idea">How LoRA Uses This Idea</a></li>
</ul>
</li>
<li><a href="#heading-how-to-fine-tune-intern-llm-with-lora">How to Fine-Tune intern-llm with LoRA</a><ul>
<li><a href="#heading-how-to-prepare-the-dataset">How to Prepare the Dataset</a></li>
<li><a href="#heading-the-fine-tuning-loop">The Fine-Tuning Loop</a></li>
<li><a href="#heading-the-adapter-and-scaling">The Adapter and Scaling</a></li>
</ul>
</li>
<li><a href="#heading-conclusion">Conclusion</a></li>
<li><a href="#heading-take-home-exercise">Take-Home Exercise</a></li>
</ul>
<h2 id="heading-how-an-llm-picks-the-next-token">How an LLM Picks the Next Token</h2>
<p>First, what's at the core of an LLM's behavior? It's a token: the single unit that decides the tone, nature, and characteristics of the response the model generates.</p>
<p>Even the basic unit that you use for calculating LLM usage is a token. In general, a token can be a character, sub-word, or word.</p>
<p>Throughout this article, the term token refers to a word. In practice, LLMs often split words into sub-words, but treating each token as a word keeps the example simple.</p>
<p>Now back to what defines the nature of a generated response. To understand this, first you need to understand how the system around an LLM works.</p>
<p>A regular LLM receives a series of tokens (for example, a sentence) and returns a list of possible next tokens, each with a probability. This is the fundamental task of an LLM.</p>
<img src="https://cdn.hashnode.com/uploads/covers/66fd782ea4d5e9315ee67eea/0076803e-a571-4b1b-9e52-d91fc8d6c252.png" alt="This is a diagram of a series of tokens being input to an LLM and 3 tokens are output: Token 1 with 0.64, Token 2 with 0.20 and Token 3 with 0.16 probability." style="display: block;" width="832" height="182" loading="lazy">

<p>It's similar to how the predictive text suggests the next word on your phone as you type. An LLM does the same thing, but at a much larger scale with a probability calculated for every possible next token.</p>
<p>The LLM then adds the token with the highest probability to the initial series of tokens and the loop keeps going until the full response is generated. So the nature of the generated response comes down to a calculation of probability.</p>
<p>A raw base LLM doesn't know how to talk with humans, be polite, or follow instructions. All those behaviors come from extra training and from the systems that wrap it.</p>
<p>Now, assume that I have an LLM called <code>intern-llm</code>. When I pass it a series of tokens that say "Using light mode in your code editor is", it returns the following tokens with their probabilities:</p>
<ul>
<li>"Clean": 0.64</li>
<li>"Crime": 0.20</li>
<li>"Blinding": 0.16</li>
</ul>
<img src="https://cdn.hashnode.com/uploads/covers/66fd782ea4d5e9315ee67eea/72fb86aa-f95e-45a5-93ac-8002392b8486.png" alt="This is the diagram of prompt &quot;Using light mode in your code editor is&quot; being input to the LLM and 3 tokens output by the LLM: Token 1 with 0.64, Token 2 with 0.20 and Token 3 with 0.16 probability." style="display: block;" width="888" height="182" loading="lazy">

<p>In other words, the LLM is completing the sentence, and it thinks the most likely ending is "Using light mode in your code editor is clean."</p>
<p>And, like many of you likely did, I was irritated with this answer.</p>
<p>But then I realized that an LLM doesn't have a personal opinion. All it does is some calculations, which it then uses to come up with these probabilities.</p>
<p>So I pardoned the model and decided to fix this calculation and turn <code>intern-llm</code> into <code>senior-llm</code>. Here, <code>intern-llm</code> is the base LLM, and <code>senior-llm</code> is its fine-tuned version.</p>
<p>In order to do this, my first step was to find out how the LLM calculates these probabilities. This is when I learned that these calculations are the result of the LLM's training.</p>
<p>During the training of the LLM, it stores whatever it learns in the form of numbers. In basic terms, you can call these numbers weights. Essentially, these weights drive the probability calculations.</p>
<p>Then I discovered that the LLM doesn't just have a handful of these weights. Apparently, it has millions or billions of them. And it arranges these weights into grid-like structures called matrices.</p>
<p>$$W = \begin{bmatrix} 0.12 &amp; 0.84 &amp; 0.33 &amp; 0.71 &amp; 0.29 \\ 0.91 &amp; 0.27 &amp; 0.56 &amp; 0.14 &amp; 0.88 \\ 0.44 &amp; 0.69 &amp; 0.11 &amp; 0.93 &amp; 0.37 \\ 0.55 &amp; 0.32 &amp; 0.78 &amp; 0.61 &amp; 0.45 \\ 0.23 &amp; 0.87 &amp; 0.19 &amp; 0.42 &amp; 0.66 \end{bmatrix}$$</p>
<p>All LLMs use multiple such matrices to calculate the probabilities of the next tokens. Above is a miniature 5 x 5 matrix. Each number in it represents a single weight, and this grid arrangement makes it a 25-weight matrix W.</p>
<p>After I learned this, the path became clear. I had to update these weights so that the LLM would calculate probabilities where the tokens "Crime" and "Blinding" scored above "Clean", as they're the more likely answers.</p>
<h2 id="heading-what-is-fine-tuning">What Is Fine-Tuning?</h2>
<p>This process is called fine-tuning: modifying these weights to nudge the LLM to calculate the probability of the next set of tokens differently from what it was trained to do. The process where all the weights of the LLM are updated is called full fine-tuning.</p>
<p>Notice here that you're changing how the LLM calculates the probabilities, not the facts it knows. And because you fine-tune it on hundreds or thousands of examples instead of a single one, the LLM learns a general pattern. It then applies this pattern to new prompts it hasn't seen before.</p>
<p>For this use case, full fine-tuning is one of the options. But as you now know, LLMs usually have billions of weights.</p>
<p>For example, a 7-billion-parameter (7B) LLM has 7 billion weights, which would require massive GPU memory and training time for full fine-tuning. Even for a small change like this one, updating billions of weights would be overkill.</p>
<p>So I started looking for alternatives, because you don't want to reteach the model fundamental knowledge that it already has. All you want is to make a few tweaks so that it calculates the probability of the next tokens differently.</p>
<p>This is when I learned about Parameter-Efficient Fine-Tuning (PEFT), the process in which only a portion of the LLM's weights is changed to nudge its behavior. One of the most widely known PEFT methods is Low-Rank Adaptation, or LoRA.</p>
<h2 id="heading-how-lora-works">How LoRA Works</h2>
<h3 id="heading-low-rank-factorization">Low-Rank Factorization</h3>
<p>LoRA is inspired by a mathematical concept called Low-Rank Factorization, where a big matrix is factorized into two smaller ones with comparatively fewer numbers. Take a look at this 5 x 5 matrix M. It holds 25 numbers.</p>
<p>$$M = \begin{bmatrix} 1 &amp; 2 &amp; 0 &amp; 1 &amp; 3 \\ 0 &amp; 1 &amp; 2 &amp; 1 &amp; 0 \\ 1 &amp; 3 &amp; 2 &amp; 2 &amp; 3 \\ 2 &amp; 4 &amp; 0 &amp; 2 &amp; 6 \\ 1 &amp; 4 &amp; 4 &amp; 3 &amp; 3 \end{bmatrix}$$</p>
<p>Now look at these two smaller matrices below, P (5 x 2) and Q (2 x 5).</p>
<p>$$P = \begin{bmatrix} 1 &amp; 0 \\ 0 &amp; 1 \\ 1 &amp; 1 \\ 2 &amp; 0 \\ 1 &amp; 2 \end{bmatrix} \quad Q = \begin{bmatrix} 1 &amp; 2 &amp; 0 &amp; 1 &amp; 3 \\ 0 &amp; 1 &amp; 2 &amp; 1 &amp; 0 \end{bmatrix}$$</p>
<p>Quick math refresher for anyone who needs it: You can only multiply two matrices if the number of columns of the first matrix is equal to the number of the rows in the second matrix. Also, the size of the product of the multiplication becomes the row of the first matrix and the column of the second.</p>
<p>In simple words, P (5 rows x 2 columns) times Q (2 rows x 5 columns) can be multiplied because P has 2 columns and Q has 2 rows and the size of its product will be 5 x 5.</p>
<p>When you multiply these matrices above, you get M back as a result. But P and Q together hold only 20 numbers, whereas M holds 25 numbers.</p>
<p>Notice that P has 2 columns and Q has 2 rows. This shared number, 2, is called the rank, and it's what the "Rank" term in "Low-Rank Factorization" refers to. The smaller the rank, the fewer numbers you need.</p>
<h3 id="heading-how-lora-uses-this-idea">How LoRA Uses This Idea</h3>
<p>LoRA is <strong>inspired</strong> by this idea with a caveat, as the name suggests. It's not Low-Rank Factorization. It's Low-Rank <strong>Adaptation</strong>.</p>
<p>In simple terms, you don't break the existing matrix W into separate factors. Instead, you create two small matrices next to it. The original matrix is frozen, which means its weights don't change during fine-tuning.</p>
<p>Bringing back the 5 x 5 weight matrix W (from the beginning of the article), you freeze this during fine-tuning to ensure that <code>intern-llm</code> keeps its original knowledge.</p>
<p>$$W_{\text{frozen}} = \begin{bmatrix} 0.12 &amp; 0.84 &amp; 0.33 &amp; 0.71 &amp; 0.29 \\ 0.91 &amp; 0.27 &amp; 0.56 &amp; 0.14 &amp; 0.88 \\ 0.44 &amp; 0.69 &amp; 0.11 &amp; 0.93 &amp; 0.37 \\ 0.55 &amp; 0.32 &amp; 0.78 &amp; 0.61 &amp; 0.45 \\ 0.23 &amp; 0.87 &amp; 0.19 &amp; 0.42 &amp; 0.66 \end{bmatrix}$$</p>
<p>Then, instead of changing W, you add two new weight matrices with the frozen W. The size of these two matrices comes from W's size and the rank you pick:</p>
<ul>
<li>A's number of rows = W's number of rows</li>
<li>B's number of columns = W's number of columns</li>
<li>A's number of columns = B's number of rows = the rank you pick</li>
</ul>
<p>In this example, if you go with:</p>
<ul>
<li>r = 4: A and B together hold 40 weights, which is more than W's 25</li>
<li>r = 3: A and B together hold 30 weights, which is still more than W's 25</li>
<li>r = 2: A and B together hold 20 weights, which is less than W's 25</li>
</ul>
<p>So 2 is the right rank here. In theory, you could go lower, but the lower the rank, the fewer weights A and B have to learn the pattern. So you still want to keep as many as you can afford to grasp most of the pattern.</p>
<p>With r = 2, A is 5 x 2 and B is 2 x 5.</p>
<p>$$A = \begin{bmatrix} 0.3 &amp; 0.7 \\ 0.5 &amp; 0.2 \\ 0.8 &amp; 0.4 \\ 0.1 &amp; 0.6 \\ 0.9 &amp; 0.3 \end{bmatrix} \quad B = \begin{bmatrix} 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 \\ 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 \end{bmatrix}$$</p>
<p>Multiplying them, (5 x 2) x (2 x 5), gives a 5 x 5 matrix, which exactly matches the shape of W. Matrix A holds 10 weights and B holds 10 weights, so you train only 20 weights instead of 25.</p>
<p>This miniature example may look like a small saving of a mere 5 weights. But as you know, in real life, LLMs have millions or billions of weights. For example, here's the summary of the <code>gemma3_instruct_1b</code> model before and after enabling LoRA (in this summary, "params" = "weights").</p>
<img src="https://cdn.hashnode.com/uploads/covers/66fd782ea4d5e9315ee67eea/26503679-d5cb-421d-8c8e-2909582e1a8c.png" alt="The metrics of gemma3_instruct_1b before enabling LoRA." style="display: block;" width="1185" height="524" loading="lazy">

<p>Before enabling LoRA:</p>
<ul>
<li>Total params: 999,885,952 (3.72 GB)</li>
<li>Trainable params: 999,885,952 (3.72 GB)</li>
</ul>
<img src="https://cdn.hashnode.com/uploads/covers/66fd782ea4d5e9315ee67eea/47d5be25-83cd-4199-a080-04b5f59a0ab7.png" alt="The metrics of gemma3_instruct_1b after enabling LoRA of rank 4." style="display: block;" width="1185" height="521" loading="lazy">

<p>After enabling LoRA with rank 4:</p>
<ul>
<li>Total params: 1,000,538,240 (3.73 GB)</li>
<li>Trainable params: 652,288 (2.49 MB)</li>
</ul>
<p>Just by enabling LoRA, the number of trainable weights drops to only 0.065% of the original number of weights. The total goes up slightly because LoRA added the two small matrices A and B, while all the original weights are frozen.</p>
<p>These numbers come from the first notebook that you will find in the <a href="#heading-take-home-exercise">Take-Home Exercise</a> at the end of this article. You can run it and see it yourself.</p>
<h2 id="heading-how-to-fine-tune-intern-llm-with-lora">How to Fine-Tune <code>intern-llm</code> with LoRA</h2>
<h3 id="heading-how-to-prepare-the-dataset">How to Prepare the Dataset</h3>
<p>The first step to fine-tune a model is to have a dataset for fine-tuning. This dataset consists of pairs of prompts and the responses you want the fine-tuned LLM to give.</p>
<p>For general use cases, there are a lot of datasets available on Hugging Face. For specific use cases, you need to create your own data, for example by writing the examples yourself or by generating them with a larger LLM and reviewing them. Either way, each example ends up as a prompt and response pair like this:</p>
<pre><code class="language-json">{
  "Prompt": "Using light mode in your code editor is",
  "Response": "Crime"
}
</code></pre>
<p>You need hundreds or thousands of such examples in your dataset.</p>
<h3 id="heading-the-fine-tuning-loop">The Fine-Tuning Loop</h3>
<h4 id="heading-step-1-forward-pass">Step 1: Forward Pass</h4>
<p>The first step in fine-tuning is called the forward pass. In this step, you only take the "Prompt" from the dataset and let it pass through the LLM.</p>
<p>It's like taking a practice test to understand the baseline and weak areas, which helps to build your strategy for studying before the exam. In short, no weights are updated during the forward pass. It only gets the LLM's current prediction, so you can compare it with the expected Response in the next steps.</p>
<p>The effective weight matrix that the LLM uses is the following:</p>
<p>$$W' = W + (A \times B)$$</p>
<img src="https://cdn.hashnode.com/uploads/covers/66fd782ea4d5e9315ee67eea/bc770f96-f030-41ab-bec2-823e02e68c50.png" alt="This diagram shows how the frozen W of the size 5 x 5 is being added with the product of matrix A of size 5 x 2 and B of size 2 x 5 to get the effective weight." style="display: block;" width="813" height="242" loading="lazy">

<p>If you look at the values in the A and B matrices from earlier, A contains random numbers, while B has all zeros, which is a design choice. This makes the product of A and B zero. Hence, during the first iteration, the effective weight matrix of the LLM becomes W' = W.</p>
<p>So during the first forward pass, when you pass "Using light mode in your code editor is", the LLM still calculates the highest probability for "Clean". However, from the next iterations, A and B would get some values or change in value to nudge the behavior of the LLM.</p>
<h4 id="heading-step-2-calculate-the-loss">Step 2: Calculate the Loss</h4>
<p>The next step of fine-tuning is calculating the loss. As per the dataset, the LLM should have predicted "Crime", but instead it predicted "Clean". So now, you'll calculate the loss.</p>
<p>Since the "Response" in the dataset is "Crime", the target probability for "Crime" is 1 and for every other token it is 0. The probabilities the LLM calculated are 0.64 for Clean, 0.20 for Crime, and 0.16 for Blinding. So the difference from the target for each token is:</p>
<ul>
<li>Clean: 0 - 0.64 = -0.64</li>
<li>Crime: 1 - 0.20 = +0.80</li>
<li>Blinding: 0 - 0.16 = -0.16</li>
</ul>
<img src="https://cdn.hashnode.com/uploads/covers/66fd782ea4d5e9315ee67eea/3c9ad0e9-8c34-4c24-bc86-57e857a29c92.png" alt="Bar chart of the loss for each token. Red shows the distance from the target: 0.64 for Clean and 0.16 for Blinding, which need to drop to 0, and 0.80 for Crime, which needs to rise to 1." style="display: block;" width="633" height="182" loading="lazy">

<p>These differences are combined into a single number, called the loss, which shows how far the LLM's prediction is from the expected Response. The closer the probability for "Crime" gets to 1, the closer the loss gets to 0, and vice versa.</p>
<p>In the above image, red bars are the distance from the target. For Clean and Blinding, you need to reduce the red bar to 0, whereas for Crime, you need to eliminate the red bar by increasing its probability towards 1.</p>
<h4 id="heading-step-3-backward-pass">Step 3: Backward Pass</h4>
<p>In the next step, you take the loss and do a backward pass. This means you pass the loss back through the LLM so it can adjust its weights to compensate for the error.</p>
<p>Because the original weight matrix W of the LLM is frozen, it updates the values stored in the matrices A and B. These weights are updated to minimize the loss the next time it gets the same prompt. In a way, A and B only store the weights that fill the gap. The gap is the change the LLM's original weight matrix W needs to reduce the red parts in the diagram in Step 2.</p>
<p>Notice that I used the phrase "weights are updated to minimize the loss". This is because, in practice, the probabilities never become exactly 1 or 0. If they get too close, that means the model is memorizing the dataset instead of learning the pattern. This is because a training dataset usually contains more than one valid response for similar prompts, so the LLM learns to give high probabilities to all of them instead of just one.</p>
<h4 id="heading-step-4-repeat">Step 4: Repeat</h4>
<p>All the examples from the dataset go through this loop of forward pass, calculate loss, and backward pass. One complete pass of the whole dataset through this loop is called 1 epoch. In practice, you perform multiple epochs until A and B closely learn the gap to turn <code>intern-llm</code> into <code>senior-llm</code>.</p>
<img src="https://cdn.hashnode.com/uploads/covers/66fd782ea4d5e9315ee67eea/dfc16a6d-b220-4d69-83dc-dd43868b6930.png" alt="The flowchat of the fine-tuning loop that shows the dataset going through forward pass, loss calculation, backward pass, updates value of A and B and back to the dataset." style="display: block;" width="1082" height="449" loading="lazy">

<h3 id="heading-the-adapter-and-scaling">The Adapter and Scaling</h3>
<p>Once the fine-tuning is done, the matrices A and B are stored in an adapter. An adapter is a small, separate file that holds the weights in A and B. It's like an extension for <code>intern-llm</code>.</p>
<p>Later, when you want to use <code>senior-llm</code> to generate the responses, you'll attach this adapter to <code>intern-llm</code>. Since the adapter is a separate file from <code>intern-llm</code>, <code>intern-llm</code> can have multiple compatible adapters, which give it its fine-tuned capabilities.</p>
<p>For example, you could fine-tune one adapter that makes the LLM prefer dark mode (the "Crime" adapter) and another adapter that makes it answer in short bullet points. The base LLM stays the same, and you swap whichever adapter the task needs.</p>
<img src="https://cdn.hashnode.com/uploads/covers/66fd782ea4d5e9315ee67eea/c7286f16-253e-491b-9142-c362e2dd04bf.png" alt="A diagram showing how the fine-tuned model consist of the base model with frozen original W and the adapter A and B." style="display: block;" width="562" height="272" loading="lazy">

<p>There's one more factor in the formula. So far, you've simply added A x B to W to get the effective weight. But, in practice, LoRA also multiplies A x B with a scaling factor that controls how much the adapter changes the LLM's probability calculation. So the correct formula is</p>
<p>$$W' = W + \frac{\alpha}{r}(A \times B)$$</p>
<p>Here,</p>
<ul>
<li>r = The rank, which is 2 in this example</li>
<li>α = A volume knob controlling how strongly the adapter influences the base LLM</li>
<li>Dividing α by r keeps that volume balanced even if you increase the rank later, so <code>senior-llm</code> doesn't lose <code>intern-llm</code>'s core skills</li>
</ul>
<p>Now, once fine-tuning is done, when you pass "Using light mode in your code editor is" to <code>senior-llm</code>, it calculates higher probabilities for "Crime" and "Blinding" than for "Clean".</p>
<img src="https://cdn.hashnode.com/uploads/covers/66fd782ea4d5e9315ee67eea/46bf366e-9065-4f79-9b16-958531548f65.png" alt="Two bar charts showing the next token prediction by the LLM before and after fine-tuning." style="display: block;" width="931" height="237" loading="lazy">

<h2 id="heading-conclusion">Conclusion</h2>
<p>When using LoRA, you freeze the original weight matrix W and train two small matrices instead. This helps reduce the number of weights you need to change. At the same time, the LLM still keeps everything that it learned during its original training, and A and B only learn the gap between <code>intern-llm</code> and <code>senior-llm</code>.</p>
<p>With fewer weights, you can fine-tune an LLM without needing a big GPU and also make the process faster. And since each adapter is separate, you can swap adapters to use the same base LLM for different tasks.</p>
<h2 id="heading-take-home-exercise">Take-Home Exercise</h2>
<p>I don't understand a new concept unless I see and run the code myself. So I encourage you to try the following two notebooks:</p>
<ol>
<li><a href="https://github.com/busycaesar/LoRA/blob/Master/google-gemma/gemma.ipynb">The first notebook</a> fine-tunes the <code>gemma3_instruct_1b</code> model using LoRA and stores the adapter on <a href="https://huggingface.co/busycaesar/gemma3-adapter">Hugging Face</a>.</li>
<li><a href="https://github.com/busycaesar/LoRA/blob/Master/google-gemma/gemma-adaptor.ipynb">The second notebook</a> shows how you can directly attach an adapter trained for the same model and, in a few steps, get its fine-tuned version.</li>
</ol>
 ]]>
                </content:encoded>
            </item>
        
    </channel>
</rss>
