”Deploy an A100, upload my dataset, and start training.”
The agent orchestrates the entire setup:list_gpu_types: confirms A100 80GB availability and its live hourly ratecreate_instance: deploys an instance namedfine-tune-runwith an A100instance_status: polls every 10 seconds until the instance isrunningfile_upload: uploadstrain.pyto/workspace/train.pyfile_upload: uploadsdataset.jsonlto/workspace/dataset.jsonlssh_execute: runspip install torch transformers datasets acceleratessh_execute: runsnohup python /workspace/train.py > /root/train.log 2>&1 &
Deployed fine-tune-run (1x A100 80GB). Uploadedtrain.pyanddataset.jsonl. Training started: check progress with “how’s the training going?"
"How’s the training going? Show me GPU usage and the last few log lines.”
The agent checks two things in parallel:ssh_execute: runsnvidia-smi --query-gpu=utilization.gpu,memory.used,memory.total --format=csv,noheaderssh_execute: runstail -20 /root/train.log
GPU utilization: 97% | Memory: 68,420 / 81,920 MiB (83%)Loss is decreasing steadily. At the current rate, training will finish in ~2.5 hours.
”Training is done. Download the model checkpoint and tear down the instance.”
The agent wraps up the workflow:ssh_execute: runsls -lh /workspace/output/to confirm checkpoint filesfile_download: downloads/workspace/output/adapter_model.safetensorsfile_download: downloads/workspace/output/adapter_config.jsonfile_download: downloads/workspace/output/training_args.jsonbilling_usage: checks total spend for this sessiondelete_instance: terminatesfine-tune-run
Downloaded 3 files (adapter weights, config, training args).
The training run took 4 hours on the A100; billing_usage has the exact charge.
Instance fine-tune-run terminated. Billing stopped.