{
  "id": 21826418,
  "title": "Fine-tuning on rented GPUs: how to lose a host without losing your steps",
  "url": "https://urgent.news/2026/11/25/fine-tuning-on-rented-gpus-how-to-lose-a-host-without-losing-your",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-25T17:35:09.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/andy_white_e5f5d48052c6ab/fine-tuning-on-rented-gpus-how-to-lose-a-host-without-losing-your-steps-476i"
  },
  "original_language": "en",
  "account": "Using rented GPUs for fine-tuning open models can be cost-effective, provided the data remains non-sensitive. The primary challenge lies in the fact that many training scripts assume a stable hardware environment. When a host becomes unavailable, two issues arise: checkpoints stored locally are lost, and the rental service continues to charge for the machine, even if it no longer functions. Here's how I addressed these problems and recorded the results.\n\n1. Separate checkpoint storage: A small script monitors the local checkpoint directory, uploading each completed checkpoint to a cloud storage service. This ensures that checkpoints are retained even if the training process encounters an error or the host disappears. The script uses a temporary key specific to the job, preventing accidental uploads of incomplete checkpoints.\n\n2. Comprehensive cost analysis: In one experiment, a QLoRA 7B model was billed $0.81, primarily due to data transfer costs for downloading the model. By selecting a host with a lower hourly rate that included data transfer charges, the subsequent run cost only $0.19. After six additional runs, the first training step took 4.5 to 8.5 minutes after renting, and these initial minutes are included in the billing. As a general guideline, checkpoints should be made frequently enough that losing a single interval costs less than starting over from scratch.\n\n3. Dealing with host failures: A supervisor script operates outside the GPU machine, monitoring both the instance and the checkpoint agent. If the host becomes unreachable, the supervisor automatically rents a new machine, and the checkpoint agent restores the most recent checkpoint, resuming training. In a test where I intentionally terminated the host twice during a single run, training continued after 3.5 and 13 minutes.\n\n4. Managing hung hosts: If a GPU remains unresponsive for five minutes or fails to make progress for half an hour while the rest of the system remains idle, the training job is automatically reassigned to another machine.\n\n5. Addressing supervisor failures: In the event that the supervisor script becomes unavailable, the checkpoint agent monitors the time since receiving a new storage key from the supervisor. After a predetermined safety period, it halts both the training job and the GPU machine from within. I tested this functionality on Vast.ai, shortening the safety window to a few minutes. When the host was terminated, Vast.ai billed only for the storage used, rather than continuing to charge for the unused GPU time. The safety window in normal circumstances is estimated to be between 2.5 and 3.5 hours; however, I have not conducted tests of that duration.\n\nConsider the hidden costs of utilizing free GPU resources. While it may seem appealing to avoid service fees, the responsibility of setting up, monitoring, and troubleshooting these systems falls on the team members. Developing this infrastructure consumes time and effort, which could be better allocated to other aspects of the project. Alternatively, small services like NomadGPU can handle these tasks for you, with customizable spending limits. Our own tests demonstrate the effectiveness of this approach, with relevant status updates available at status.nomadgpu.com/s/status.",
  "summary": "GPU marketplaces like Vast.ai are a cheap way to fine-tune open models, as long as the data is not confidential: the host can see the machine while your job runs. The harder problem is that training scripts assume the hardware under them stays alive. When a host disappears, two things break: Checkpoints that only exist on the local disk are gone. If the machine hangs instead of dying, the rental…",
  "key_points": [
    "Separate checkpoint storage prevents loss during host failures",
    "Comprehensive cost analysis highlights data transfer impact",
    "Supervisor script automates host replacement and checkpoint restoration"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}