-
|
At the moment, if you are under a shard_map and have the following abstract eval rule of a primitive: where the goal is to have a value with sharding Because the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
No, this is working as intended. ShapedArray does not read from the mesh context and shardings/mesh need to be passed explicitly to it. In this case, you are setting the vma but not the mesh which is why you are seeing this error because vma without a mesh makes no sense. |
Beta Was this translation helpful? Give feedback.
We use the context mesh in a lot of places. One of the places that's kept explicit is ShapedArray i.e. jax's type. It is important to keep it context free otherwise a lot of things go wrong.