Does iCloud Drive sync while in sleep or while locked on Mac OS?

I’ve been digging through Google and Apple’s iCloud documentation, and I haven’t been able to find a clear answer on this.

Photos do sync while locked, but I’m more interested how to keep iCloud uploads going while I sleep.