Skip to content

What is OpShardingSharding? #13705

Discussion options

You must be logged in to vote

Hey, good question!

OpShardingSharding is the base XLACompatibleSharding that every subclass of XLACompatibleSharding eventually lower to inside jax.

The main thing is it consists of an OpSharding. OpSharding is the representation that XLA understands. It is basically documented here: https://cs.opensource.google/tensorflow/tensorflow/+/master:tensorflow/compiler/xla/xla_data.proto;l=715-765?q=xla_data.proto&ss=tensorflow%2Ftensorflow though it may not be very clear on how things work.

To read the OpSharding, you look at the type, tile_assignment_dimensions and tile_assignment_devices. tile_assignment_dimension will tell you how many ways a dimension is sharded or replicated.

If you see s…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@functionstackx
Comment options

@sharadmv
Comment options

@yashk2810
Comment options

Answer selected by functionstackx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants