---
id: pr-pytorch-164364
repo: pytorch/pytorch
pr: 164364
title: '[SDPA] [MPS] Fixes regression in 2.8.0 for scaled_dot_product_attention using mps'
author: pytorchbot
date: '2025-10-01'
url: https://github.com/pytorch/pytorch/pull/164364
source_category: upstream-code
architectures:
- sm100
tags:
- attention
techniques: []
hardware_features: []
kernel_types:
- attention
languages:
- python
captured_at: '2026-04-17'
status: merged
merge_sha: a5feacb14b9fed678fa8922c6edfb85a9d11f5df
inclusion_reason: kernel file changes
changed_paths:
- aten/src/ATen/native/mps/kernels/Attention.metal
- aten/src/ATen/native/mps/operations/Attention.mm
- test/test_mps.py
head_ref_oid: 145aeb189a4edfa7e0bd4d74bf59248a1adb3534
artifact_dir: evidence/pull-bundles/pytorch/gh-164364
---
# [SDPA] [MPS] Fixes regression in 2.8.0 for scaled_dot_product_attention using mps

- Repository: `pytorch/pytorch`
- PR: [164364](https://github.com/pytorch/pytorch/pull/164364)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `aten/src/ATen/native/mps/kernels/Attention.metal`
- `aten/src/ATen/native/mps/operations/Attention.mm`
- `test/test_mps.py`

## Evidence Bundle

`evidence/pull-bundles/pytorch/gh-164364`
