← Questions

Data-parallel and fully sharded matrix multiply over simulated devices

0
SpaceXAICodingLast asked Apr 2026

Simulated devices can only exchange tensors through send and receive calls. Finish a data-parallel matrix multiply, then implement a fully sharded version where each device holds only a slice of the weights and gathers what it needs, and reason about the communication each one costs.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding