The basic trade off is well-known. If you use an online VM like Google's Colab or Amazon's EC2 instances, you don't need hardware, but the cost of running the VMs will get expensive later. If you self-host, you need to buy some dedicated hardware, most likely a graphics card.
TLDR: