← All posts

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

KaggleHF JobsRunPodGCE on demandGCE Spot
BillingFreePer minute2Per secondPer second5Per second5, 6
Free quota30 h a week1NoneNoneNoneNone
Time limit12 h (TPU 9 h)30 min3None listedNoneNone
PaymentNoneCreditPrepaid4Monthly billMonthly bill
Taken awayNo; may queueNoNoNoYes7

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 JobsRunPod SecureRunPod CommunityGCE on demandGCE Spot
L4 24 GB0.800.690.440.70680.4230
A100 80 GB (RunPod PCIe)2.502.091.195.06883.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.

  1. 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.
  2. 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.
  3. A failure loses the work since the last checkpoint, or the whole run without checkpoints. A checkpoint every c hours takes δ hours to write.
  4. The instance is billed from first start to finish, restarts included. Each platform's rounding rule is applied once to the total.
  5. 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.

Three horizontal bars for a 90-second run: per second 90 seconds, per minute 120 seconds, one-minute minimum 90 seconds A 90-second run under three billing rules (seconds charged) Per second (RunPod) 90 s Per minute (HF Jobs) 120 s 1 min minimum (GCP) 90 s used: 90 s The per-minute rule adds 30 s: 33% on this run. On a 1 h run it adds at most 1.6%.
Figure 1. A 90-second run is charged 90 s per second, 120 s per minute and 90 s with Compute Engine's rule.
Run lengthPer second: extra chargePer minute: extra chargeOne-minute minimum: extra charge
30 s0%100%100%
60 s0%0%0%
90 s0%33.3%0%
178 s0%1.1%0%
300 s0%0%0%
600 s0%0%0%
1800 s0%0%0%
3600 s0%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%

Two stacked horizontal bars. The pod run: 178 seconds of training then 242 seconds not training, 420 seconds billed. The illustration for Hugging Face Jobs: 309 seconds of training then 242 seconds not training, 551 seconds used and 600 seconds billed per minute Where the time went: my pod run, and the same job billed per minute (seconds) RunPod A40 Secure, billed per second training 178 s not training 242 s 420 s billed, USD 0.069 Illustration: HF Jobs t4-small, billed per minute training 309 s not training 242 s 551 s used, 600 s billed (the dashed part is rounding), USD 0.067 The 309 s is my measured T4 training time. The 242 s of other time is copied from the pod run, so the second bar is an illustration, not a measurement.
Figure 2. The measured pod run split into training and the rest, and the same job as an illustration on Hugging Face Jobs billed per minute.

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.

Lines of expected cost in USD against GPU hours from 0 to 10 for six L4 options. Five rise steadily, from RunPod Community at the bottom to Hugging Face Jobs at the top. Spot without checkpoints rises faster and leaves the chart above 6 hours Lab: expected cost of one L4 run against its length (USD) 0 2 4 6 8 10 0 2 4 6 8 10 GPU hours of work in the run Spot without checkpoints (dotted) leaves the chart above 6 h; it reaches USD 22 at 10 h HF Jobs l4x1 (USD 0.80 per hour, per minute) RunPod L4 Secure (USD 0.69 per hour) RunPod L4 Community (USD 0.44 per hour) Compute Engine on demand (USD 0.71 per hour) Compute Engine Spot, no checkpoints (USD 0.42) Compute Engine Spot, checkpoint every 15 min Assumed: 4 min start-up per attempt, 0.02 failures per hour everywhere, 0.25 extra preemptions per hour on Spot.
Figure 3. Expected cost of one L4 run against its length, for the assumptions stated under the chart.
L4 option1 GPU hour of work (USD)8 GPU hours of work (USD)
Hugging Face Jobs l4x10.877.01
RunPod L4 Secure0.746.04
RunPod L4 Community0.473.85
Compute Engine on demand0.766.19
Compute Engine Spot, no checkpoints0.5212.26
Compute Engine Spot, checkpoint every 15 min0.493.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.

Log-scale lines of cost multiplier against preemptions per hour from 0 to 2. Without checkpoints the lines for 1, 4 and 8 hour runs rise, the 8 hour line fastest. The line for an 8 hour run with a checkpoint every 15 minutes stays below 1.6 Lab: Spot cost multiplier against preemption rate (log scale, 1 means no loss) 1 10 100 1,000 0 0.5 1 1.5 2 preemptions per hour Dashed: multiplier 1.67, Spot cost = on-demand cost 1 h run, no checkpoints 4 h run, no checkpoints 8 h run, no checkpoints 8 h run, checkpoint every 15 min Multiplier = expected billed hours with preemptions divided by billed hours without. Lines stop at 1,000.
Figure 4. Spot cost multiplier against preemption rate, with the break-even level where Spot costs the same as on demand.

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.

