WelditU has a chart that shows the ideal generator size range for different welder amperages.
For a 140-amp welder, a generator between 4,500 and 6,500 watts is the most optimal.
As you can see on the chart, there is a positive correlation between the welder’s amperage and the size of the generator.