mirage-project/mirage

[Feature Request] - Performance Improvement for Paged Attention

Open

#428 opened on Jul 27, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Cuda (232 forks)auto 404
good first issuepersistent kernel

Repository metrics

Stars
 (2,381 stars)
PR merge metrics
 (PR metrics pending)

Description

Feature Description

We can further improve the performance of paged attention tasks with the following optimizations:

  • MAX_TOKENS: MAX_TOKENS is used for preallocating smem; however, current implementation sequentially initialize all tokens' metadata. This should be replaced with dynamic initialization

Contributor guide