Skip to content

Conversation

@copybara-service
Copy link

Distribute replication factor shardings more flexibly instead of their common prefixes.

Only for cases that replicative factors are in all non-scalar tensors, for the moment.

It may still produce suboptimal shardings for cases that some replicative factors are in all non-scalar tensors, and some are not. That is secondary because, this change still improves shardings for those cases, and those cases are not common among non-custom ops and sharding rules, for example, the replicative factor is only one one tensor, and the replicative factors for sort and concatenate are on all tensors.

@copybara-service copybara-service bot force-pushed the test_861661684 branch 2 times, most recently from ebda914 to 08d93bd Compare January 29, 2026 10:49
…r common prefixes.

Only for cases that replicative factors are in all non-scalar tensors, for the moment.

It may still produce suboptimal shardings for cases that some replicative factors are in all non-scalar tensors, and some are not. That is secondary because, this change still improves shardings for those cases, and those cases are not common among non-custom ops and sharding rules, for example, the replicative factor is only one one tensor, and the replicative factors for sort and concatenate are on all tensors.

PiperOrigin-RevId: 862669962
@copybara-service copybara-service bot merged commit 3ea912e into main Jan 29, 2026
@copybara-service copybara-service bot deleted the test_861661684 branch January 29, 2026 12:13
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.

1 participant