Flyboy1960, the load on the diesel loco engine driving the generator does alter substantially with increasing railway line gradients. Facthunter is correct, when full electrical draw is required from the generator, the diesel engine really loads up and starts barking.
The power draw requirements of the traction motors is only modest on level ground, but it goes up massively on gradients with a loaded train. Get a listen to some of the locomotive videos on YooToob of the big locos pulling freight trains up long gradients in the U.S. with a full consist or rake, those big V16's are really barking.
I used to work on a minesite in the mid-1970's where the mine winder was run by a 1000KVA genset run by a big 1600HP V16 Dorman engine. When the winder driver starting pulling up a full skip of ore, that big old V16 would pull down and bark under maximum load, like nothing I've heard before or since. When the skip stopped at the ore bin on the surface, you could hear the big Dorman ease off in load substantially.
Generator output load can be huge, it will pull engines right down. I had a number of minesite camp generators, they were 15KVA single phase Dunlites powered by 3 cyl Ruston diesels.
One day we got a dead short in the main power cable of one genset, and current fed back into the generator. The electrical short pulled that Ruston, running at 1500RPM, down to a dead stop, in about 3-4 seconds!
I wouldn't have believed a shorted generator could provide such a massive braking effect, until I heard it with my own ears.