---
id: pr-vllm-27954
repo: vllm-project/vllm
pr: 27954
title: '[CPU] Refactor CPU attention backend'
author: bigPYJ1151
date: '2025-11-12'
url: https://github.com/vllm-project/vllm/pull/27954
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 7f829be7d3d734020606fcca520f3c500581beb8
inclusion_reason: defer
changed_paths:
- .buildkite/release-pipeline.yaml
- .buildkite/scripts/hardware_ci/run-cpu-test.sh
- cmake/cpu_extension.cmake
- csrc/cpu/attention.cpp
- csrc/cpu/cache.cpp
- csrc/cpu/cpu_attn.cpp
- csrc/cpu/cpu_attn_amx.hpp
- csrc/cpu/cpu_attn_impl.hpp
- csrc/cpu/cpu_attn_macros.h
- csrc/cpu/cpu_attn_vec.hpp
- csrc/cpu/cpu_attn_vec16.hpp
- csrc/cpu/cpu_types_x86.hpp
- csrc/cpu/dnnl_helper.cpp
- csrc/cpu/dnnl_helper.h
- csrc/cpu/scratchpad_manager.cpp
- csrc/cpu/scratchpad_manager.h
- csrc/cpu/shm.cpp
- csrc/cpu/torch_bindings.cpp
- docker/Dockerfile.cpu
- docs/getting_started/installation/cpu.md
- tests/kernels/attention/test_attention_selector.py
- tests/kernels/attention/test_cpu_attn.py
- tests/kernels/test_onednn.py
- tests/models/language/generation/test_common.py
- tests/models/language/pooling/test_embedding.py
- tests/models/registry.py
- vllm/_custom_ops.py
- vllm/attention/backends/registry.py
- vllm/engine/arg_utils.py
- vllm/platforms/cpu.py
- vllm/utils/__init__.py
- vllm/v1/attention/backends/cpu_attn.py
- vllm/v1/attention/backends/utils.py
- vllm/v1/worker/cpu_model_runner.py
artifact_dir: evidence/pull-bundles/vllm/gh-27954
head_ref_oid: 3cea64f6f59c12851791ad1293bab6a4c1cd7e00
---
# [CPU] Refactor CPU attention backend

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

## Changed Paths

- `.buildkite/release-pipeline.yaml`
- `.buildkite/scripts/hardware_ci/run-cpu-test.sh`
- `cmake/cpu_extension.cmake`
- `csrc/cpu/attention.cpp`
- `csrc/cpu/cache.cpp`
- `csrc/cpu/cpu_attn.cpp`
- `csrc/cpu/cpu_attn_amx.hpp`
- `csrc/cpu/cpu_attn_impl.hpp`
- `csrc/cpu/cpu_attn_macros.h`
- `csrc/cpu/cpu_attn_vec.hpp`
- `csrc/cpu/cpu_attn_vec16.hpp`
- `csrc/cpu/cpu_types_x86.hpp`
- `csrc/cpu/dnnl_helper.cpp`
- `csrc/cpu/dnnl_helper.h`
- `csrc/cpu/scratchpad_manager.cpp`
- `csrc/cpu/scratchpad_manager.h`
- `csrc/cpu/shm.cpp`
- `csrc/cpu/torch_bindings.cpp`
- `docker/Dockerfile.cpu`
- `docs/getting_started/installation/cpu.md`
- `tests/kernels/attention/test_attention_selector.py`
- `tests/kernels/attention/test_cpu_attn.py`
- `tests/kernels/test_onednn.py`
- `tests/models/language/generation/test_common.py`
- `tests/models/language/pooling/test_embedding.py`
- `tests/models/registry.py`
- `vllm/_custom_ops.py`
- `vllm/attention/backends/registry.py`
- `vllm/engine/arg_utils.py`
- `vllm/platforms/cpu.py`
- `vllm/utils/__init__.py`
- `vllm/v1/attention/backends/cpu_attn.py`
- `vllm/v1/attention/backends/utils.py`
- `vllm/v1/worker/cpu_model_runner.py`

## Evidence Bundle

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