Skip to content

[xpu] Fix LSTM oneDNN Integration - #187560

Merged
atalman merged 1 commit into
release/2.13from
cherry-pick-187334-by-pytorch_bot_bot_
Jun 25, 2026
Merged

atalman merged 1 commit into
release/2.13from
cherry-pick-187334-by-pytorch_bot_bot_

Conversation

@pytorchbot

Copy link
Copy Markdown
Collaborator
  1. onednn LSTM on XPU does not support bf16 on bias and cell state
  2. add deterministic attribute

cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @aditew01

1. onednn LSTM on XPU does not support bf16 on bias and cell state
2. add deterministic attribute

Pull Request resolved: #187334
Approved by: https://github.com/EikanWang, https://github.com/atalman

(cherry picked from commit 691e8b6)
@pytorch-bot

pytorch-bot Bot commented Jun 17, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/187560

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 4b4e95e with merge base 636bc91 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the module: cpu CPU specific problem (e.g., perf, algorithm) label Jun 17, 2026
@pytorch-bot

pytorch-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@malfet malfet added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Jun 17, 2026
malfet
malfet previously requested changes Jun 17, 2026

@malfet malfet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a regression? Or just a bugfix

@EikanWang

Copy link
Copy Markdown
Collaborator

@malfet , it is a regression - XPU has supported BF16 LSTM for years. However, a later optimization broke this functionality and introduced a regression. This PR fixes that regression.

@atalman atalman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@EikanWang

Copy link
Copy Markdown
Collaborator

@malfet , may I know if we have addressed your comments? It seems like the pr cannot get landed if reviewers request changes.

@EikanWang
EikanWang requested a review from malfet June 22, 2026 01:19
@malfet

malfet commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

, it is a regression - XPU has supported BF16 LSTM for years. However, a later optimization broke this functionality and introduced a regression. This PR fixes that regression.

Sorry, which later PR? Entire XPU RNN support was introduced in #185531 and aten/src/ATen/native/mkldnn/xpu/RNN.cpp doesn't even exist in release/2.12, so how can it be a regression?

@EikanWang

EikanWang commented Jun 23, 2026 •

Copy link
Copy Markdown
Collaborator

@malfet , #185531 is a performance optimization for XPU LSTM, but not a feature enabling. From the feature perspective, LSTM is the feature, but not #185531. The regression means breaking the XPU LSTM feature. For the XPU LSTM feature, support had already been enabled several releases ago.

@malfet
malfet dismissed their stale review June 23, 2026 13:59

Not sure those regression statements

@malfet

malfet commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

@EikanWang I'm withdrawing my request for changes. If @atalman thinks it's a regression, it must be one

@atalman
atalman merged commit 07c4675 into release/2.13 Jun 25, 2026
129 checks passed
@github-actions
github-actions Bot deleted the cherry-pick-187334-by-pytorch_bot_bot_ branch July 26, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: cpu CPU specific problem (e.g., perf, algorithm) open source triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants