Better HN
topnewbestaskshowjobs
Log inSign up

shreyansh26

11 karma · joined Aug 18, 2017 (9y ago) · 29 submissions

Submissions

comment 9mo ago · link · parent

What’s covered:

1. Hierarchical scans: block-local scan → write block totals → scan totals → carry-in add 2. Single-pass scans: the "domino" idea, and why naive inter-block propagation can stall / deadlock without the right coordination 3. Decoupled lookbacks: how modern single-pass scans coordinate across blocks safely 4. Warp-window lookback optimization: scanning lookback metadata in warp-sized chunks (and why it helps)

I also include H100 timings and compare against CUB for context.

comment 10mo ago · link · parent

A short deep-dive on Multi-Head Latent Attention (MLA) (from DeepSeek): intuition + math, then a walk from MHA → GQA → MQA → MLA, with PyTorch code and the fusion/absorption optimizations for KV-cache efficiency.

3.

Understanding Multi-Head Latent Attention (From DeepSeek)(shreyansh26.github.io ↗)

2 points · by shreyansh26 · 10mo ago · 1 comment

4.

Deriving the gradient for the backward pass of Layer Normalization(shreyansh26.github.io ↗)

3 points · by shreyansh26 · 1y ago · discuss

5.

GTC'25 Notes: CUDA Techniques to Maximize Memory Bandwidth – Part 1(shreyansh26.github.io ↗)

1 points · by shreyansh26 · 1y ago · discuss

comment 3y ago · link · parent

A simplified implementation of FlashAttention in PyTorch for educational purpose.

7.

FlashAttention in PyTorch(github.com ↗)

2 points · by shreyansh26 · 3y ago · 1 comment

comment 3y ago · link · parent

Haha, so all one has to do is to add some fancy terms like LLMs, vectors, hyper-fast and 300+ Github stars. What a a joke lol!

9.

Understanding FlashAttention(shreyansh26.github.io ↗)

2 points · by shreyansh26 · 3y ago · discuss

comment 3y ago · link · parent

OpenAI is actually the one which has made AI so open and accessible for all. Perhaps not open source but all the developers building cool AI products these days are mostly due to OpenAI.

comment 4y ago · link · parent

That's helpful. Thanks!

12.

Ask HN: What are some good resources on Recommender Systems?

14 points · by shreyansh26 · 4y ago · 3 comments

comment 4y ago · link · parent

Reproduced on Edge on Windows 11 as well. What a bug! Really need to know the root cause of this.

comment 4y ago · link · parent

Someone post something about astronomy also please!