A curve of expected cost in USD against checkpoint interval from 1 to 480 minutes on a log axis. It falls to a minimum near 15 minutes, then rises steeply to the no-checkpoint cost. A vertical dashed line marks the formula value and a horizontal dashed line marks the on-demand cost Lab: expected cost of an 8-hour Spot run against its checkpoint interval (USD) 0 3 6 9 12 1 min 5 min 15 min 60 min 240 min checkpoint interval (log scale); the right-hand end is no checkpoints on demand, no failures: USD 5.70 lab minimum: 15 min, USD 3.70 formula c* = 15.5 min no checkpoints: USD 11.02 Assumed: 0.25 preemptions per hour, 4 min start-up, 0.5 min to write a checkpoint, Compute Engine Spot L4.
Figure 5. Expected cost of an 8-hour Spot run against the checkpoint interval, with the formula's optimum and the on-demand cost.

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.

Two panels against the number of 6-hour runs from 1 to 20. Left: weeks on the free quota rising in a straight line to about 4 weeks. Right: cost in USD rising in straight lines to about 53 on RunPod Community and 97 on Hugging Face Jobs Lab: 1 to 20 runs of 6 GPU hours, free quota of 30 GPU hours a week against paid Calendar time on the free quota (weeks) 0 1 2 3 4 1 5 10 15 20 number of 6-hour runs Kaggle: 4.0 weeks for 20 runs Cost of the same runs (USD) 0 25 50 75 100 1 5 10 15 20 number of 6-hour runs HF Jobs l4x1: USD 97 at 20 runs RunPod Community: USD 53 at 20 runs Kaggle: USD 0 on every run count Paid runs go back to back: 20 runs take 121 hours on RunPod. The quota stretches them to 679 hours.
Figure 6. Free quota against paid time. Left, calendar weeks on a quota of 30 GPU hours a week. Right, cost of the same runs on two paid platforms.

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.

Platform20 runs of 30 min (USD)2 runs of 8 h (USD)Total (USD)
Hugging Face Jobs l4x19.3314.0323.36
RunPod L4 Secure7.8712.0819.95
RunPod L4 Community5.027.7012.72
Compute Engine on demand8.0612.3820.43
Compute Engine Spot, no checkpoints5.1724.5329.70
Compute Engine Spot, checkpoints on the 8 h runs5.177.4212.60
Kaggle notebook (28.9 of 30 quota hours)0.000.000.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 failsWhat it costs youWhat I do
Kaggle
Deleting keeps the slotPushes refusedWait for the run
Deleted names not reusedPushes create nothingList after each push
GPU queue when busySessions waitStart early
Hugging Face Jobs
30 min default timeoutLong jobs stoppedRaise the timeout
Out of memory (exit 137)Paid, no resultTest memory first
Cancelled: no durationSpend only boundedKeep timeouts tight
Low hardware supplyJob waitsSet a scheduling timeout
RunPod
HTTP 402 at zero balancePod refusedKeep a balance
Exec returned 403No remote commandCopy over SSH
Pod left runningBilled per secondAlways delete pods
Compute Engine
Idle VM still runningCharged uptimeStop after the run
Spot preempted, no SLARun restartsCheckpoint, 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 decision flow with three yes or no questions. Free quota and one session leads to a Kaggle notebook. Under 10 minutes leads to per-second billing. Checkpoint every 15 minutes leads to Compute Engine Spot. Otherwise one uninterrupted run on the lowest-priced on-demand option Which platform for this run? Does it fit the free quota and one session, and can you wait for the quota? yes Kaggle notebook Cost 0. Time depends on the quota. no Is the compute under about 10 minutes? yes Prefer per-second billing RunPod, or GCP after minute one. no Can it save and resume from a checkpoint about every 15 minutes? yes GCP Spot, resume tested first Otherwise on demand, below. no One uninterrupted run needed Lowest listed hourly price for the GPU you need: RunPod, HF Jobs (set the timeout), GCP on demand The shorter branch is not exclusive: a short run on a free quota still goes to Kaggle first.
Figure 7. A decision flow for choosing where to run a GPU job.

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

  1. The GPU hours the project needs per week. If a free quota covers them and you can wait, you are done.
  2. The length of a typical run. Under about 10 minutes, start-up and rounding decide the price: use per-second billing and batch.
  3. Whether the job can resume from a checkpoint. Test the resume once before relying on Spot.
  4. 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.
  5. The same GPU on each platform, VM extras counted.
  6. What a zero balance or a cancellation does, and whether a forgotten instance keeps billing.
  7. 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.