It probably will work okay. I did this when I worked in a UPS sort facility on the 2am to 9am shift. I wasn't training at the time but the work was demanding (working on the "irreg" line: all the heavy, odd sized shit).
I would recommend trying to fit your sleep times to multiples of 90 minutes though. So either 4.5 hours each, or maybe one 3 hour and one 4.5 hour. In my experience you'll feel more rested even with two 3 hour sleeps than you would from two 4 hour sleeps, due to the interrupted sleep cycle at the end of the 4 hour block.