But definitely Bolsheviks - the revolution happened largely because of the Czar's military failure against Germany.
Or if you prefer, it happened because of the Kaiser’s military success against Russia.
After the German military success, they were able to put in a government that was well disposed to German interests, and that was the Bolsheviks.