A multi-GPU environment provides several graphics processors for machine-learning work that exceeds one GPU’s memory or would take too long to train. Large language models often need many more GPUs for training than inference, making cloud access a practical alternative to buying specialized hardware. section 5.1
Use a multi-GPU environment when:
- The largest models do not fit on a single GPU. section 5.1
- Parallel training speed matters more than local convenience. section 5.1 section 5.5
- You can control hourly costs by shutting down or deleting unused environments. section 5.1.1
- A smaller model is sufficient for experimentation, since single-GPU services or local hardware may be cheaper. section 5.1.1
Google Compute Engine setup
A practical route is to create a Google Cloud account and project, configure billing, install the gcloud CLI, and create a GPU-backed VM. A typical workflow initializes gcloud, creates an instance with a selected GPU machine type and boot disk, connects through SSH, copies requirements or application files, and deletes the instance when finished. section 5.1.1
