---
title: "Arpit Singh Gautam (@arpitsinghgautam) | Hashnode"
description: "I work on efficiency × reliability for foundation models, mostly quantization and what it quietly breaks"
url: "https://hashnode.com/@arpitsinghgautam"
---

@arpitsinghgautam

# Arpit Singh Gautam

@arpitsinghgautam · Joined June 2026

I work on efficiency × reliability for foundation models, mostly quantization and what it quietly breaks

[Website](https://arpitsinghgautam.me/)

## Comments

[On the cost split: the check is a handful of integer compares per 16-byte group, so on an aligned interior block it is pure overhead in front of the vector load, a few ALU ops hidden under the memory latency; on a masked tail the affected groups drop to per-lane predicated scalar. I have not broken that into a clean fast-path-versus-fallback microbenchmark, and you are right that a shape-distribution sweep is the honest way to show it. The one data point I can offer in that direction: the softmax and layernorm examples deliberately use non-power-of-two row lengths (2500 and 1500), so every row carries a masked tail rather than a single tail block for the whole launch, and they still sit at the memory-bandwidth ceiling next to Triton. So at least for bandwidth-bound kernels the fallback stays hidden behind the DRAM access even when it fires on every row. Isolating the two paths across a spread of awkward shapes is a good addition and something I would like to run properly.](https://hashnode.com/posts/rebuilding-triton-and-helion-from-scratch-in-4-000-lines-of-python/6a64c750477895606cb241a9/comment/6a65398c5c4894b6074618ea#reply-6a6a40484b86aec8a650a78b)

Reply · Article · Jul 29 · 1 · [Rebuilding Triton and Helion from Scratch in 4,000 Lines of Python](https://hashnode.com/posts/rebuilding-triton-and-helion-from-scratch-in-4-000-lines-of-python/6a64c750477895606cb241a9)

[Thanks Ahmet, good questions, and you have the divergence point right. On an interior block the branch is effectively warp-uniform: the offset stride comes from the same arange expression for every lane, and the alignment term reduces to "is the base pointer 16-byte aligned," which is the same across the warp, so the only per-lane term is "are all lanes in this group unmasked." In the interior that is trivially true, every thread takes the vector path, and there is no divergence. Even a misaligned base fails uniformly, so all lanes take the scalar path together. The only place lanes can actually disagree is the boundary block where the mask goes ragged, so divergence is confined to that one block per launch (or the tail of each row, for a row kernel), and the fallback is predicated rather than branchy, so it does not cascade.](https://hashnode.com/posts/rebuilding-triton-and-helion-from-scratch-in-4-000-lines-of-python/6a64c750477895606cb241a9/comment/6a65398c5c4894b6074618ea#reply-6a6a40334b86aec8a650a658)

Reply · Article · Jul 29 · 1 · [Rebuilding Triton and Helion from Scratch in 4,000 Lines of Python](https://hashnode.com/posts/rebuilding-triton-and-helion-from-scratch-in-4-000-lines-of-python/6a64c750477895606cb241a9)
