DeepSpeed
                                
                                 DeepSpeed copied to clipboard
                                
                                    DeepSpeed copied to clipboard
                            
                            
                            
                        Pydantic v2 migration
Pydantic v2 has been out for some time now. We have been relying on using the v1 API available in v2 until now. This is a refresh of #3902 to bring proper v2 support to DeepSpeed.
Corresponding DeepSpeed-MII PR here.
@loadams
Do you want to do what we did on the previous pydantic update of updating the nv-mii test to use your branch rather than main so that it passes here?
CI with microsoft/DeepSpeed-MII#423 for nv-a6000 and nv-mii
CI with changes updated on both DS and DS-MII for nv-a6000 and nv-mii
Using Albumentation, the last version has a strict dependancy regarding pydantic >2.0 what makes it incompatible with deepspeed.
https://github.com/albumentations-team/albumentations/releases/tag/1.4.4
https://github.com/albumentations-team/albumentations/blob/a22a319b2e7079389326e5b7830e71017701b1b9/setup.py#L11
It makes this PR even more releavant.
Tested in #6382.
Tested here
https://github.com/microsoft/DeepSpeed/actions/runs/10512334326 https://github.com/microsoft/DeepSpeed/actions/runs/10512339060