ROCm / ROCm/AMDMIGraphX

PagedAttention support in MIGraphX

Open
#3,588 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Under Investigation
Dominant language
C++
Stars
333
Forks
150
Avg merge
4d 19h
Merged PRs (30d)
54

Description

The MLPERF team is interested in MIGraphX for LLama2 inference.
Currently we're using vLLM for LLama2 ineference which uses PagedAttention(PA) and continuous batching to achieve better performance than the current static batcher implementations (HuggingFace Optimum, TensorRT). However vLLM is written in python and that is an overhead for us. We would like to use a lower level API and MIGraphX could satisfy that requirement.
We're aware that the MIGraphX team is currently working enabling LLama2 with GQA with a quantized model.
We would like to know, if there are any plans to implement PA, or the current GQA support should be comparable with that in terms of performance?
Does PA would fit in the MIGraphX feature set? If yes, can someone give an estimat how big of a work would be adding PA to the project? Are there any blockers regarding implementing PA?

We could use this issue to discuss the possibility of PA in MIGraphX and track the different opinions/ideas.
cc @causten @TedThemistokleous @pfultz2 @turneram @attila-dusnoki-htec @ototh-htec

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reviewing MIGraphX's existing Llama2 GQA support and the linked PagedAttention paper, then compare the requested continuous-batching approach with current capabilities. Done means an agreed implementation scope, identified blockers, and a tracked PagedAttention plan.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
machine-learning, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.