<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C on Agastya Patri</title><link>https://agastyapatri.com/tags/c/</link><description>Recent content in C on Agastya Patri</description><generator>Hugo</generator><language>en-US</language><copyright>Agastya Patri</copyright><lastBuildDate>Mon, 13 Apr 2026 19:45:50 +0530</lastBuildDate><atom:link href="https://agastyapatri.com/tags/c/index.xml" rel="self" type="application/rss+xml"/><item><title>microgpt-c</title><link>https://agastyapatri.com/posts/microgpt-c/</link><pubDate>Mon, 13 Apr 2026 19:45:50 +0530</pubDate><guid>https://agastyapatri.com/posts/microgpt-c/</guid><description>&lt;p&gt;&lt;a href="https://karpathy.github.io/2026/02/12/microgpt/"&gt;microgpt, by Andrej Karpathy&lt;/a&gt; is a 200 line python implementation of GPT-2. It is trained on a set of names, and attempts to train a model to generate new ones. Following this, I wanted to try porting it to C as an exercise in learning the language. &lt;strong&gt;This post will lay out my approach to implementing an autodifferentiation engine with nothing but the C standard library&lt;/strong&gt;. It&amp;rsquo;s recommended that one reads the original post, along with &lt;a href="https://growingswe.com/blog/microgpt"&gt;growingswe&amp;rsquo;s visual explainer&lt;/a&gt; for more background on GPT-2 itself.&lt;/p&gt;</description></item></channel></rss>