I had a surging problem with my Onan 5000. I removed the air cleaner and used a spray can of Seafoam, I sprayed it into the carburetor intake until it almost stalled.
Then I left it idle a few seconds,and sprayed again. I did that several times and finally sprayed the Seafoam until the generator stalled.
I left it sit several hours (actually overnight).
When I started the generator it ran smooth and continues to run smooth.
Its worth trying and is easier than cleaning/replacing the carburetor.
Sometimes Snake Oil works.. :)