/ The Arena
Prove your engineering skills.
GLOBAL+50 XP
PagedAttention Virtual Memory Block Allocator & Page Table
Problem Overview
In modern LLM serving engines like vLLM, memory fragmentation is eliminated by managing the Key-Value (KV) Cache as a virtual memory paging system.
In this landmark capstone, you will implement a complete PagedAttention Virtual Memory Block Allocator that handles:
- Block Table Allocation: Mapping logical sequence token blocks to non-contiguous physical GPU VRAM blocks.
- Dynamic Token Appending: Automatically allocating new physical pages when sequence boundaries are crossed.
- Copy-on-Write (CoW): Forking sequences with shared physical pages and duplicating pages only on mutation.
- Sequence Deallocation: Returning freed physical blocks back to the free pool with reference counting.
Join The Arena
Create an account to submit your implementation, test against our containerized CI suite, and climb the global leaderboard.
Create AccountALREADY HAVE AN ACCOUNT? LOG IN