---
id: pr-vllm-20466
repo: vllm-project/vllm
pr: 20466
title: '[Attention] Refactor attention metadata builder interface'
author: LucasWilkinson
date: '2025-07-17'
url: https://github.com/vllm-project/vllm/pull/20466
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 76b494444fd864ffc53a623420668d1865c804b9
inclusion_reason: defer
changed_paths:
- tests/v1/attention/test_attention_backends.py
- tests/v1/attention/utils.py
- tests/v1/spec_decode/test_eagle.py
- vllm/v1/attention/backends/cpu_attn.py
- vllm/v1/attention/backends/flash_attn.py
- vllm/v1/attention/backends/flashinfer.py
- vllm/v1/attention/backends/flex_attention.py
- vllm/v1/attention/backends/mamba_attn.py
- vllm/v1/attention/backends/mla/common.py
- vllm/v1/attention/backends/mla/flashmla.py
- vllm/v1/attention/backends/mla/rocm_aiter_mla.py
- vllm/v1/attention/backends/rocm_aiter_fa.py
- vllm/v1/attention/backends/triton_attn.py
- vllm/v1/attention/backends/utils.py
- vllm/v1/spec_decode/eagle.py
- vllm/v1/spec_decode/utils.py
- vllm/v1/worker/block_table.py
- vllm/v1/worker/gpu_model_runner.py
artifact_dir: evidence/pull-bundles/vllm/gh-20466
head_ref_oid: 0748f22a24d59ca6b1cf338e68dcf3f31fc6dde0
---
# [Attention] Refactor attention metadata builder interface

- Repository: `vllm-project/vllm`
- PR: [20466](https://github.com/vllm-project/vllm/pull/20466)
- Decision: `defer`
- Reason: defer

## Changed Paths

- `tests/v1/attention/test_attention_backends.py`
- `tests/v1/attention/utils.py`
- `tests/v1/spec_decode/test_eagle.py`
- `vllm/v1/attention/backends/cpu_attn.py`
- `vllm/v1/attention/backends/flash_attn.py`
- `vllm/v1/attention/backends/flashinfer.py`
- `vllm/v1/attention/backends/flex_attention.py`
- `vllm/v1/attention/backends/mamba_attn.py`
- `vllm/v1/attention/backends/mla/common.py`
- `vllm/v1/attention/backends/mla/flashmla.py`
- `vllm/v1/attention/backends/mla/rocm_aiter_mla.py`
- `vllm/v1/attention/backends/rocm_aiter_fa.py`
- `vllm/v1/attention/backends/triton_attn.py`
- `vllm/v1/attention/backends/utils.py`
- `vllm/v1/spec_decode/eagle.py`
- `vllm/v1/spec_decode/utils.py`
- `vllm/v1/worker/block_table.py`
- `vllm/v1/worker/gpu_model_runner.py`

## Evidence Bundle

`evidence/pull-bundles/vllm/gh-20466`
