liveBook · Manning

Virtual machine

As explained in LLMs in Production

A virtual machine is a software-defined computer that runs an operating system and applications in an isolated virtualized environment.

A virtual machine (VM) is a software-defined computer that runs an operating system and applications in an isolated environment. For large-model training, it provides access to powerful multi-GPU hardware without purchasing the physical rigs. section 5.1.1

Using a cloud VM involves practical trade-offs:

  • Renting multi-GPU capacity is usually cheaper than buying equivalent hardware, but hourly charges continue until the environment is stopped. section 5.1.1
  • Google Compute Engine offers a straightforward route to a multi-GPU environment after account, project, billing, and gcloud setup. section 5.1.1
  • Smaller models can run locally or on single-GPU free tiers, while larger models may justify faster, more efficient multi-GPU training. section 5.1.1

Create and remove a training VM

A typical workflow creates a Google Cloud instance with a GPU image, connects over SSH, copies application files, and deletes the instance when finished. The final step prevents unnecessary charges.

How LLMs in Production covers it

How deep it goes
Explains cloud setup, cost control, connection, file transfer, and deletion, but does not detail virtualization internals.
Examples
Uses gcloud commands to create, inspect, connect to, copy files to, and delete a Google Cloud VM.
What it assumes
Assumes cloud-account access and requires a Google Cloud project, billing setup, and installed gcloud CLI.
What you can do after
Operate/configure a GPU-enabled VM through Google Cloud's gcloud CLI and shut it down to control costs.
How it connects
Connects virtual machines with cloud computing, Google Compute Engine, GPUs, and large language model training.

Also explained in

Compare how 16 books explain virtual machine →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of LLMs in Production. The section links point to the parts of the book it draws on.