run_script
Run a Python script on a Drive-mounted GPU VM with automatic checkpointing and Drive synchronization. Restores prior files, uploads your script, and stops the VM after completion.
Instructions
Run a local Python script on the active, Drive-mounted GPU VM.
Restores previous files, uploads the script (or an explicitly selected source directory), periodically checkpoints, flushes Drive on completion, then stops by default. Script may invoke nvcc and other tools. Only workspace files are saved, not RAM or credentials. Google may still terminate the VM; completed snapshots are recoverable. Can be long-running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | default | |
| arguments | No | ||
| stop_after | No | ||
| script_path | Yes | ||
| source_directory | No | ||
| checkpoint_seconds | No |