aifree.dev

How does a 30 GB model fit on my laptop?

Quantization (bits per weight) · Builder · 5 min · llm, transformer · after Training: loss and gradient descent

Quantization stores each model weight with fewer bits, for example 4 instead of 16, so the file and memory shrink about four times. Quality barely moves down to 4 bits and collapses below that; the context needs memory on top.

Before you start: could you explain this to a friend?

1 = not at all · 5 = easily

  1. 1 Guess first

    Gemma 3 27B is 55 GB at full precision. Ollama also offers it at 17 GB. What changed?
  2. 2 Look

    Same model, fewer bits

    1 / 4

    Gemma 3 27B: one model, three downloads

    16-bit55 GB
    8-bit30 GB
    4-bit17 GB

    download sizes: ollama.com/library/gemma3/tags (checked 2026-10-21)

    One model, three downloads: 55 GB, 30 GB, 17 GB. Same weights, stored with fewer bits.

    File size is weights × bits: 16 → 4 bits shrinks a model about four times, costs a few points at 4 bits, collapses at 3, and the context needs memory on top.

  3. A weight is one learned number, normally stored in 16 bits. Quantization rounds each weight to fewer bits: 8 is almost lossless, 4 costs a little. The rounding is done once, before you download. Tags like `q8_0` or `q4_K_M` on Ollama name the scheme; `fp16` is the unrounded file.

  4. 4 You are the model

    You choose the download. For each laptop, pick the most capable Gemma 3 file that still leaves room: more parameters first, then more bits.

    laptop 1 of 3 · keep the download under 75 % of RAM

    A laptop with 8 GB of RAM

    sizes: ollama.com/library/gemma3/tags (checked 2026-10-21) · the 75 % rule is an illustrative rule of thumb

    Pick the most capable download that still fits: more parameters first, then more bits.
  5. 5 Check

    Roughly how much smaller is a 4-bit file than a 16-bit one?
  6. 6 Say it back

  7. 7 Mission · 5 min

    Install Ollama (free), then run: ollama pull gemma3:270m and ollama pull gemma3:270m-it-fp16 (292 MB and 543 MB). Compare their sizes with ollama ls, ask both the same question with ollama run, and check memory with ollama ps. Then try your laptop’s best fit from the role.

Three quick ones

Drawn at random from this lesson's pool; different next time.

Done?

Now: could you explain this to a friend?

1 = not at all · 5 = easily

Answer the three quick ones first.

Sources

Published Oct 21, 2026 · updated Oct 21, 2026

Embed this

Paste this into a blog post or course page: the lesson's main picture in an iframe, with a link back to the full lesson.

<iframe src="https://aifree.dev/embed/explain/quantization" width="100%" height="620" style="border:0;max-width:720px" title="How does a 30 GB model fit on my laptop? (aifree.dev Explain)" loading="lazy"></iframe>
<p><a href="https://aifree.dev/explain/quantization">How does a 30 GB model fit on my laptop? Interactive lesson on aifree.dev</a></p>

Never miss new offers and news

New tools, credits, and AI news are added regularly. Pick how you want to hear about them.

Telegram channel
Join @aifree_dev and get new free AI offers and news right in your Telegram feed.
Browser notifications
Turn on push notifications and get an alert on this device whenever something new is posted. No account needed.
Email newsletter
A weekly digest of new, changed and expiring free AI offers. Double opt-in, one-click unsubscribe.

Unsubscribe anytime. Privacy

Frequently asked questions

What is aifree.dev?

aifree.dev helps everyone access AI through a curated directory of free AI tools, API credits, free tiers, and startup programs for coding, image, voice, video, and students - verified regularly.

How are offers presented?

Each offer includes its access details, free models when available, and expiration information when provided. Limited-time deals stay visible so they are easy to compare.

Do education and startup programs need verification?

Yes. Providers usually ask students to verify their status with a school email, student ID, or a program like the GitHub Student Pack, and ask startups to verify company details such as age, funding, or website. Check each offer’s claim page for the exact requirements.

What kinds of free AI offers are listed?

Free tiers and free trials from AI providers, free API credits, startup and student programs, and free tools for coding, image generation, voice, and video.

How can I suggest a tool or report a broken link?

Use the submit form: paste the offer page URL and a short note. A person checks every submission before anything is listed. Broken links and changed terms go through the same form.

+

Know a good one?

Tell us about an AI tool worth knowing. Found a broken link? We want to hear that too.

Submit an offer