← CS Lab AI & Machine Learning / Local & Open Models
Local & Open Models — card 1 of 4
Local & Open Models — card 2 of 4
Local & Open Models — card 3 of 4
Local & Open Models — card 4 of 4

A local model is an LLM that runs on your own hardware — no API, no cloud. "Open-weight" models like Llama, Mistral and Qwen publish their actual weights, so you download them once and do the inference yourself.

Where you meet it

What it does

It gives you the same kind of model behind a cloud API, but as files you own. The weights sit on disk; a runtime loads them into memory and runs the forward pass for every token. Nothing is sent anywhere — the cost shifts from per-token fees to the hardware and electricity you already pay for.

Running local buys you privacy, flat cost and offline use — not the frontier. Your VRAM, not your ambition, sets the ceiling.

How it works

You grab the open weights from a hub (Hugging Face), then point a runtime at them. Ollama and llama.cpp load quantized GGUF files — a format that stores the weights at lower precision so they fit in less memory. The size you need is roughly parameters × bits-per-weight, and that number decides how much VRAM (or RAM) it takes.

# pull and chat with an 8B model, locally
ollama run llama3.1:8b

# rough memory math
8B params × 16 bits  ≈ 16 GB   (fp16 — needs a big GPU)
8B params ×  4 bits  ≈  4 GB   (4-bit GGUF — fits a laptop)

Quantization is what makes this practical: dropping from 16-bit to 4-bit cuts the footprint ~4×, turning a model that needed a data-center card into one that runs on consumer hardware.

Watch out

  • Hardware caps model size. Your VRAM (or unified memory) is the hard limit — a 70B model won't fit an 8 GB GPU, quantized or not.
  • "Open weights" ≠ open source. Many licenses (e.g. Llama's) restrict use; always read the actual license before shipping a product on top.
  • Quantized = slightly worse. Lower precision trades a little quality for a lot of room; 4-bit is usually fine, 2-bit often isn't.
  • Local usually trails the frontier. A model you can run at home is weaker than the best hosted APIs — you're buying privacy, flat cost and offline use, not top-tier quality.

Go deeper

Ein lokales Modell ist ein LLM, das auf deiner eigenen Hardware läuft — ohne API, ohne Cloud. "Open-Weight"-Modelle wie Llama, Mistral und Qwen veröffentlichen ihre echten Gewichte: Du lädst sie einmal herunter und machst die Inferenz selbst.

Wo es vorkommt

Was es tut

Es liefert dieselbe Art Modell wie hinter einer Cloud-API, aber als Dateien, die dir gehören. Die Gewichte liegen auf der Platte; eine Runtime lädt sie in den Speicher und rechnet für jedes Token den Forward-Pass. Nichts wird verschickt — die Kosten verschieben sich von Token-Gebühren auf Hardware und Strom, die du ohnehin zahlst.

Lokal kaufst du Privatsphäre, feste Kosten und Offline-Betrieb — nicht die Spitze. Dein VRAM setzt die Grenze, nicht dein Ehrgeiz.

Wie es funktioniert

Du holst die Open Weights von einem Hub (Hugging Face) und richtest eine Runtime darauf. Ollama und llama.cpp laden quantisierte GGUF-Dateien — ein Format, das die Gewichte in geringerer Präzision speichert, damit sie in weniger Speicher passen. Der Bedarf ist grob Parameter × Bits-pro-Gewicht, und diese Zahl bestimmt, wie viel VRAM (oder RAM) nötig ist.

# 8B-Modell lokal laden und chatten
ollama run llama3.1:8b

# grobe Speicher-Rechnung
8B Params × 16 Bit  ≈ 16 GB   (fp16 — braucht eine große GPU)
8B Params ×  4 Bit  ≈  4 GB   (4-bit GGUF — passt auf einen Laptop)

Quantisierung macht das praktikabel: von 16-bit auf 4-bit zu gehen schrumpft den Bedarf ~4× — aus einem Modell, das eine Rechenzentrums-Karte brauchte, wird eines, das auf Consumer-Hardware läuft.

Worauf achten

  • Hardware begrenzt die Modellgröße. Dein VRAM (oder Unified Memory) ist die harte Grenze — ein 70B-Modell passt nicht auf eine 8-GB-GPU, quantisiert oder nicht.
  • "Open Weights" ≠ Open Source. Viele Lizenzen (z. B. die von Llama) schränken die Nutzung ein; vor dem Produktivgang immer die echte Lizenz lesen.
  • Quantisiert = etwas schlechter. Geringere Präzision tauscht ein wenig Qualität gegen viel Platz; 4-bit ist meist okay, 2-bit oft nicht.
  • Lokal liegt meist hinter der Spitze. Ein Modell für zu Hause ist schwächer als die besten gehosteten APIs — du kaufst Privatsphäre, feste Kosten und Offline-Betrieb, nicht Top-Qualität.

Mehr dazu

Next up
AI & Machine LearningAlignment AI & Machine LearningEfficient Attention All concepts →