Deploy and Train ML Models on GPU
A trained model checkpoint is downloaded to the local machine, and the temporary GPU instance is terminated to stop billing.
How it works
The agent first checks GPU availability and pricing using list_gpu_types, then provisions a specific GPU instance (e.g., A100) via create_instance. It waits for the instance to be running using instance_status. Next, it uploads training scripts and datasets using file_upload. The agent executes dependency installation and starts the training process via ssh_execute. It monitors progress by polling GPU usage and log files. Once training completes, it downloads the model artifacts using file_download, verifies the session cost with billing_usage, and finally terminates the instance with delete_instance to clean up resources.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Deploy an A100, upload my dataset, and start training. Monitor the progress and let me know when it's done. Then download the model checkpoint and tear down the instance.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
Use MCP tools to deploy a GPU, upload training data, run training, monitor progress, download results, and tear down: all through conversation.Deploy and Train Models with AI Agents - Runcrate