The estimates are between 1% and 5% worldwide depending on the used definition AI/ML and the definition of world energy use (for example global electricity versus global energy).
[1] Integrative design for radical energy efficiency - Amory Lovins https://youtu.be/Na3qhrMHWuY?t=1026
[2] "Energy. Estimated global data centre electricity consumption in 2022 was 240-340 TWh, or around 1-1.3% of global final electricity demand. This excludes energy used for cryptocurrency mining, which was estimated to be around 110 TWh in 2022, accounting for 0.4% of annual global electricity demand."
https://www.iea.org/energy-system/buildings/data-centres-and...
[3] Stanford Seminar - Saving energy and increasing density in information processing using photonics - David B. Miller https://www.youtube.com/watch?v=7hWWyuesmhs