<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sarkar-AGI</title>
    <description>The latest articles on DEV Community by Sarkar-AGI (@sarkaragi).</description>
    <link>https://dev.to/sarkaragi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3946047%2F2a7f29fe-1483-4f31-b59c-ad0699b65871.png</url>
      <title>DEV Community: Sarkar-AGI</title>
      <link>https://dev.to/sarkaragi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sarkaragi"/>
    <language>en</language>
    <item>
      <title>PyGo: A Deep Learning Framework Where Go Calls Python Calls C++</title>
      <dc:creator>Sarkar-AGI</dc:creator>
      <pubDate>Sun, 19 Jul 2026 07:35:56 +0000</pubDate>
      <link>https://dev.to/sarkaragi/pygo-a-deep-learning-framework-where-go-calls-python-calls-c-4amo</link>
      <guid>https://dev.to/sarkaragi/pygo-a-deep-learning-framework-where-go-calls-python-calls-c-4amo</guid>
      <description>&lt;p&gt;&lt;strong&gt;[Project] PyGo – embedding CPython inside a Go process to build a deep learning framework&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I've been working on something a bit unusual: a deep learning framework where Go is the top-level API, Python handles autograd and the model zoo, and C++/CUDA does the raw compute.&lt;/p&gt;

&lt;p&gt;The architecture looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Go API → CGo bridge → CPython (embedded) → pybind11 → CUDA/AVX-512 kernels
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The key insight: instead of a Python sidecar in every pod, CPython runs &lt;em&gt;inside&lt;/em&gt; the Go binary. Tensors live in shared memory — zero-copy across all three layers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Go on top?&lt;/strong&gt;&lt;br&gt;
Go is already running most ML infrastructure (K8s, Prometheus, etcd). PyGo makes models first-class citizens there, without rewriting your ops stack. Goroutines make dynamic batching trivial.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Current state:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;LLaMA-3, GPT-2, BERT, ViT, Whisper partially implemented&lt;/li&gt;
&lt;li&gt;Flash Attention v2, GPTQ/AWQ quantisation&lt;/li&gt;
&lt;li&gt;FSDP, DPO, SFT trainers&lt;/li&gt;
&lt;li&gt;Early stage — looking for Go + C++/CUDA contributors&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The main unsolved problem is CGo call overhead at the tensor boundary. If anyone has experience embedding CPython in a Go process, I'd love to talk.&lt;/p&gt;

&lt;p&gt;Looking for core contributors — especially Go devs with CGo experience, Python autograd engineers, and C++/CUDA kernel writers.&lt;br&gt;
Interested in joining?&lt;br&gt;
Fill this form:&lt;a href="https://docs.google.com/forms/d/e/1FAIpQLSe8rxglSofehizPqFu5Rb8XjsWXGaOzlh2ZZXHExrr8Qk8Sng/viewform" rel="noopener noreferrer"&gt;https://docs.google.com/forms/d/e/1FAIpQLSe8rxglSofehizPqFu5Rb8XjsWXGaOzlh2ZZXHExrr8Qk8Sng/viewform&lt;/a&gt;&lt;/p&gt;

</description>
      <category>deeplearning</category>
      <category>go</category>
      <category>python</category>
      <category>showdev</category>
    </item>
    <item>
      <title>TitanCore Core-1 – Trillion-parameter LLM training infra in C++/CUDA with ZeRO-3</title>
      <dc:creator>Sarkar-AGI</dc:creator>
      <pubDate>Fri, 22 May 2026 12:07:24 +0000</pubDate>
      <link>https://dev.to/sarkaragi/titancore-core-1-trillion-parameter-llm-training-infra-in-ccuda-with-zero-3-5lc</link>
      <guid>https://dev.to/sarkaragi/titancore-core-1-trillion-parameter-llm-training-infra-in-ccuda-with-zero-3-5lc</guid>
      <description>&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;I built TitanCore Core-1, a lightweight core infrastructure (around 75+ files) written in C++ and custom CUDA kernels to address the VRAM bottleneck in trillion-parameter LLM training.&lt;/p&gt;

&lt;p&gt;By implementing Fully Sharded Data Parallelism (FSDP) via ZeRO-3 and bypassing standard framework overhead with fused kernels, I managed to hit 890 GB/s memory bandwidth utilization ($2.6\times$ speedup compared to traditional pipelines).&lt;/p&gt;

&lt;p&gt;The code is fully open-source. I would love to get your feedback on the custom memory handling and activation checkpointing logic!&lt;br&gt;
GitHub link &lt;a href="https://github.com/Sarkar-AGI/Core-1" rel="noopener noreferrer"&gt;https://github.com/Sarkar-AGI/Core-1&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>llm</category>
      <category>performance</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
