<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Post-Training on Blog</title>
    <link>https://dudeperf3ct.github.io/tags/post-training/</link>
    <description>Recent content in Post-Training on Blog</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>dudeperf3ct</copyright>
    <atom:link href="https://dudeperf3ct.github.io/tags/post-training/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Post training - Reinforcement Learning</title>
      <link>https://dudeperf3ct.github.io/projects/post_training_llm_rl/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://dudeperf3ct.github.io/projects/post_training_llm_rl/</guid>
      <description>&lt;p&gt;The post on &lt;a href=&#34;https://dudeperf3ct.github.io/projects/post_training_llm_sft/&#34;&gt;post-training SFT&lt;/a&gt; covered four finetuning experiments on direct and reasoning tasks using LoRA and full-finetuning approaches. This post covers different reinforcement learning (RL) approaches used in post-training.&lt;/p&gt;
&lt;p&gt;SFT teaches a model by giving it examples to imitate. The training data contains target responses, and the model learns to generate tokens from the target distribution.&lt;/p&gt;
&lt;p&gt;RL takes a different approach. Instead of showing the model exactly &lt;em&gt;how&lt;/em&gt; to solve a problem, we let it generate solutions, evaluate how good those solutions are, and update the model so that successful behaviour becomes more likely.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Post training - Supervised Finetuning</title>
      <link>https://dudeperf3ct.github.io/projects/post_training_llm_sft/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://dudeperf3ct.github.io/projects/post_training_llm_sft/</guid>
      <description>&lt;p&gt;In &lt;a href=&#34;https://dudeperf3ct.github.io/projects/train_llm_part2/&#34;&gt;previous posts&lt;/a&gt;, I explored how to pretrain a language model. The setup for pretraining used Llama 3.2 1B base model trained on &lt;a href=&#34;https://huggingface.co/datasets/tokyotech-llm/swallow-code-v2&#34;&gt;&lt;code&gt;tokyotech-llm/swallow-code-v2&lt;/code&gt;&lt;/a&gt; dataset for Fill-in-Middle (FIM) task.&lt;/p&gt;
&lt;p&gt;The mistake here was using narrow code-only corpus as pretraining dataset. A more practical pipeline would be to begin with a broadly pretrained base model, optionally continue pretraining it on high-quality code, and then apply SFT using verified prompt–response demonstrations. Pretraining task are used to learn language representation across various tasks.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
