<?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: IDKLETSCODESOMETHIN</title>
    <description>The latest articles on DEV Community by IDKLETSCODESOMETHIN (@idkletscodesomethin).</description>
    <link>https://dev.to/idkletscodesomethin</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%2F4239108%2F384e9178-7047-4991-85e6-aa55073adde5.png</url>
      <title>DEV Community: IDKLETSCODESOMETHIN</title>
      <link>https://dev.to/idkletscodesomethin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/idkletscodesomethin"/>
    <language>en</language>
    <item>
      <title>I Built a Bare-Metal Deep Learning Engine in C++20 and Rust (VeloGrad v1.0.0)</title>
      <dc:creator>IDKLETSCODESOMETHIN</dc:creator>
      <pubDate>Wed, 11 Nov 2026 13:00:12 +0000</pubDate>
      <link>https://dev.to/idkletscodesomethin/i-built-a-bare-metal-deep-learning-engine-in-c20-and-rust-velograd-v100-5ek3</link>
      <guid>https://dev.to/idkletscodesomethin/i-built-a-bare-metal-deep-learning-engine-in-c20-and-rust-velograd-v100-5ek3</guid>
      <description>&lt;p&gt;Hey developers!&lt;/p&gt;

&lt;p&gt;My name is Ayushman Singh Rathore, and over the past several months I have been building VeloGrad (v1.0.0), a native-first machine learning and autoregressive inference runtime written from scratch in modern C++20, Rust, and CUDA.&lt;/p&gt;

&lt;p&gt;GitHub Repository: &lt;a href="https://github.com/IDKLETSCODESOMETHIN/VeloGrad" rel="noopener noreferrer"&gt;https://github.com/IDKLETSCODESOMETHIN/VeloGrad&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Why I Built It: PyTorch is great for research, but running modern long-context LLMs in production usually requires duct-taping multiple heavy frameworks together (vLLM, DeepSpeed, TensorRT-LLM). This carries Python GIL stalls, massive multi-gigabyte dependencies, and severe memory fragmentation.&lt;/p&gt;

&lt;p&gt;I wanted to explore how far we could push runtime efficiency by designing an engine from bare-metal primitives:&lt;/p&gt;

&lt;p&gt;Static Arena Allocator: Instead of dynamic heap allocations during inference, memory is managed via a contiguous arena aligned to 64-byte hardware cache lines (alignas(64)), eliminating GC stalls and latency jitter.&lt;/p&gt;

&lt;p&gt;Virtual Paged Attention: We break the KV-cache into discrete physical pages (similar to OS virtual memory paging), reducing KV-cache VRAM usage by ~60% on long contexts without memory fragmentation.&lt;/p&gt;

&lt;p&gt;Universal 1-Command Converter (velograd-convert): A zero-dependency binary parser that translates between Hugging Face Safetensors, PyTorch checkpoints, and GGUF v3 (for Ollama / llama.cpp) with no external packages.&lt;/p&gt;

&lt;p&gt;PyTorch Drop-in API: Familiar .forward(), .backward(), and autograd syntax with array exchange protocols for NumPy, JAX, and DLPack.&lt;/p&gt;

&lt;p&gt;Try it on local hardware in 30 seconds: You can clone the repository, install it locally, and run our universal test suite in under a second:&lt;/p&gt;

&lt;p&gt;git clone &lt;a href="https://github.com/IDKLETSCODESOMETHIN/VeloGrad.git" rel="noopener noreferrer"&gt;https://github.com/IDKLETSCODESOMETHIN/VeloGrad.git&lt;/a&gt;&lt;br&gt;
 cd VeloGrad pip install -e . python tests/test_velograd_universal_compat.py&lt;/p&gt;

&lt;p&gt;The project is completely open source under AGPLv3: &lt;a href="https://github.com/IDKLETSCODESOMETHIN/VeloGrad" rel="noopener noreferrer"&gt;https://github.com/IDKLETSCODESOMETHIN/VeloGrad&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>machinelearning</category>
      <category>cpp</category>
      <category>rust</category>
    </item>
  </channel>
</rss>
