Skip to lesson
  1. Learn
  2. See
  3. Try
  4. Make

Run a model on a free machine

What this lesson is about

Load a small model in a free notebook, send it ten inputs, and save what came back.

Ten customer messages in Hindi are waiting and a free machine is open for an hour. What do you do with them?

Why this matters

One line names the model and sets it up to run, and the next line sends it your text. On a free machine the limit you meet first is memory, not patience. A free Colab notebook offers a T4 card with 16 GB, read on 14 Sep 2026. Colab says the card is not guaranteed and a session ends after at most 12 hours. Llama 3.2 1B needs 2,358 MB at full width, so it fits as it is. A model that does not fit gets quantised — stored with shorter numbers. The Transformers docs say 8-bit storage halves the memory and 4-bit cuts it to a quarter. Meta's card lists a 4-bit QLoRA build of the same 1B model at 1,127 MB. The docs' honest cost: shorter numbers keep as much accuracy as they can, not all of it. So measure again after quantising.

Lesson 3 of 8 on Open models on a small budgetnextMeasure it before you change itPart 1 ends in a work sample you can send

Read the primary or official source: Hugging Face Transformers · quickstart