Generalizing somewhat but focusing on a single company:
https://www.statista.com/statistics/788540/energy-consumptio...
In 2022, Google consumed 22.3G Watt-Hours of energy.
Total electricity consumption by humanity:
https://www.statista.com/statistics/280704/world-power-consu...
In 2022, it was 26T Watt-Hours.
Now, Google is a single company, and if we extrapolate with some cocktail-napkin math, let's say that similar tech giants put together consume, say, 20x Google? 50x Google? So between 2% and 6% of all human electricity consumption.
I realize that's not broken down for AI, but I'm sure if we do break it down we'll find that's an increasing fraction. In this article:
https://cse.engin.umich.edu/stories/power-hungry-ai-research...
the quoted figure is 2% of US electricity usage.