Skip to content
MizanStack

Free GPUs for learning AI: Colab or Kaggle, which one for which job

Colab's own FAQ says it does not publish its free usage limits, and that GPU access in the free version is "heavily restricted". That one sentence decides how you should use it. Kaggle works the other way round: you see your GPU quota in the notebook. Here is how to pick between them for a small fine-tune, a quick inference test or a longer run, with the limits each one documents.

Colab or Kaggle: pick by the kind of job

  • Quick experiments, class exercises, trying a model for twenty minutes: Colab free. Nothing to set up, notebooks are stored in your Google Drive, and you can load them from GitHub.
  • A job you want to plan around, such as a fine-tune that takes a few hours: Kaggle, because its quota is something you can look at inside the notebook instead of a hidden, moving limit. Check the number there before you start.
  • A job that must keep running for a day or needs a specific big GPU: neither free tier is built for that. Colab says continuous execution for up to 24 hours belongs to its paid Pro+ plan, with enough compute units.

What Google says about the Colab free tier

These points come from the Colab FAQ (opens in a new tab), read on 2026-11-06:

  • GPU access in the free version is "heavily restricted". The types of GPUs and TPUs available "vary over time", so you cannot count on a particular model being there.
  • Free notebooks can run for at most 12 hours, "depending on availability and your usage patterns". Runtimes also time out if you are idle. The FAQ gives no idle number.
  • Colab does not publish its limits, "in part because they can vary over time". Resources are not guaranteed and not unlimited.
  • Free VMs have a standard system memory profile. High-memory machines are listed for paid plans, subject to availability.
  • Code runs in a virtual machine that is private to your account.

Practical meaning: a Colab free session is a loan, not a lease. Save checkpoints to Google Drive often, and design every job so it can restart from the last checkpoint.

Things the free tier does not allow

The FAQ lists uses that are not allowed on any managed runtime, among them cryptocurrency mining, torrenting, password cracking, and using several accounts to get around limits. For free runtimes without a positive compute unit balance it also lists remote control such as SSH or remote desktops, and says those may be ended at any time without warning. If your plan was to SSH into Colab to run a long server, this is the wrong tool.

Paid options, without prices

Colab Pro, Pro+ and Pay As You Go work through a compute unit balance, and when it runs out you fall back to the free tier rules. We did not read prices from an official page that renders without a login, so check the sign-up page (opens in a new tab) yourself. The FAQ says the former education offer is no longer available for new sign-ups.

Turn on a GPU in Colab and test a small model

  1. Open colab.new (opens in a new tab) while signed in to a Google account.

  2. Open the Runtime menu, choose Change runtime type, and pick a GPU as the hardware accelerator. The FAQ names this menu (it describes setting the accelerator back to None). If no GPU is offered, that is what "heavily restricted" means in practice. Try again later.

  3. Run !nvidia-smi in a cell; it prints the GPU model and its free memory. Check it before you load anything big. The type changes between sessions, so a notebook that assumed a certain memory size can fail.

  4. For inference, start with a small model from a model hub and a short prompt. Measure how much memory it takes before scaling up.

  5. For a fine-tune, use a small model and a small dataset, save adapter weights or checkpoints to Google Drive every few minutes, and stop the runtime yourself when you finish so you do not waste what you were given.

!nvidia-smi

We deliberately show no install or training commands here: they change with every library release, and the official Colab pages we checked do not list any. Use the current instructions of the library you pick.

Kaggle notebooks: GPU quota and the command line

Kaggle shows your weekly GPU allowance at the top of the notebook editor; it is the number that applies to your account, so plan around that. Details are in the Notebooks docs (opens in a new tab) and GPU usage tips (opens in a new tab).

From Kaggle's own command line tool documentation on GitHub:

  • A notebook only gets a GPU when you ask for one: in the kernel-metadata.json file, enable_gpu defaults to false.
  • Internet access is also off unless you set enable_internet to true. Notebooks are private unless you change is_private.
  • The accelerator is chosen with machine_shape. The docs give NvidiaTeslaT4 (shown as GPU T4 x2), NvidiaL4 and TpuV5E8 (TPU v5e-8) as examples.

In the web notebook editor you pick the accelerator in the notebook settings panel, and Kaggle shows how much of your quota is left. Read that number in your own account on the day you plan a long run. It is the only source that applies to you.

Working with the command line

First install the Kaggle command line tool:

pip install kaggle

Then create an API token in your Kaggle account settings (the API section) and follow the instructions Kaggle shows there to place it on your machine. To create the starter metadata file for a notebook folder:

kaggle kernels init -p /path/to/kernel

To download an existing notebook with its metadata (replace username/kernel-slug with the real one):

kaggle kernels pull -p /path/to/download -k username/kernel-slug -m

Colab free against Kaggle, side by side

  • Limits you can see: Kaggle shows your quota in the notebook; Colab says its limits are unpublished and fluctuate.
  • Hardware you can name: Kaggle documents accelerator names for its tool; Colab says its free GPU types vary over time.
  • Storage: Colab notebooks live in Google Drive or GitHub. Kaggle notebooks live in your Kaggle account, with datasets attached from Kaggle.
  • Internet: Kaggle notebooks have internet access off by default in the documented metadata. Colab runtimes are for general notebook work, and the FAQ lists what is not allowed.
  • Moving up: Colab has paid Pro, Pro+ and Pay As You Go. Kaggle notebooks are used within the quota shown in your account.

A reasonable habit: write your code once, keep the data loading in one cell, and be ready to run the same notebook on either service. If one has no GPU for you today, use the other.

When a free GPU is the wrong answer

  • You need a result by a deadline. Free resources are explicitly not guaranteed, so a missing GPU is not a bug you can report.
  • You train something large. A free session that can end any time suits small models and short runs.
  • You need a server that stays up, SSH access, or background work. Colab lists remote control for free runtimes among things that may be ended without warning.
  • You work with private company or client data. The Colab FAQ says Google collects prompts, related code, generated output, related feature usage information and your feedback. Read the sections on data collection before uploading anything you do not own.

If one of these describes you, see free tools on Hugging Face or running models locally with Ollama.

What leaves your machine on Colab and Kaggle

In both services your code and data are uploaded to the provider's servers, which is how a remote GPU works. Colab says its code runs in a virtual machine private to your account, and that notebooks are stored in Google Drive. The Kaggle CLI docs say a notebook is private unless is_private says otherwise, so check the share setting before you publish, and clear any output that prints private values before you share a notebook.

Colab and Kaggle GPU questions

Which GPU will I get on Colab free?

Google says it varies over time. Check what the session gives you instead of assuming.

How long can a free Colab session run?

At most 12 hours according to the FAQ, and less if Colab is busy, you are idle or your recent usage was heavy.

Can I fine-tune a model on a free GPU?

A small one, yes, if you keep it short and save checkpoints. Nothing on the official pages promises more, so treat any bigger plan as an experiment.

Does Kaggle have a weekly limit?

Yes, a weekly GPU quota. Kaggle shows your allowance at the top of the notebook editor, and that number is the one that applies to your account.

Sources

Checked 2026-11-06. Colab limits and Kaggle quotas change often, so read the live pages before planning anything long. Colab paid prices are not listed here; see the sign-up page.

Checked against the official pages on 2026-11-06. Free tiers change often, so check the sources.