Skip to content

Fix for #2674 - Corrected sizes for alpha in RQKernel when using Deep GPs#2677

Merged
kayween merged 16 commits intocornellius-gp:mainfrom
mrlj-hash:main
Nov 25, 2025
Merged

Fix for #2674 - Corrected sizes for alpha in RQKernel when using Deep GPs#2677
kayween merged 16 commits intocornellius-gp:mainfrom
mrlj-hash:main

Conversation

@mrlj-hash
Copy link
Contributor

@mrlj-hash mrlj-hash commented Nov 9, 2025

When using the RQKernel for Deep GPs, a shape mismatch as described in #2674 occurs. This was identified to be a consequence of unsqueezing the alpha parameter one extra time in a for loop. The fix, ensuring consistent behaviour in deep GPs and other model families, is to unsqueeze alpha manually and conditionally based on flags diag and last_dim_is_batch.

@kayween kayween self-assigned this Nov 13, 2025
@kayween kayween self-requested a review November 13, 2025 21:30
Copy link
Collaborator

@kayween kayween left a comment

Choose a reason for hiding this comment

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

Hi @mrlj-hash, thank you for the PR! I left some comments. Can you also update the PR description to include a brief summary (e.g., what was the bug and how it's fixed).

mrlj-hash and others added 4 commits November 16, 2025 09:53
Implement manual conditional unsqueezing of alpha

Co-authored-by: Kaiwen Wu <37524685+kayween@users.noreply.github.com>
Need last_dim_is_batch parameter to do the conditional unsqueezing of alpha
@kayween
Copy link
Collaborator

kayween commented Nov 16, 2025

@mrlj-hash It's recommended to install a linter locally (e.g., flake8) or a pre-commit hook aid your development, see CONTRIBUTING.md. (That way those minor lint errors in the github workflow can be fixed more easily.)

@kayween
Copy link
Collaborator

kayween commented Nov 22, 2025

@gpleiss This PR is in good shape now. Do you want to give it a stamp before I merge it? We'll probably need to do a squash merge as there are many small commits in the PR.

@kayween kayween merged commit 60be953 into cornellius-gp:main Nov 25, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Rational Quadratic Kernel with Deep GPs - crashes due to shape mismatch

3 participants