You forget that Germans were allies of Soviet Union in the beginning.
What? No. Is this more Molotov–Ribbentrop Pact nonsene? If the USSR and Germany were allies because of a non-aggression pact, then so were many other Allied states allies of Germany. The USSR signed that pact to buy itself time to build up their war capacity, knowing that Germany was likely to eventually try to invade. The Nazis came to power as virulent anticommunists, as fascists always are, because fascist movements are always funded by the capitalist class.
To characterize a communist state and an anticommunist state as “allies” is absurd. Two states can’t be more at odds with each other than that.
That all ended before or just as the Nazis seized control the German state. So no, they didn’t train Nazis, because the military wasn’t a Nazi one yet.