How to Fine-Tune an LLM for $0 in 2026: Colab, Kaggle and Unsloth
Fine-tune a small open model on a free GPU: Kaggle 30 hours a week, Colab sessions, Unsloth QLoRA and how much VRAM each model size needs, with sources.
- Time
- 1 to 3 hours for a first QLoRA run on a small model
- You need
- A Google account (Colab) or a Kaggle account with a verified phone number · A dataset of a few hundred to a few thousand question-and-answer pairs · A Hugging Face account to download base models and save your adapter
- Last checked
You can fine-tune an open model of up to about 14 billion parameters without paying anything. The free path is QLoRA: load the base model in 4-bit, train a small adapter on top of it, and run it on a free 15 or 16 GB notebook GPU from Kaggle or Google Colab. Unsloth, an open-source library, publishes ready-made notebooks for both that do the setup for you. What you cannot do for free is full fine-tuning or training a 70B model; those need far more GPU memory than any free tier gives.
Every figure below was read on the vendor's page on 2026-10-26. Rows that link an offer page are in our verified catalog; Google Colab is not yet, so its row links Google's page. To pick a GPU, a host to serve the result and a free API as fallback in one go, use the fine-tune stack.
Free GPUs for fine-tuning at a glance
| Option | What is free | GPU memory | Session limit | The catch |
|---|---|---|---|---|
| Kaggle notebooks | 30 GPU hours a week, sometimes more; 20 TPU hours | NVIDIA P100 (16 GB) or 2x T4 | 12 hours | Phone verification unlocks the GPU; quota resets weekly |
| Google Colab | GPU and TPU runtimes, limits not published | About 15 GB on the free GPU | Up to 12 hours | GPU access is "heavily restricted" and varies; idle runtimes time out |
| Lightning AI | Up to 30 credits, about 75 hours on a T4 | T4 16 GB, L4 24 GB and up | Free Studio restarts every 4 hours | Credits expire after 12 months |
| Paperspace Gradient | Basic free GPU notebooks, 5 GB storage | Basic instances only | 12 hours, auto-shutdown | Public projects only |
| Hugging Face ZeroGPU | 5 GPU minutes a day | Half or full RTX Pro 6000 | Per call | For running a demo, not for training |
Source: Kaggle efficient GPU usage, Colab FAQ, Lightning AI pricing, and our offer pages linked above, checked 2026-10-26. The free GPU quota tracker works out the hours you have left this week.
How much GPU memory you need
Fine-tuning a model changes it; with LoRA you freeze the original weights and train a small set of extra "adapter" weights instead, which needs far less memory (what LoRA is). QLoRA does the same with the frozen model loaded in 4-bit. Unsloth's requirements page lists the minimum VRAM for each:
| Model size | QLoRA (4-bit) | LoRA (16-bit) | Fits a free 15-16 GB GPU? |
|---|---|---|---|
| 3B | 3.5 GB | 8 GB | Yes, both |
| 7B-8B | 5-6 GB | 19-22 GB | QLoRA only |
| 14B | 8.5 GB | 33 GB | QLoRA only |
| 27B | 22 GB | 64 GB | No: Lightning credits on an L4 or larger, or paid Colab |
| 70B | 41 GB | 164 GB | No |
Unsloth calls these "the absolute minimum": long examples and large batches need more. When you run out of memory, it says, the usual cause is a batch size set too high; set it to 1, 2 or 3. Read why GPU memory decides what you can run if the numbers are new to you.
Source: Unsloth requirements, checked 2026-10-26.
Step 1: decide whether fine-tuning is the right tool
Fine-tuning teaches a model a format, a tone or a narrow task: answer in your company's JSON schema, write like your support team, classify tickets into your categories. It is a poor way to teach facts that change, such as a product catalog or this week's prices; retrieval does that better and cheaper (RAG or fine-tuning?). If a good prompt with a few examples already gets you most of the way, try that first: it costs nothing to change.
Step 2: prepare a dataset
Unsloth's guide says a dataset usually has two columns, question and answer, and that its quality and size "will largely reflect the end result". Start with a few hundred clean examples and add more only if the test set shows the model still gets the task wrong. Write them yourself, export them from real conversations you are allowed to use, or generate drafts with a model and fix them by hand. Keep 10% aside to test with. Upload the file as a Kaggle dataset or to your Google Drive.
Start from an instruct model rather than a base model: Unsloth recommends instruct models because they take chat-formatted data directly and need less of it.
Step 3: run a free notebook
- Open Unsloth's notebooks page and pick a notebook for a model of 14B or less; each has a Kaggle and, for most, a Colab version.
- On Kaggle, verify your phone number in your account settings, then turn on a GPU under Settings → Accelerator. On Colab, choose Runtime → Change runtime type and pick a GPU.
- Replace the sample dataset with yours, keeping the column names the notebook expects.
- Leave the defaults on the first run. Unsloth recommends QLoRA to start and 1 to 3 epochs "to avoid overfitting".
- Click Run all and watch the training loss. Unsloth says a loss around 0.5 to 1.0 is often a good sign; a loss near 0 can mean the model memorized your data.
- Chat with the result on your held-out examples before you trust it.
Keep the first run small (a 3B-8B model, a few hundred examples, one epoch) so it finishes inside one Kaggle or Colab session. Save checkpoints to disk or to the Hugging Face Hub as you go: a Colab runtime can be stopped early, and a Kaggle session ends at 12 hours.
Source: Unsloth notebooks, Unsloth fine-tuning guide, checked 2026-10-26.
Step 4: save and run your model
The notebook ends with the trained adapter, a small set of weights that sits on top of the base model. You can:
- Push it to the Hugging Face Hub with your free account and load it on top of the base model anywhere.
- Export a GGUF file and run it on your own computer with Ollama, llama.cpp or LM Studio, as Unsloth's guide describes; see how to run AI locally for free.
- Host a demo on a Hugging Face Space with ZeroGPU: 5 GPU minutes a day for free accounts, enough for a few people to try it.
The fine-tune stack adds a free host for the app around your model and a free LLM API to fall back on when the demo GPU runs out.
When the free GPUs are not enough
- Lightning AI starts every account with free credits, up to 30 in total, which its pricing page turns into about 75 hours on a T4 or 31 on a 24 GB L4. The L4's 24 GB is just above Unsloth's 22 GB QLoRA minimum for a 27B model.
- Anyscale gives $100 of credit for CPU and GPU compute on Ray.
- Students at U.S. universities get $20 of Thunder Compute credit; academic researchers can apply for the Lambda Research Grant or Nebius research grants.
- Startups have larger programs: see AI startup credits.
Colab Pro for Education, which gave U.S. students a free year of Colab Pro, is closed to new signups.
Limits and the catch
- Free GPUs are shared. Colab does not publish its limits and says they "vary over time"; Kaggle's 30 hours is a weekly quota. Turn the GPU off while you edit, so idle time does not eat the quota.
- QLoRA has a ceiling. Free GPUs top out around 14B parameters in 4-bit; full fine-tuning of even a 3B model needs more memory than they have.
- A fine-tuned model is still a language model. It learns style and format more reliably than facts, and it can state things confidently that your data never said.
- Check the base model's license before you share or sell what you trained (what open weights means).
- Limits change. We re-check vendor pages monthly; the date at the top of this page is our latest check.
Offers in this guide
- Kaggle Free GPU and TPU Notebooks · 30 hours/week · no card
Free Kaggle notebooks: 30 hours/week of GPU and 20 hours/week of TPU
- Lightning AI Free Plan · 30 credits · no card
Up to 30 free credits (about 80 GPU hours) and 1 free Studio
- Hugging Face ZeroGPU Free GPU Access on Spaces · 5 minutes/day · no card
ZeroGPU dynamically allocates NVIDIA RTX Pro 6000 Blackwell GPUs to Gradio
- Paperspace Gradient Free GPU Notebooks · Free tier · card
Free basic GPU notebooks and 5 GB storage on Paperspace
- Anyscale $100 Free Signup Credit · $100 · no card
$100 in Anyscale credits for CPU and GPU compute on Ray, no card
- Thunder Compute Student Credit · $20 · no card
$20 in free GPU credit for US university students
Understand it
A few minutes of play-along, no sign-up.
- How can I fine-tune a model on a free GPU? · LoRA and QLoRA: train small matrices beside frozen weights · 5 min
- Why does a 7B model need 16 GB of RAM? · Model memory: parameters × bytes, plus the KV cache · 5 min
Frequently asked questions
- Can I fine-tune an LLM for free?
- Yes, for small models. With QLoRA, a 7B or 8B model needs about 5 to 6 GB of GPU memory and a 14B model about 8.5 GB, which fits the free 15-16 GB GPUs in Kaggle notebooks (30 hours a week) and Google Colab.
- Is Kaggle or Colab better for fine-tuning?
- Kaggle publishes its quota: 30 GPU hours a week and 12-hour sessions after phone verification. Colab is free too, but Google does not publish its limits and says GPU access on the free tier is heavily restricted, so a long run can stop early.
- What is Unsloth?
- Unsloth is an open-source library for fine-tuning open models with less GPU memory. It publishes free notebooks for Kaggle and Colab and a table of the minimum VRAM for QLoRA and LoRA at each model size.
- Can I fine-tune a 70B model for free?
- No. Unsloth lists 41 GB of VRAM as the minimum for QLoRA on a 70B model, more than any free notebook GPU. Use a smaller model, or credits such as Lightning AI or a research grant.
- Should I fine-tune or use RAG?
- Fine-tune to change format, tone or a narrow task; use retrieval (RAG) to give a model facts that change, such as documents or prices. Many projects need only a better prompt.
Sources
Steps and limits were checked against these official pages.
More guides
- How to Get a Free Gemini API Key
- How Students Can Get ChatGPT Plus Free
- Free Alternatives to ChatGPT Plus Features
- How Students Can Get Google Gemini (AI Pro) Free
- How to Use an AI Coding Agent for Free
- How to Get a Free GPU for AI
- How to Apply for AI Startup Credits
- How to Get Free Claude API Credits
- How to Get a Free Groq API Key
- Free AI Image Generation: In the Browser and by API
- Free OpenAI API Access in 2026: What's Actually Free
- Free Embeddings and Reranking APIs in 2026
- Free Text-to-Speech APIs in 2026
- Free Speech-to-Text APIs in 2026
- Free AI Video Generators in 2026
- Free Image Generation APIs in 2026
- Free Web Search APIs for LLM Agents in 2026
- Free Vector Databases for RAG in 2026
- Free DeepSeek API in 2026: What Is Actually Free
- OpenRouter Free Models: Limits, Credits and API Setup
- Free Hugging Face Inference: Credits, ZeroGPU and Spaces
- Free AI APIs With No Credit Card in 2026
- Track Free-Tier Changes Automatically
- How to Run AI Locally for Free
- Free Vision APIs: Read Images and Screenshots for Free
- Free Reasoning Model APIs: Thinking Models for Free
- Free Translation APIs in 2026: DeepL, Google, Azure, Amazon and LLMs
- Free AI for Teachers in 2026: Lesson Planning, Grading and Slides
- How to Run an AI Agent for $0 in 2026: Models, Search and Vector DB
- Free AI for Nonprofits in 2026: Google, Microsoft, Canva, OpenAI and Claude
- Free AI Coding Tools for Students in 2026: Copilot, JetBrains, Cursor and More
- Best Free AI APIs for Vietnamese in 2026: Benchmark Scores and Free Tiers
- Free AI Writing Assistants in 2026: ChatGPT, Gemini, Claude, Notion AI, Grammarly and Copilot
- Free AI Chat Without Login in 2026: Duck.ai, ChatGPT, Gemini, Perplexity, Copilot and HuggingChat
- Free AI courses