Cheap GPU Runs for Side Projects: What They Cost
A GPU hour has no single price. On the same L4 card, the lab's one-hour run (4-minute start-up, no failures) costs USD 0.47 on RunPod Community and USD 0.85 on Hugging Face Jobs, with Compute Engine on demand and RunPod Secure between them. Spot is cheaper still, until a run is long enough for one preemption to throw away hours of work. The post compares Kaggle notebooks, Hugging Face Jobs, RunPod pods and Compute Engine, on demand and Spot.
I run side-project GPU work on Kaggle, Hugging Face Jobs and RunPod, and I built Jobwatch, a VS Code extension (MIT licence) that shows Hugging Face Jobs status and spend. Prices and limits are from the providers' own pages, read on 5 December 2026. Costs and risks come from a small model in the lab, set out below.
In short
- For the same L4 GPU, listed hourly prices run from USD 0.42 (Compute Engine Spot) to USD 0.80 (Hugging Face Jobs). On a one-hour run with a 4-minute start-up and no failures the lab's costs are USD 0.45 to USD 0.85, in the same order.
- Per-minute billing adds up to a minute to every run: 33% on a 90-second run, under 2% on a one-hour run. Hugging Face Jobs bills by the minute, RunPod per second, Compute Engine per second after a one-minute minimum.
- Spot without checkpoints costs more than on demand once runs are long. For a Compute Engine L4 at 60% of the on-demand price, the break-even is 0.90 preemptions per hour for a 1-hour run and 0.12 for an 8-hour run. With a checkpoint every 15 minutes it is 2.5 per hour for the 8-hour run.
- A free quota wins on cost whenever the work fits it and loses on calendar time when it does not. With my Kaggle quota of 30 GPU hours a week, ten 6-hour runs take 2.0 weeks, against USD 26.69 on RunPod Community.
- Short runs are mostly start-up. A pod run of mine took 7 minutes for 178 seconds of training, on an A40, and cost about USD 0.07.
- Each platform fails differently: a 30-minute default timeout, a zero-balance error, a preemption, a deleted notebook that still holds its slot.
The platforms in one table
| Kaggle | HF Jobs | RunPod | GCE on demand | GCE Spot | |
|---|---|---|---|---|---|
| Billing | Free | Per minute2 | Per second | Per second5 | Per second5, 6 |
| Free quota | 30 h a week1 | None | None | None | None |
| Time limit | 12 h (TPU 9 h) | 30 min3 | None listed | None | None |
| Payment | None | Credit | Prepaid4 | Monthly bill | Monthly bill |
| Taken away | No; may queue | No | No | No | Yes7 |
1 GPU hours, on my account, shown in account settings; Colab Pro and Pro+ add 15 and 30 hours. 2 Billed while Starting or Running. 3 Default timeout, settable, for example timeout="2h"; a failing job is suspended. 4 HTTP 402 at a zero balance. 5 After a one-minute minimum. 6 No charge if preempted in the first minute. 7 At any time, with 0 s (default) or 120 s notice and no SLA. GCE is Compute Engine.
Kaggle's Notebooks documentation (a script-rendered page, read on 5 December 2026) says each session gets "12 hours execution time for CPU and GPU notebook sessions and 9 hours for TPU notebook sessions". The GPU options are "1 Nvidia Tesla P100 GPU" or "2 Nvidia Tesla T4 GPUs", each with 4 CPU cores and 29 GB of RAM. It warns: "Free GPU availability is limited: in busy times, you might be placed in a queue." Colab Pro and Pro+ users get 15 and 30 extra GPU hours per week (an experimental promotion). The base weekly quota is not on the docs page; account settings show it, and mine shows 30 GPU hours, which the lab uses.
Hugging Face Jobs bills while a job is Starting as well as Running, so start-up is paid for. Compute Engine Spot VMs have no maximum runtime unless you set one, but carry no SLA and can be preempted at any time.
Price per GPU hour
Hourly prices compare only for the same GPU. Two GPUs appear on every paid platform here: the L4 (24 GB) and the A100 (80 GB).
| GPU (USD per hour) | HF Jobs | RunPod Secure | RunPod Community | GCE on demand | GCE Spot |
|---|---|---|---|---|---|
| L4 24 GB | 0.80 | 0.69 | 0.44 | 0.7068 | 0.4230 |
| A100 80 GB (RunPod PCIe) | 2.50 | 2.09 | 1.19 | 5.0688 | 3.0411 |
Compute Engine prices are for the smallest single-GPU VM, so they include its vCPUs and memory (4 vCPUs and 16 GiB for the L4; 12 vCPUs and 170 GB for the A100). Disks and network are extra. The page showed its default region, which lists Iowa (us-central1) first; not confirmed. RunPod lists Secure Cloud and Community Cloud separately and says its pods are not spot or preemptible.
For the L4 the order from cheapest to dearest is Compute Engine Spot, RunPod Community, RunPod Secure, Compute Engine on demand, Hugging Face Jobs. For the A100, Compute Engine Spot (USD 3.04) costs more than Hugging Face Jobs on demand (USD 2.50). Google's Spot price for the T4, USD 0.21 per hour, covers the GPU alone and cannot be compared with a full VM price.
The model behind the numbers
The lab prices every run under five assumptions, which later sections refer back to.
- Failures and preemptions arrive as a Poisson process with constant rate λ per hour. Every platform has a failure rate f. Spot adds a preemption rate p, so λ = f + p there.
- A restart costs a fixed start-up u. The first start-up is paid once on top of this, and preemptions are assumed not to strike during a start-up.
- A failure loses the work since the last checkpoint, or the whole run without checkpoints. A checkpoint every c hours takes δ hours to write.
- The instance is billed from first start to finish, restarts included. Each platform's rounding rule is applied once to the total.
- Prices are list prices for one GPU. Discounts, storage and egress are not modelled.
The inputs are w hours of work per run, and u, c and δ in hours. The lab uses u = 4 min, f = 0.02 per hour, p = 0.25 per hour and δ = 0.5 min. These are inputs, not platform figures; the sections below show how results move when they change. A segment of s hours must finish without a failure, and its expected time is:
E[segment] = (eλs − 1) · (1/λ + u) hours; s and u in hours, λ per hour
The expected billed time of a run is T = u + the sum of E over its segments. Without checkpoints there is one segment of length w, so T grows exponentially with w. With checkpoints there are w / c segments of length c + δ.
Billing: per second or per minute
A run of d seconds is charged for a rounded duration. Per second charges d. Per minute charges 60 × ⌈d / 60⌉; Hugging Face's page says Jobs are "computed by the minute" and does not say whether a part minute is rounded up, so the lab assumes it is. Compute Engine charges at least 60 seconds, then one-second steps.
overhead(d) = charged seconds / d − 1 ≤ 59 / d for per-minute billing, d in seconds
Hugging Face's example agrees: 10 billable minutes on a10g-small (USD 1.00 per hour) is USD 0.17. Rounding matters for short runs, and a job that fails within 30 seconds still pays a full minute under either rule.
| Run length | Per second: extra charge | Per minute: extra charge | One-minute minimum: extra charge |
|---|---|---|---|
| 30 s | 0% | 100% | 100% |
| 60 s | 0% | 0% | 0% |
| 90 s | 0% | 33.3% | 0% |
| 178 s | 0% | 1.1% | 0% |
| 300 s | 0% | 0% | 0% |
| 600 s | 0% | 0% | 0% |
| 1800 s | 0% | 0% | 0% |
| 3600 s | 0% | 0% | 0% |
Start-up is the cost of short runs
In November 2026 I moved my open-source FinTFM GPU kernels from Hugging Face Jobs to RunPod. The same credit-card default dataset kernel scored 0.216133157 on a RunPod A40 against 0.216132693 on a Hugging Face T4: about 2e-6 relative, not bit-identical. Training took 178 s on the A40 and 309 s on the T4. The whole pod run took 7 minutes and cost about USD 0.07, at USD 0.59 per hour (A40 Secure).
I found no published start-up time, so the lab assumes 4 minutes, to match this run. A 178-second job is then billed for about 7 minutes, and the start-up is 57% of the bill:
billed time ≈ start-up + work = 4 min + 2.97 min ≈ 7 min start-up share = 4 / 6.97 ≈ 57%
The second bar takes my measured T4 training time of 309 s and assumes the same 242 s of other time. Per-minute rounding adds 49 s, about 9%, giving USD 0.067 on t4-small against USD 0.069 for the pod. On the L4 the 178-second job costs USD 0.093 on Hugging Face l4x1 and USD 0.080 on RunPod L4 Secure. Batching short jobs into one session pays the start-up once.
Spot, preemption and checkpoints
Spot is cheap because the provider can take the VM back. Compute Engine's preemption notice is 0 seconds (the default) or 120 seconds; it recommends 120 for workloads that need more than 30 seconds to handle preemption.
Figure 3 varies the run length on the L4. Without checkpoints, Spot matches RunPod Community up to about 15 minutes and beats Compute Engine and RunPod Secure on demand until between 3 and 4 hours. It then crosses them and leaves the chart above 6 hours. With a checkpoint every 15 minutes it stays within 3% of RunPod Community at every length and undercuts it from 6 hours. The figure and the table include 0.02 failures per hour, so their 1-hour costs sit slightly above the no-failure figures at the top of the post: USD 0.87 against 0.85 on Hugging Face Jobs.
| L4 option | 1 GPU hour of work (USD) | 8 GPU hours of work (USD) |
|---|---|---|
| Hugging Face Jobs l4x1 | 0.87 | 7.01 |
| RunPod L4 Secure | 0.74 | 6.04 |
| RunPod L4 Community | 0.47 | 3.85 |
| Compute Engine on demand | 0.76 | 6.19 |
| Compute Engine Spot, no checkpoints | 0.52 | 12.26 |
| Compute Engine Spot, checkpoint every 15 min | 0.49 | 3.71 |
Break-even preemption rate
Let ρ be the Spot price divided by the on-demand price, 0.60 for the Compute Engine L4. Spot is cheaper while its cost multiplier M stays below 1/ρ = 1.67. M is billed time with preemptions divided by billed time with none, both with the same start-up and no other failures. Without checkpoints:
M(λ) = [ u + (eλw − 1)(1/λ + u) ] / (u + w) break-even λ* solves M(λ*) = 1 / ρ
The equation has no closed form, so the lab solves it numerically. For the 1-hour case (w = 1 h, u = 0.067 h): M(0.8) = 1.575, M(0.9) = 1.674 and M(1.0) = 1.781, so λ* = 0.897, about 0.90 preemptions per hour. A 4-hour run breaks even at 0.23 per hour and an 8-hour run at 0.12. With a checkpoint every 15 minutes the 8-hour run breaks even at 2.5 per hour.
The start-up matters little without checkpoints: for u = 2, 4 and 8 min the 8-hour break-even is 0.12 per hour each time, and the 1-hour break-even is 0.92, 0.90 and 0.85. With checkpoints it matters more: the 8-hour break-even is 2.9, 2.5 and 1.9 per hour. No price page gives a preemption rate, so λ is yours to measure; Google's GPU documentation lists rate viewing for non-N1 series as a Preview feature.
How often to checkpoint
Per hour of work, a checkpoint every c hours costs δ/c in writing, where δ is the time to write one, in hours like c, and λ is per hour (c* is quoted in minutes below). Each preemption loses on average half a segment, so the rework is about λc/2 per hour. The sum is smallest at:
extra time per hour of work ≈ δ/c + λc/2 minimum at c* = √(2δ / λ)
This is the classic first-order rule for checkpoint intervals; it ignores the restart delay. With δ = 0.5 min and λ = 0.25 per hour, c* = 15.5 min. The exact model, on a grid of 0.25 min, puts the minimum for an 8-hour Spot run at 15 min, USD 3.70. Checkpointing every 5 minutes costs USD 3.85, every 60 minutes USD 3.97, and never USD 11.02. These costs count preemptions only; adding the 0.02 failures per hour of Figure 3 raises the no-checkpoint cost to the USD 12.26 in the table above. On demand with no failures costs USD 5.70. The curve is flat near the optimum, and the best interval stays at 15 min for u = 2, 4 and 8 min. Too-frequent checkpoints cost too: one a minute, 30 seconds each, on a 1-hour run with 0.01 failures per hour raises billed time from 1.07 hours to 1.56. One every 15 minutes gives 1.09.
Free quota: when it wins
A free quota costs only calendar time. If the work fits, no paid option beats it on cost; if not, the shortfall becomes waiting. One 6-hour run, with the 4-minute start-up and no failures, uses a fifth of my 30 GPU hours a week. Ten such runs need 60.7 GPU hours: 2.0 weeks of quota, about 340 hours of calendar time. The same ten runs on RunPod L4 Community take about 61 hours and cost USD 26.69.
Both grow in a straight line. Each 6-hour run adds 0.20 weeks of quota, or USD 2.67 on RunPod Community and USD 4.85 on Hugging Face Jobs. At 20 runs that is 4.0 weeks, or USD 53 and USD 97. Free suits an experiment you can read in two weeks, not a deadline. As far as I found, Kaggle's API has no quota or cost endpoint.
A worked budget
A side project needs 20 runs of 30 minutes and 2 runs of 8 hours on one L4-class GPU. The table prices it under the model's assumptions with the lab inputs; Hugging Face Jobs rounds to the minute. Spot appears twice: without checkpoints, and with a checkpoint every 15 minutes on the 8-hour runs only.
| Platform | 20 runs of 30 min (USD) | 2 runs of 8 h (USD) | Total (USD) |
|---|---|---|---|
| Hugging Face Jobs l4x1 | 9.33 | 14.03 | 23.36 |
| RunPod L4 Secure | 7.87 | 12.08 | 19.95 |
| RunPod L4 Community | 5.02 | 7.70 | 12.72 |
| Compute Engine on demand | 8.06 | 12.38 | 20.43 |
| Compute Engine Spot, no checkpoints | 5.17 | 24.53 | 29.70 |
| Compute Engine Spot, checkpoints on the 8 h runs | 5.17 | 7.42 | 12.60 |
| Kaggle notebook (28.9 of 30 quota hours) | 0.00 | 0.00 | 0.00 |
RunPod Community is the cheapest without checkpoints. Spot without checkpoints is the dearest option: USD 24.53 of its USD 29.70 goes on the two long runs. With checkpoints on those runs Spot costs USD 12.60, level with RunPod Community at USD 12.72. That depends on the preemption rate. At 0.1, 0.25, 0.5 and 1.0 per hour the checkpointed Spot total is USD 12.17, 12.60, 13.36 and 15.05, so it beats RunPod Community only below a rate between 0.25 and 0.5. Without checkpoints it is USD 16, 30, 112 and over 3,000.
On Kaggle the project fits in one week (28.9 of 30 quota hours: 26 hours of work plus 22 start-ups and the expected restarts) at no cost, and each 8-hour run fits the 12-hour session. On Hugging Face Jobs a 30-minute run plus start-up overruns the 30-minute default timeout, so set the timeout.
How each one fails
The Kaggle slot and slug rows, the Hugging Face out-of-memory and cancelled-job rows and the two RunPod error rows come from my own use. The rest are documented by the providers.
| What fails | What it costs you | What I do |
|---|---|---|
| Kaggle | ||
| Deleting keeps the slot | Pushes refused | Wait for the run |
| Deleted names not reused | Pushes create nothing | List after each push |
| GPU queue when busy | Sessions wait | Start early |
| Hugging Face Jobs | ||
| 30 min default timeout | Long jobs stopped | Raise the timeout |
| Out of memory (exit 137) | Paid, no result | Test memory first |
| Cancelled: no duration | Spend only bounded | Keep timeouts tight |
| Low hardware supply | Job waits | Set a scheduling timeout |
| RunPod | ||
| HTTP 402 at zero balance | Pod refused | Keep a balance |
| Exec returned 403 | No remote command | Copy over SSH |
| Pod left running | Billed per second | Always delete pods |
| Compute Engine | ||
| Idle VM still running | Charged uptime | Stop after the run |
| Spot preempted, no SLA | Run restarts | Checkpoint, 120 s notice |
Building Jobwatch showed two things about budgets. The Hugging Face Jobs API reports a per-minute unit cost for each hardware type, so spend is running time times that price. A cancelled job carries no duration or end time, so its cost is bounded only by its timeout: at most USD 0.20 for a cancelled t4-small job at the 30-minute default. Failures show in the job status, such as "exit code: 137. Reason: OOMKilled".
Which platform for this run
The quota, the checkpoint interval and the preemption rate are yours to measure.
A small lab you can run
The lab is plain Python with no dependencies: a price table citing its sources and read date, the billing rules, the expected-time formula, the checkpoint optimum, the break-even rate and the sensitivity runs. Download the lab (zip), then run python run_lab.py (well under a second) and python -m pytest -q (40 tests). Each test checks one claim against the alternative it rejects: Spot with and without checkpoints, per-minute against per-second rounding, the free quota against paid time, the checkpoint formula against the exact minimum, the time formula against a simulation. A further file checks the numbers quoted here against the saved results.
What I would check first
- The GPU hours the project needs per week. If a free quota covers them and you can wait, you are done.
- The length of a typical run. Under about 10 minutes, start-up and rounding decide the price: use per-second billing and batch.
- Whether the job can resume from a checkpoint. Test the resume once before relying on Spot.
- The timeout. Hugging Face Jobs defaults to 30 minutes; set it to the longest run plus a margin. It also bounds a cancelled job's cost.
- The same GPU on each platform, VM extras counted.
- What a zero balance or a cancellation does, and whether a forgotten instance keeps billing.
- That a result from a different GPU is not bit-identical: expect differences near 1e-6 relative on a scoring metric.
Limits of this post
- Prices and limits were read on 5 December 2026 and change. Vertex AI custom training is not priced, because its pricing page was too large to read, and Compute Engine's on-demand T4 price was not read.
- The model's inputs (start-up, failure and preemption rates) are assumed, and preemption varies by region, hour and GPU. No egress price was read, so egress counts as zero unless you supply one. Committed-use, sustained-use and promotional discounts are not included.
- The Kaggle quota is the one on my account. The RunPod and Hugging Face measurements are one kernel on one A40 and one T4: they show the size of the start-up share, not a general speed ratio.
Sources
All pages were read on 5 December 2026.
- Notebooks Documentation, Kaggle (script-rendered page): session limits, disk, GPU options, queueing.
- Pricing and Billing, Hugging Face Jobs: prices, per-minute billing, default timeout.
- Run and manage Jobs, huggingface_hub guide: hardware list, timeouts, cancelling.
- Runpod pricing (page dated 3 December 2026): prices, per-second billing, storage.
- Accelerator-optimized and GPU VM pricing, Google Cloud: g2-standard-4 and a2-ultragpu-1g prices.
- Spot VMs pricing, Google Cloud: the T4 Spot GPU price.
- Compute Engine pricing overview: billing rules.
- GPU platforms, Compute Engine documentation: GPU models.
- Spot VMs, Compute Engine documentation: preemption notice, runtime, SLA.