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

Transfer serving computation result to binary backend upfront #282

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

jonatanklosko
Copy link
Member

See elixir-nx/xla#58 (comment).

When the serving is partitioned and the user passes inputs exceeding the batch size, it we may need to concatenate computation results from multiple devices, which fails. Since we generally transfer to Nx.BinaryBackend in post-processing whenever we need to slice the result, we decided to just transfer it upfront in the serving function, which also solves the concatenate case.

@jonatanklosko jonatanklosko merged commit 4e0e178 into main Nov 14, 2023
2 checks passed
@jonatanklosko jonatanklosko deleted the jk-binary-backend branch November 14, 2023 10:59
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.

None yet

2 participants