well even a raspberry pi would be enough, except for ML
depending on what exactly in ML, and what our the sizes of datasets involved?, like i did some work, but for me 8 GiB RAM was enough, but if you want to do larger databases, you would need somewhat good GPU (essentially large matrix multipliers) with plenty of VRAM