---
title: "Pratyush Ranjan (@pratyushranjan02) | Hashnode"
description: "Sharing interesting engineering stuff. Read the latest articles by Pratyush Ranjan on Hashnode."
url: "https://hashnode.com/@pratyushranjan02"
---

@pratyushranjan02

# Pratyush Ranjan

@pratyushranjan02 · Bengaluru, India · Joined October 2026

Sharing interesting engineering stuff

### [Paged Attention in AI Inference](https://ai-inference-pratyush.hashnode.dev/paged-attention-in-ai-inference?utm_source=hashnode&utm_medium=feed)

Learn how paged attention cuts KV cache waste. Build a mini version in PyTorch and benchmark memory use against a contiguous cache.

9 min read · [ai-inference-pratyush.hashnode.dev](https://ai-inference-pratyush.hashnode.dev/paged-attention-in-ai-inference?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/paged-attention-in-ai-inference/6aeed0a74f4b146adf854c72) [Nov 7](https://hashnode.com/posts/paged-attention-in-ai-inference/6aeed0a74f4b146adf854c72)

### [KV Cache Optimisation in AI Inference](https://ai-inference-pratyush.hashnode.dev/kv-cache-optimisation-in-ai-inference?utm_source=hashnode&utm_medium=feed)

Learn how the KV cache speeds up LLM inference. We build a small GPT in PyTorch and benchmark cached vs uncached generation: a 4.5x speedup.

8 min read · [ai-inference-pratyush.hashnode.dev](https://ai-inference-pratyush.hashnode.dev/kv-cache-optimisation-in-ai-inference?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/kv-cache-optimisation-in-ai-inference/6adf5f5e5bb6fa9a24a51c06) [Oct 26](https://hashnode.com/posts/kv-cache-optimisation-in-ai-inference/6adf5f5e5bb6fa9a24a51c06)
