What a GPU adds
A GPU adds compute for model inference, training and rendering. A sandbox without a GPU runs these tasks on its CPU. The GPU has its own memory, called VRAM.
VRAM limits the model size
The size of GPU memory sets the size of the models that the GPU can run. Each parameter in FP16 takes 2 bytes. A model with 7 billion parameters needs about 14 GB for its weights in FP16. Check the VRAM of each GPU model before you choose one.
How providers price a GPU
Some providers list a price for each GPU model, per GPU-hour. Others list a starting price or no price. Check whether the price includes the CPU and memory of the sandbox. For CPU and memory prices, see vCPU-hour.
GPU access in a virtual machine
A full VM gets a GPU when the host assigns the GPU device to it. This method is called VFIO passthrough. Cloud Hypervisor assigns PCI devices, such as a GPU, to its guests. The host needs an IOMMU, which keeps the device away from other memory. Devices in one IOMMU group, such as a GPU and its audio function, must pass through together.