Skip to content

Transfer serving computation result to binary backend upfront - #282

Merged
jonatanklosko merged 1 commit into
mainfrom
jk-binary-backend
Nov 14, 2023
Merged

Transfer serving computation result to binary backend upfront#282
jonatanklosko merged 1 commit into
mainfrom
jk-binary-backend

Conversation

@jonatanklosko

Copy link
Copy Markdown
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.

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.

2 participants