Repository navigation
fix(backends): drop the stale MPS warning from generate_from_raw - #1740
Merged
planetf1 merged 1 commit intoOct 19, 2026
Merged
Conversation
The SDPA bug behind the warning (pytorch/pytorch#156707) was fixed in torch 2.9.0, released 2025-10-15, and mellea[hf]'s torch floor is 2.10 via granite-switch, so every installation mellea can resolve has carried the fix since before the warning was added. The warning still fired on every raw generation on MPS, linked a PyTorch PR that displays as closed and unmerged, and told users to verify non-empty outputs, which first-token EOS legitimately fails on any device. It was log noise that sent people chasing NaNs that no longer exist. Closes generative-computing#1739 Assisted-by: Pi Signed-off-by: Nigel Jones <[email protected]>
ajbozarth
approved these changes
Oct 16, 2026
Merged
via the queue into
generative-computing:main
with commit Oct 19, 2026
a0a17a0
13 checks passed
1 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Issue
Fixes #1739
Description
Removes the stale MPS warning and its TODO from
LocalHFBackend._generate_from_raw. Eight lines, pure log-statement deletion, no behaviour change.Why:
Full history, reproducer, and the rationale for why non-empty validation stays a caller concern are in #1739.
Testing
No new tests: no test or doc references the warning (searched
test/anddocs/), and the change is a pure deletion. Verified locally: ruff format and lint clean, codespell clean, and an empirical repro on MPS with mellea built from this branch shows the warning gone and batch outputs identical to pre-change runs, including the legitimate empty row. mypy was skipped in the local worktree (no synced env); CI covers it.Attribution
Adding a new component, requirement, sampling strategy, or tool?
If your PR adds or modifies one of the types below, check the matching box. A checklist of type-specific review items will be posted as a comment.