Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate ragged paged attn to pytorch/xla #8692

Merged
merged 8 commits into from
Feb 12, 2025

Conversation

bythew3i
Copy link
Contributor

@bythew3i bythew3i commented Feb 9, 2025

Note: the jax checkify in ragged paged attention kernel will insert several scalar refs to both inputs (end of prefetch) and outputs (begining of the original output). This affects how we re-construct xla.tpu_custom_call in with payload as we need take those scalars into account.

Tested:

python test/test_pallas.py -v -k PallasTest.test_ragged_paged_attention_wrapper

test/test_pallas.py Outdated Show resolved Hide resolved
test/test_pallas.py Outdated Show resolved Hide resolved
@vanbasten23
Copy link
Collaborator

LGTM. This is great. Thanks @bythew3i

@vanbasten23 vanbasten23 merged commit 06e1b59 into pytorch:master Feb 12, 2025
12 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.

3 participants