PiPPy icon indicating copy to clipboard operation
PiPPy copied to clipboard

fixed missing argument and refactoring

Open Ankur-singh opened this issue 5 months ago • 2 comments

The split_spec parameter is not being passed to the pipeline function, resulting in the entire model being treated as a single stage. This results in RuntimeError: Pipeline group size 2 cannot be larger than number of stages 1, as the code attempts to call build_stage multiple times with different devices.

Additionally, I have made some cosmetic changes to improve readability. Since this example is directly referenced in the official documentation and will be referred by many users, it is crucial that it works.

Ankur-singh avatar Sep 10 '24 03:09 Ankur-singh