Unmanaged gradient accumulation: ZeRO stage 3 support (#8217)