Skip to content

Add MPS regression test for ExactGP to track Apple Silicon backend support#2748

Draft
dascoder wants to merge 3 commits into
cornellius-gp:mainfrom
dascoder:gpytorch-mps-test
Draft

Add MPS regression test for ExactGP to track Apple Silicon backend support#2748
dascoder wants to merge 3 commits into
cornellius-gp:mainfrom
dascoder:gpytorch-mps-test

Conversation

@dascoder
Copy link
Copy Markdown

With the recent fixes coming upstream from PyTorch (specifically the native linalg.cholesky support in PR #172536), Apple Silicon (MPS) is technically capable of running native ExactGP models without triggering math crashes. However, GPyTorch currently lacks a dedicated hardware test to track MPS compatibility.

This PR adds a minimal test_exact_gp_mps regression test to the hardware triad (CPU/CUDA/MPS) to prevent future silent regressions.

Note on Performance Bottlenecks
While this test passes (proving the math is stable on M1/M2 chips), it surfaces a PyTorch-level fallback warning indicating that aten::_cholesky_solve_helper is missing from the Metal backend, causing a silent CPU fallback. I will add proposal to bypass this overhead in Issue #2209

@dascoder dascoder marked this pull request as draft May 2, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant