Hi Assistant, write me prototype code for UNet model, with 4 layers of encoder (feature…
Jump to turn (7)
- 1Hi Assistant, write me prototype code for UNet model, with 4 layers of encoder (
- 2Can you also write a pipeline parallelism wrapper for UNet?
- 3yes, unet has skip connections so it cannot be written with a Sequential module
- 4Provide me an implementation of PipeRpcWrapper.
- 5How can you implement custom pipeline parallelism, without using official pytorc
- 6Can you do async forward implementation with this? Or, what will be the recommen
- 7Give me an example on how to achieve this with Pipe
- User
Hi Assistant, write me prototype code for UNet model, with 4 layers of encoder (feature extraction), and 3 decoder (the 4th of the encoder is in the middle) in pytorch. The arguments of the network will be in channels (default to 3) and list of integers representing gpu devices. The model should implement model parallelism and pipeline parallelism, and this is difficult due to skip connections. Can you do that? Use simple encoder layers, for simplicity. The main focus is the model / pipeline parallelism across 4 gpus.
- Assistant