Skip to content

feat(utils): support arbitrary object gathering on XLA devices (#2858) - #4190

Open
FinalSunFlower wants to merge 1 commit into
huggingface:mainfrom
FinalSunFlower:fix-xla-gather-object-2858
Open

feat(utils): support arbitrary object gathering on XLA devices (#2858)#4190
FinalSunFlower wants to merge 1 commit into
huggingface:mainfrom
FinalSunFlower:fix-xla-gather-object-2858

Conversation

@FinalSunFlower

Copy link
Copy Markdown

Fixes #2858\n\nAdds XLA-compatible arbitrary Python object gathering by serializing payloads to uint8 tensors, exchanging lengths, gathering padded payloads, and restoring objects in rank order. Includes CPU-only virtual collective regression tests for empty lists, nested dictionaries, None values, and variable-length strings.

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.

gather objects in TPU is not supported

1 participant