Heidelberg AICurriculum
Track 18 · Advanced
18.2

All LLM models — index

Reference: what runs on your hardware, what serves it, what you rent

2026-08-08 AI-generated

1Overview

A filters-first decision reference for running an LLM as a European business, in four blocks: which open model actually fits the box you own (a 16 GB laptop through a 128 GB one-box to a GPU server — memory is the wall); how you run it on your own machine (Ollama, LM Studio, Jan); the software that serves it to a whole team (engine, gateway, login page); and the cloud models you rent when none of that is worth it, compared on cost, context and GDPR. Start from your hardest constraint (data privacy → cost → task), not the leaderboard.

The filter order, concretely: (1) must the data stay private or in the EU? → self-host an open model (free, fully offline), or EU-hosted cloud — Mistral in France, Aleph Alpha in Germany. (2) Cost vs quality for everything else → route cheap, high-volume work to a budget model, reserve a frontier model for the genuinely hard steps. (3) Then match the model to the task.

1.1After this chapter you can
Tell whether a given open model fits your hardware — and why memory, not speed, is the wall
Choose a quantization level (e.g. Q4_K_M) that fits your machine
Run a model on your own machine with Ollama, LM Studio or Jan — and reach it over an OpenAI-compatible local API
Pick the software that serves a local model to your team — engine, gateway, team UI
Pick the right cloud model for your task, budget, and GDPR / data-privacy needs
1.2Which hardware can run a model?

Select a model that fits your device’s memory limits—anything from a 16 GB laptop up to a 128 GB one‑box or a GPU server—because memory is the primary constraint.

1.3When should I rent a cloud model?

Rent a cloud service when self‑hosting isn’t viable, comparing options on cost, context length and GDPR compliance after you’ve ruled out privacy and budget constraints.

Choosing a model — a filters-first method Step 1 filters on data privacy and EU residency, step 2 on cost versus quality, step 3 on the task. Choosing a model a filters-first method — start with your hardest constraint 1 · Must data stay private / in the EU? yes · sensitive data no · ordinary work KEEP IT PRIVATE / IN THE EU GDPR-safe by design Self-host — free & fully offline laptop → Phi-4-mini · gpt-oss-20b 64 GB Mac → Qwen3.6 · Gemma 4 big box → gpt-oss-120b · Llama 4 EU-hosted cloud (managed) Mistral (FR) · Aleph Alpha (DE) 2 · BEST RESULT, COST-AWARE US cloud — use a DPA / EU region Cheap · high-volume Haiku 4.5 · Gemini Flash-Lite GPT nano · DeepSeek V4 Balanced production Claude Sonnet 5 · GPT-5.4 Top quality · hardest tasks Opus 4.8 · GPT-5.5 · Gemini Pro 3 · Then match the model to the task coding · long documents · reasoning · vision · cheap bulk

2Every model

Choosing a model — a filters-first method Step 1 filters on data privacy and EU residency, step 2 on cost versus quality, step 3 on the task. Choosing a model a filters-first method — start with your hardest constraint 1 · Must data stay private / in the EU? yes · sensitive data no · ordinary work KEEP IT PRIVATE / IN THE EU GDPR-safe by design Self-host — free & fully offline laptop → Phi-4-mini · gpt-oss-20b 64 GB Mac → Qwen3.6 · Gemma 4 big box → gpt-oss-120b · Llama 4 EU-hosted cloud (managed) Mistral (FR) · Aleph Alpha (DE) 2 · BEST RESULT, COST-AWARE US cloud — use a DPA / EU region Cheap · high-volume Haiku 4.5 · Gemini Flash-Lite GPT nano · DeepSeek V4 Balanced production Claude Sonnet 5 · GPT-5.4 Top quality · hardest tasks Opus 4.8 · GPT-5.5 · Gemini Pro 3 · Then match the model to the task coding · long documents · reasoning · vision · cheap bulk

Hardware — which model fits your box

Memory is the wall: a model must fit in RAM (or VRAM) before speed matters, and a 4-bit quant needs roughly half a gigabyte per billion parameters. MoE models still load ALL their weights, so footprint tracks total params, not active ones. Verdicts assume Q4_K_M, the sweet spot (~1–2% quality loss); Q6 is near-lossless but needs ~35% more memory, so it can push a model up a hardware tier. → Pick by what you own: a 16 GB laptop or Mac mini → the small models; a 24–32 GB gaming GPU → up to a 35B-class model; a 128 GB unified-memory box (AMD Strix Halo or a Mac Studio) → the one-box frontier, gpt-oss-120b; a real multi-GPU server → the giants.

Your hardware… ▶ 1 ▶ 2 ▶ 1 ▶ 1 ▶ 2 ▶ 1 ▶ 1
Params
total / active — MoE loads all of it, computes only the active slice
3.8B8B21B / 3.6B~27B35B / 3B109B / 17B117B / 5.1B230B / 10Blarge MoE671B / 37B
Fits in (Q4)
Q4_K_M — the default sweet spot (~1–2% quality loss); must fit in RAM/VRAM before speed matters
~3 GB~6–8 GB~13 GB~8–18 GB~21 GB~60 GB~61 GB~115–130 GB100 GB+~376 GB
Fits in (Q6)
near-lossless, ~1.35× the Q4 size — gpt-oss is MXFP4 (4-bit) by design, so it has no Q6
~4 GB~9–11 GB13 GB · MXFP4~11–24 GB~29 GB~85 GB61 GB · MXFP4~155–175 GB135 GB+~550 GB
Laptop · CPU+iGPU · 16 GB
Intel/AMD, no discrete GPU — runs on CPU, slow
🟡🟡
Mac mini M4 · 16 GB
unified memory, Metal-accelerated
🟡🟡
Gaming GPU · 24–32 GB
RTX 4090 / 5090 — fastest per model that fits
AMD Strix Halo · 128 GB
Ryzen AI Max+ 395, unified — ~256 GB/s; MoE is the sweet spot
✅ 62 t/s✅ 55 t/s🟡🟡
Mac Studio · 128 GB
M-series unified — ~819 GB/s, ~3× Strix Halo bandwidth
✅ 60–100 t/s🟡🟡
GPU server · 8× A100/H100
320–640 GB VRAM — the giants live here

runs comfortably🟡 only fits heavily quantized / runs slowly too big for that box

🪟 Phi-4-mini Tiny 3.8B model that runs on almost any laptop
🌬️ Ministral 3 EU open model that runs on a laptop — Apache-2.0
🔓 gpt-oss-20b OpenAI's open model that fits a normal laptop (16 GB)
💎 Gemma 4 Google's open family — efficient, multimodal, edge to workstation
🐉 Qwen3.6 (35B-A3B) Top open model that flies on an Apple-Silicon Mac
🦙 Llama 4 Scout Meta's open MoE with a very large context window
🧠 gpt-oss-120b Frontier-class open model that runs on one 128 GB box
🔶 MiniMax-M2 Commercial-OK open-weight coding agent you can self-host
🔷 GLM-5.2 The leading open-weight coding & agent model
🐋 DeepSeek V4 The cheapest credible frontier model — and open-weight

Run it — on your own machine

The step straight after "does it fit": the block above says gpt-oss-20b fits your 16 GB laptop — this is how you actually run it. All three are free, work offline, and expose an OpenAI-compatible local endpoint, so your existing code only needs its base URL changed. → Pick by what you want: script it from the terminal, or run it as an always-on API → Ollama; a polished desktop app with a local server your other tools can hit → LM Studio; the simplest one-click chat to get started → Jan. The full course — plus AnythingLLM, for chatting over your own documents — is the Local & Private Models chapter.

Compare on… ▶ 2 ▶ 2 ▶ 2
Runs fully offline
no internet after download
Graphical chat — no command line
point-and-click from the start
OpenAI-compatible local API
swap one base URL, keep your code
Runs as an always-on service
a private endpoint your team can hit
Also call cloud models (BYO key)
one app for local + cloud
Open source
read & audit the code
Beginner-friendly first run
low-friction to your first answer
Fully private — data never leaves
the whole point of running locally

yes partial no

Ollama Run open models locally from the CLI + a local API
LM Studio A polished desktop app to download and chat with local models
Jan An open-source, offline-first ChatGPT alternative for your desktop

Serve it — to your team

One machine, one person is Ollama or LM Studio above. This is the layer above that: an engine that holds up under real concurrent load, one stable API in front of whichever engine is running, and a login page your team actually uses. → Pick by what you want: a ChatGPT-style app your whole lab logs into → Open WebUI; many people hitting one model at once → vLLM; the deepest control, or hardware with no real GPU → llama.cpp; one endpoint that never changes even as the engine behind it does → LocalAI; several models sharing one GPU without all staying loaded → llama-swap. Most labs end up running two or three together.

Compare on… ▶ 1
Team login UI (per-user chat + RBAC)
the thing people actually open
Built for concurrent throughput
many people, one GPU, at the same time
Runs well CPU-only / low-end GPU
no dedicated datacenter GPU needed
n/a
One endpoint across multiple engines
swap the engine, keep every client working
Serves several models on one GPU
without keeping them all loaded
OpenAI-compatible API
drop into existing client code
Open source
read & audit the code

yes partial no

💬 Open WebUI The ChatGPT-style front door your whole team logs into
vLLM The serving engine built for many people hitting one model at once
🧱 llama.cpp The engine underneath Ollama — full control, runs on almost anything
🧩 LocalAI One OpenAI-compatible door in front of every engine you run
🔁 llama-swap Hot-swap models on one GPU instead of keeping them all loaded

Cloud — when you rent instead

When self-hosting is not worth it, you rent — and the trade is data residency. EU-sovereign (Mistral in France, Aleph Alpha in Germany) keeps the data in the EU; the global frontier is stronger and often cheaper per token, but your data leaves. Cost is per 1M tokens, in / out.

Compare on… ▶ 2
Deployment
whose cloud it runs in
EU cloudEU / on-premUS cloudUS cloudUS cloudUS cloudUS cloudUS cloudUS cloudUS cloud
GDPR-safe
data stays in the EU?
Best for
the one-line verdict
EU cloudsovereign · regulatedcoding & agentsbalanced productioncheap & fastreasoningcheap bulkhuge multimodalcheap multimodallive + video
Cost
$ per 1M tokens (in / out) — the whole point of a hosted model
$1.50 / $7.50contact sales$5 / $25$2–3 / $10–15$1 / $5$5 / $30$0.20 / $1.25$2 / $12$0.25 / $1.50$1.25 / $2.50
Context window
how much it reads at once
256K1M1M200K1M400K1M1M1M
Multimodal
beyond text
+ images+ images+ images+ images+ images+ images+ audio/video+ audio/video+ images
Reasoning mode
step-by-step thinking
Speed
rough, at its typical setup
fastfastfastvery fastmediumvery fastfastvery fastfast

yes partial no not stated on an official page

🇪🇺 Mistral Medium 3.5 France's EU-hosted flagship — GDPR-safe managed cloud
🇩🇪 Aleph Alpha (Pharia) Heidelberg-based sovereign AI for enterprise & government
Claude Opus 4.8 Best all-round model for coding, agents and careful writing
🔶 Claude Sonnet 5 The balanced Claude — near-Opus quality, lower price
🔹 Claude Haiku 4.5 Fast, cheap Claude for high-volume work
✳️ GPT-5.5 Frontier all-rounder with strong multi-step reasoning
GPT-5.4 nano OpenAI's cheapest tier for high-volume calls
Gemini 3.1 Pro Biggest practical context, with native audio and video
💨 Gemini 3.1 Flash-Lite Ultra-cheap multimodal — Google's budget flash tier
✖️ Grok 4.3 Cheap frontier model with native video and live X data

3You’ll know it worked 38 checkable outcomes in this chapter

  • A list of abstract scores and extracted method JSON appears in the LM Studio output
  • The output lists the top 5 variances, traces each to a driver, and flags any unreconciled items
  • All rows have standardized names and extracted countries in JSON output
  • Engineer receives a detailed bug report with reproduction steps, environment details, and the on-screen error
  • HR manager receives a completed grievance letter ready for review
  • The system outputs a warm brand voice caption and alt-text for the dropped image without sending data to external servers
  • The tool runs, performs the specified task, and logs its output
  • Bulk CVs are scored 1-5 and names removed, then a brief is generated by Claude Opus

38 outcomes in all — one per recipe below.

4FAQ, Tips & How-to 39

one problem, one solution, one action

Research & data tools8

How-to Qwen3.6 Scientist

Need a ranked, method‑focused paper list from dozens of abstracts

A ranked, structured shortlist of papers produced overnight on a laptop, with no per-token cost and nothing leaving the machine.

~5 min · no code AI-generated
How-to Gemini Pro Scientist

Need a side‑by‑side methods and effect‑size comparison from many papers

A cross-paper comparison table with figure-level citations, built in one pass instead of paper-by-paper.

~5 min · no code AI-generated
How-to gpt-oss-120b Scientist +1

Can't move regulated data offsite but need analysis

High-quality, multi-step analysis on regulated data, kept entirely on-premise at ~31 tokens/sec.

~5 min · no code AI-generated
How-to DeepSeek V4 Finance +1

Label 50 000 transactions accurately

Every transaction consistently categorised at frontier quality, for a fraction of the cost of a flagship API.

~5 min · no code AI-generated
How-to gpt-oss-20b Investor

Need to draft confidential deal docs without data leaving

Frontier-capable document work on confidential deal materials, with nothing leaving the firm's own hardware.

~5 min · no code AI-generated
How-to Claude Opus Investor

Need a full sector brief with TAM, incumbents, moats and risks

A deep, well-reasoned sector brief that would take a junior analyst a day, done in minutes — using the best model for the job when privacy constraints do not apply.

~5 min · no code AI-generated
How-to Claude Opus Robotics

Grip‑pattern classifier too big for STM32 flash

A concrete INT8 quantization plan with size and latency estimates the engineer can verify on the target hardware before committing to a toolchain.

~5 min · no code AI-generated
How-to gpt-oss-20b Robotics

Need real‑time EMG help on a Jetson with limited RAM

A capable local assistant on the Jetson that fits the memory budget and responds in real time, with no data leaving the lab.

~5 min · no code AI-generated

Internal tools & ops12

How-to Phi-4-mini Finance +2

Redact sensitive profit‑and‑loss data on my laptop

The sensitive numbers never leave the laptop, while the heavy reasoning still uses the best cloud model — a privacy/quality split.

~5 min · no code AI-generated
How-to GPT-5 Founder

Pull sign‑ups from a CSV, dedupe them and receive a daily email summary

A working internal utility shipped in an afternoon, with the model handling the multi-step plan-and-implement loop.

~5 min · no code AI-generated
How-to Phi-4-mini Operations

Messy company names and missing country info in a table

A messy export cleaned in minutes at zero cost, with a model small enough to run anywhere.

~5 min · no code AI-generated
How-to Gemini Pro Support

Only have a screen recording of an issue

A structured bug report from a raw video, without an engineer watching it back frame by frame.

~5 min · no code AI-generated
How-to Qwen3.6 Sales +1

Messy call notes

Crisp account briefs in seconds, with pipeline data kept fully local.

~5 min · no code AI-generated
How-to gpt-oss-20b HR / People

Need to score resumes consistently while keeping data private

Every candidate scored against the same criteria, with application data kept private and no API cost.

~5 min · no code AI-generated
How-to GLM Founder +1

Need cheap multi‑file refactoring for a feature

Frontier-grade coding help on the team’s real repo without a frontier-sized bill or vendor lock-in.

~5 min · no code AI-generated
How-to GLM Small biz +1

Need a low‑budget internal app but want cutting‑edge code

A working internal tool built with frontier-class coding help, at a price a small budget can absorb.

~5 min · no code AI-generated
How-to MiniMax Founder +1

Want a coding assistant that never leaves your network

A private, commercially-licensed coding agent on owned hardware — no per-token bill, no code leaving the building.

~5 min · no code AI-generated
How-to MiniMax Operations +1

Need a cheap always‑on code‑run‑fix bot

A reliable automated agent loop at a per-run cost low enough to run continuously.

~5 min · no code AI-generated
How-to gpt-oss-20b HR / People

Bulk scoring of anonymous CVs

Candidate data handled privately at scale, with the careful frontier model reserved for the high-stakes brief that goes to the client.

~5 min · no code AI-generated
How-to Qwen3.6 Robotics

Routine firmware queries handled locally, only tough design calls use an API

Near-zero API cost for the 80% of questions a capable local model handles, with frontier reasoning available on demand for the 20% that need it.

~5 min · no code AI-generated

Dashboards & analytics1

How-to Claude Opus Finance

Need clear month‑end variance explanation for the board

A board-ready narrative with the careful, traceable reasoning that high-stakes financial writing needs.

~5 min · no code AI-generated

Knowledge & docs4

How-to gpt-oss-20b Founder +1

Need a private, offline drafting partner for sensitive strategy

A genuinely useful assistant for sensitive early-stage work, at zero cost and full privacy.

~5 min · no code AI-generated
How-to Llama 4 Operations

Cross-document answers without building a full retrieval system first — the long context does the heavy lifting.

~5 min · no code AI-generated
How-to DeepSeek V4 Small biz +1

Need occasional contract, email, or code help on a tiny budget

Access to frontier-class help on a tight budget, paying only for the few hard tasks that need it.

~5 min · no code AI-generated
How-to gpt-oss-120b Physician

Discharge notes must stay in the clinic

Drafting quality close to a frontier cloud model while PHI never leaves the practice, with the cloud option reserved for genuinely de-identified text.

~5 min · no code AI-generated

Content & marketing6

How-to Claude Opus Founder +1

Investor update feels vague and alarming

A crisp, credible update that reads like it was written by a seasoned operator.

~5 min · no code AI-generated
How-to Claude Opus HR / People

Rough HR notes need a legal‑safe grievance letter

A professionally toned, defensible letter drafted from rough notes.

~5 min · no code AI-generated
How-to Gemini Pro Creator

Need quick shorts from a long video

A ready-to-edit shorts plan pulled straight from the video, no manual scrubbing.

~5 min · no code AI-generated
How-to GPT-5 Creator

Need a complete 6‑part series outline plus episode 1 script

A full series outline plus first-draft scripts in one sitting.

~5 min · no code AI-generated
How-to Gemma 4 Creator +1

Need on‑brand captions and alt‑text for a photo batch without uploading files

On-brand captions and accessible alt-text for a whole shoot, generated privately at no cost.

~5 min · no code AI-generated
How-to gpt-oss-20b Small biz +1

Need complete product‑line descriptions from bullet points

A full batch of polished listings written at zero ongoing cost.

~5 min · no code AI-generated

Forms, surveys & feedback3

How-to DeepSeek V4 Operations +1

I need cheap auto‑routing of tickets

Every ticket pre-routed at frontier quality, cheaply enough to never sample.

~5 min · no code AI-generated
How-to Phi-4-mini Support

Need instant on‑premise ticket tagging

Real-time triage tags with no API bill and no customer data leaving the network.

~5 min · no code AI-generated
How-to Phi-4-mini HR / People

Need to group employee survey comments privately

A thematic summary of candid feedback that honours the privacy promise made to employees.

~5 min · no code AI-generated

Customer & client portals2

How-to DeepSeek V4 Support +1

Lots of tickets and a tiny team

Consistent, good first drafts on every ticket without a flagship-sized API bill.

~5 min · no code AI-generated
How-to Gemma 4 Small biz +1

Need consistent answers to routine customer queries

Consistent answers to routine questions without a paid chatbot holding the business’s content.

~5 min · no code AI-generated

CRM & sales2

How-to GPT-5 Sales

Need a custom outreach plan for a big prospect

A researched, ready-to-run outreach plan instead of a generic template.

~5 min · no code AI-generated
How-to Grok Sales

Need a current news hook for your sales call

A timely, specific opener based on this-week news, not last-year facts.

~5 min · no code AI-generated
FAQ gpt-oss-20b Everyone

What is quantization, and how much quality do I lose?

A model's knowledge lives in billions of numbers (weights) normally stored at 16-bit precision. Quantization rounds them to fewer bits — 8, 5 or 4 — so the file is smaller and runs faster, like saving a photo as a smaller JPEG. The trade-off has a 'knee': going to 8-bit is almost lossless, 4-bit costs a small, usually-unnoticeable amount of quality, and below 4-bit quality drops sharply. That is why 4-bit (the 'Q4_K_M' setting in GGUF) is the usual sweet spot: pick Q4_K_M for the biggest model that fits your memory, and step up to Q5 or Q8 only if you have room to spare.

GitHub ↗ AI-generated

The same set on /recipes, filtered by tool and role.

5Videos 17

+ 5 more in the video library.

6FAQ 38

What is quantization, and how much quality do I lose?

A model's knowledge lives in billions of numbers (weights) normally stored at 16-bit precision. Quantization rounds them to fewer bits — 8, 5 or 4 — so the file is smaller and runs faster, like saving a photo as a smaller JPEG. The trade-off has a 'knee': going to 8-bit is almost lossless, 4-bit costs a small, usually-unnoticeable amount of quality, and below 4-bit quality drops sharply. That is why 4-bit (the 'Q4_K_M' setting in GGUF) is the usual sweet spot: pick Q4_K_M for the biggest model that fits your memory, and step up to Q5 or Q8 only if you have room to spare.

GGUF, MLX, MXFP4 — which model format should I download?

These are containers for a quantized model. GGUF is the standard, used by Ollama and LM Studio on any machine — the safe default. MLX is Apple's format, tuned for Mac (Apple Silicon) and often noticeably faster than GGUF on the same Mac, so prefer it if you are on a Mac. MXFP4 is a 4-bit format that OpenAI's gpt-oss models ship in natively, giving full quality with no separate quantization step. In practice: on a Mac, look for an MLX build; everywhere else, download the GGUF (usually the Q4_K_M file).

How much VRAM or RAM do I need to run a model locally?

A useful rule of thumb at 4-bit (Q4): the memory in gigabytes is roughly the number of parameters in billions. So a 7B–8B model needs about 5–6 GB and runs on a normal laptop; a 70B model needs about 40–48 GB and wants a big GPU or a 64 GB+ Mac; and OpenAI's 120B gpt-oss (in its MXFP4 format) is about 61 GB, fitting a single 80 GB GPU or a 128 GB unified-memory box. Add a few GB on top for the KV cache, which grows with how much context you use. If a model does not fit in your VRAM, it either will not run or runs very slowly.

What is a 'mixture of experts' — how can a 120B model run on one machine?

A Mixture of Experts (MoE) model is split into many specialist sub-networks, but only a few 'fire' for each word generated. So while gpt-oss-120b has 117B total parameters, only about 5.1B are active per token — it runs with the speed of a much smaller model while keeping the knowledge of a big one. Combined with its native 4-bit MXFP4 format (which shrinks the weights to about 61 GB), that is how a 120-billion-parameter model fits and runs on a single 128 GB box. Qwen3.6-35B-A3B uses the same trick: 35B total but only about 3B active per token.

What is the context window, and when does a 1-million-token model actually help?

The context window is how much text a model can consider at once — the prompt plus its own answer — measured in tokens (roughly ¾ of a word each). A bigger window lets you drop in more at once: a whole book, a large codebase, or dozens of papers, without first building a retrieval system. A 1-million-token model like Gemini 3.1 Pro can hold all of that together and reason across it. For short chats it makes no difference; it pays off when you genuinely need the model to see a lot of material at the same time. Remember that filling a big context uses more memory (the KV cache) and, on paid APIs, costs more.

What are GLM and MiniMax — and can I trust these cheap 'open' models?

GLM (Zhipu AI / Z.ai) and MiniMax are Chinese AI labs shipping frontier-class open-weight models, especially strong at coding and agentic work, at a fraction of US-flagship prices — GLM-5.2 rivals Claude Opus on agent benchmarks for roughly a sixth of the cost, and MiniMax-M2 is cheap enough to leave running on a schedule. You can download the weights or use a cheap API (or OpenRouter). One catch worth learning here: 'open weights' is not the same as 'open licence'. Always check the actual licence — GLM-5.2 is MIT and MiniMax-M2 allows commercial use, but the newer MiniMax-M2.7 quietly switched to a non-commercial licence, so the strongest version can't be used in a paid product without permission. And unless you self-host, your prompts still run on the vendor's servers — keep that in mind for sensitive data.

What is Jan, and who makes it?

Jan is a free desktop application that lets you run AI language models (like Llama, Mistral, or Qwen) directly on your own computer, so you can chat with an AI without sending anything to the internet. It is made by Menlo Research and works similarly to ChatGPT, but everything runs locally. You download it once, install it like any app, and use it without a subscription or account.

How does Jan compare to Ollama and LM Studio?

All three are free tools for running local AI models — the main differences are audience and openness. Ollama is command-line focused and best for developers. LM Studio has a polished interface but its app code is closed-source. Jan sits in the middle: a graphical chat interface resembling ChatGPT and fully open-source, making it a good fit for people who want a familiar UI and want to verify the software. Performance differences are small.

What model formats does Jan support, and what is GGUF?

Jan's local models use the GGUF format, a file type designed to package AI models efficiently for consumer hardware. GGUF models come in quantized versions (Q4, Q8, etc.) — lower numbers are smaller and faster but slightly less accurate; higher numbers are larger and more precise. Q4_K_M is a good balance. On Apple Silicon Macs, Jan also supports the MLX format for extra speed.

Does Jan work offline? Does my data stay private?

When you run a local model in Jan, everything happens on your own computer — your conversations are never sent to any server, there is no telemetry by default, and no account is required. After the initial model download, Jan works with no internet connection. Your data is stored in a local folder on your machine and goes nowhere else.

How much RAM do I need for different model sizes?

A rough guide: 8 GB RAM runs small models up to about 3B for basic chat; 16 GB handles 7B–8B models well (the sweet spot for quality vs speed on most laptops); 32 GB or more is needed for 13B+ models. Jan's Hub flags if a model likely won't fit, so you can check before downloading.

What is LM Studio?

LM Studio is a free desktop application that lets you download and run AI language models directly on your own computer — no internet needed once a model is downloaded. It provides a friendly graphical interface similar to ChatGPT, but everything runs locally. It works on Mac (Apple Silicon), Windows, and Linux.

What other tools and apps can I use with LM Studio?

Because LM Studio's local server mimics the OpenAI API, many third-party tools connect to it out of the box — for example Obsidian, AnythingLLM, Continue.dev, Open WebUI, and n8n. LM Studio also supports the MCP protocol for connecting AI agents to external data sources.

How is LM Studio different from Ollama?

LM Studio is a graphical desktop app — you click buttons, browse models visually, and chat in a built-in interface, friendlier for beginners with no coding. Ollama is command-line first and better for scripting or automation. Both use the same underlying engine (llama.cpp), so quality and speed are comparable; the difference is interface and workflow. A common pattern is LM Studio for exploring models and Ollama for integrating into code.

Can I use LM Studio without an internet connection?

Yes, after the initial download. You need internet once to install LM Studio and once to download each model. After that, the app and all your models run entirely offline — useful in settings with restricted internet, or when you want guaranteed privacy.

How do I choose between a 7B and a 13B model?

The number (7B, 13B) refers to billions of parameters — a rough measure of capacity. Bigger models generally give smarter answers but need more RAM and run slower. For most everyday tasks on a typical laptop, a 7B or 8B model at Q4_K_M quantization is a practical starting point. LM Studio's Discover tab warns you if a model is likely too large for your hardware.

Why is the model generating slow or strange output?

Slow output usually means the model is too large for your GPU and is spilling into RAM — try a smaller model or a lower quantization (Q4 instead of Q8). Strange or repetitive output is often the wrong chat template; LM Studio normally auto-detects it, but if it looks broken, check the correct template is selected in the model settings. Out-of-memory errors are solved by a smaller model variant.

Can I use LM Studio commercially — for a research lab or at my university?

Yes. Since mid-2025, LM Studio is free for both personal and workplace/commercial use, so you can run it in a lab or office without a license fee. The models themselves are governed by their own licenses (most popular ones permit research use freely). Organizations needing team-sharing or enterprise controls have optional paid tiers, but they're not required for standard use.

Is LM Studio free to use?

Yes. As of mid-2025, LM Studio is free for both personal use and use at work, with no commercial license required. Optional paid Teams/Enterprise tiers exist for organizations needing private collaboration or SSO, but the core desktop app is free, and the models it runs are free and open-source.

What computer do I need — what are the system requirements?

On Mac you need Apple Silicon (M1 or newer) and a recent macOS; Intel Macs are not supported. On Windows you need a 64-bit PC with AVX2 CPU support, at least 16 GB RAM, and ideally some dedicated GPU memory. Linux is also supported. You can run it without a dedicated GPU, but it will be noticeably slower.

+ 18 more in the library.

7Glossary 79 terms

Show the 79 terms
Ollama
ollama run
Starts an interactive chat session with a model; if the model isn't already downloaded, Ollama downloads it automatically first.
ollama pull
Downloads a model from the Ollama library to your computer without starting a chat session.
ollama list
Shows all models you have downloaded and stored locally on your machine (the canonical short form of this command is ollama ls).
ollama ps
Lists which models are currently loaded in memory and actively running.
ollama stop
Stops a running model, unloading it from memory without removing it from your computer.
ollama rm
Permanently deletes a downloaded model from your computer to free up disk space.
ollama serve
Manually starts the Ollama background server that listens for requests; on most systems this starts automatically at login.
hermes setup
Runs the Hermes Agent interactive setup wizard that walks you through configuring all or part of your Hermes installation.
hermes --tui
Launches Hermes Agent in its terminal user interface mode instead of the classic command-line prompt interface.
systemctl edit ollama.service
Opens the Linux service configuration for Ollama so you can add environment variables (such as OLLAMA_HOST) that apply every time the server starts.
/bye
A slash command you type inside an Ollama chat session to end the conversation and return to your normal terminal prompt (also works as /exit).
>>>
The prompt symbol Ollama shows when it is waiting for you to type a message inside an interactive chat session.
OLLAMA_HOST
An environment variable that controls which network address Ollama listens on; set it to 0.0.0.0:11434 to allow other computers on your local network to connect.
OLLAMA_KEEP_ALIVE
An environment variable that sets how long a model stays loaded in memory after its last use; the default is 5 minutes, but you can set values like 24h to keep it loaded longer.
http://localhost:11434
The default web address where Ollama's API server runs on your own computer, reachable only from that same machine.
/api/chat
Ollama's built-in REST API endpoint for sending chat messages and receiving model responses programmatically.
/v1/
The URL prefix for Ollama's OpenAI-compatible API, which lets software written for OpenAI's API talk to your local Ollama models instead.
~/.hermes/config.yaml
The main configuration file for Hermes Agent, stored in a hidden folder in your home directory, where you set the model provider, base URL, and other non-secret preferences.
~/.hermes/.env
A file in your Hermes Agent folder that stores secret values such as API keys, kept separate from the main config file so credentials are not accidentally shared.
provider: custom
A setting in the Hermes Agent config.yaml that tells Hermes to call a custom OpenAI-compatible endpoint directly, such as your local Ollama server, using the base_url you specify.
[Service]
A section header in a Linux systemd unit file where you place environment variable definitions that apply to the service being configured.
llama3
Meta's Llama 3 open-weight language model, available through Ollama and described as the most capable openly available LLM at the time of its release.
qwen2.5
Alibaba's Qwen 2.5 open-weight language model series, available through Ollama and well-regarded for coding and mathematics tasks.
gemma
Google's open-weight language model, available through Ollama in 2B and 7B parameter sizes.
mistral
Mistral AI's 7B open-weight language model, available through Ollama and distributed under the Apache license.
openai
A Python library (also the name of the company) that provides a standard way to call AI chat APIs; Ollama supports the same interface so you can use this library with local models.
pip install openai
The terminal command that installs the OpenAI Python library onto your computer so your Python scripts can call AI APIs.
api_key
A secret string that identifies who is making an API request; when using Ollama locally no real key is needed, but the library requires the field to exist.
base_url
A configuration setting that tells an API client where to send its requests; point it to http://localhost:11434/v1 to redirect OpenAI library calls to your local Ollama server.
localhost
A special hostname that always refers to your own computer, so a service at localhost is only reachable from that same machine.
"stream": false
A JSON setting in an API request that tells the model to send its entire response as one message instead of word-by-word as it generates.
ifconfig
A terminal command on Mac and Linux that displays your computer's network addresses, useful for finding the IP address other devices on your network can use to reach you.
ip addr
A terminal command on Linux (modern alternative to ifconfig) that shows all network interfaces and their IP addresses.
ipconfig
A terminal command on Windows that displays your computer's network configuration including its local IP address.
LM Studio
lms
The command-line tool bundled with LM Studio that lets you start the server, download models, and manage everything from a terminal instead of the desktop app.
lms server start
Launches LM Studio's local API server so other programs on your computer (or network) can send it requests and get AI responses back.
lms server stop
Gracefully shuts down the running LM Studio API server, terminating any in-progress requests before stopping.
lms server status
Prints whether the LM Studio API server is currently running and which port it is listening on.
lms --version
Prints the installed version number of the lms command-line tool — the actual documented subcommand is lms version, but both forms report the current CLI version.
llmster
The headless (no desktop window) daemon version of LM Studio designed for servers or machines without a screen — it runs as a standalone background service and can still serve models over the API.
hermes setup
A setup command for the Hermes AI agent that guides you through configuring your model provider, including connecting it to a local LM Studio server.
hermes --tui
Starts Hermes in its text user interface (TUI) mode — a keyboard-driven chat panel that runs entirely inside your terminal with live streaming and modal overlays.
chmod +x start-local-llm.sh
A shell command that marks a script file as executable on Mac or Linux so you can run it directly; without this step the operating system refuses to run the script.
pip install openai
The Python package-manager command that downloads and installs the OpenAI Python library, which LM Studio also accepts because it speaks the same API format.
http://localhost:1234/v1
The full address of LM Studio's OpenAI-compatible API server on your own machine — localhost means 'this computer', 1234 is the default port number, and /v1 is the path prefix for the OpenAI-compatible endpoints.
localhost:1234
The host and port where LM Studio's server listens by default — shorthand for 'your own machine, port 1234'.
localhost
A special hostname that always means 'this computer' — using it ensures the connection never leaves your machine.
http://<your-ip>:1234/v1
The address other devices on your local network use to reach your LM Studio server — replace <your-ip> with your computer's actual network IP address (e.g. 192.168.1.5).
0.0.0.0
A special network address meaning 'listen on all network interfaces' — when LM Studio binds to this (via lms server start --bind 0.0.0.0), devices on your local Wi-Fi or wired network can connect to it, not just your own computer.
openai
The name of a Python library originally made for OpenAI's cloud API; LM Studio intentionally speaks the same format, so you can reuse this library to talk to your local models instead.
api_key
A configuration field where you provide a password or token to authenticate with an API; LM Studio does not require a real key by default, but the field must still be present (any placeholder string works).
base_url
A configuration field that tells a client library where the API server lives — for LM Studio you set this to your local server address instead of OpenAI's cloud address.
config.yaml
A plain-text configuration file written in YAML format — tools like Hermes read this file at startup to know which server URL, model, and preferences to use.
~/.hermes/config.yaml
The main configuration file for the Hermes tool, stored in a hidden folder in your home directory — you edit it to point Hermes at your local LM Studio server.
~/.hermes/.env
A hidden environment-variable file inside the Hermes config folder where you can store API keys and secrets separately from the main config file.
Jan
http://localhost:1337
A common way to write the base URL of Jan's built-in API server; Jan's docs show http://127.0.0.1:1337 as the actual default address, and localhost is simply a hostname alias for 127.0.0.1 on most computers.
localhost:1337
The host and port of Jan's local API server (shorthand without the http:// prefix); Jan's docs use 127.0.0.1:1337 as the canonical form, and you can change the port under Settings > Local API Server > Configuration.
model
A field in an API request body that tells the server which AI model to use; when talking to Jan you set this to the model ID shown in Jan's model list.
openai
A Python library originally made for OpenAI's cloud service that can also talk to any OpenAI-compatible server — including Jan's local server — using the same code.
pip install openai
A shell command that downloads and installs the openai Python library onto your computer so you can import it in your scripts.
api_key
A string you set in Jan's API server configuration that callers must include in requests; Jan accepts any string you choose, and you can also leave it empty to disable authentication entirely.
http://localhost:1337/v1
The base URL of Jan's local OpenAI-compatible API server once enabled; append /chat/completions to send chat requests as you would to OpenAI.
base_url
The openai SDK parameter set to Jan's local server so code written for the OpenAI API is redirected to your local model with no other changes.
curl
The command-line tool used in the lessons to send a test request to Jan's local API and confirm the server is responding.
Claude Opus 4.8
parameters
The adjustable weights a model learns during training; more parameters (e.g. 7B vs 120B, where B = billion) usually means smarter but slower and heavier to run.
quantization
Shrinking a model by storing its weights at lower precision (e.g. 4-bit instead of 16-bit) so it fits a smaller machine, at a small quality cost.
tokens per second
How fast a model generates text — higher feels snappier. It depends on both the model size and your hardware.
context window
How much text a model can consider at once (your prompt plus its reply), measured in tokens; a bigger window lets you paste in more.
MoE
Mixture of Experts — an architecture that activates only a slice of the model's parameters per token, so a huge model can run at the cost of a much smaller one (e.g. DeepSeek, GLM, MiniMax).
reasoning model
A model trained to "think" through steps before it answers, trading speed for accuracy on hard problems.
distillation
Training a smaller model to imitate a bigger one, keeping much of the quality at a fraction of the size.
multimodal
A model that handles more than text — images, audio, sometimes video — not just words.
open-weight
A model whose trained weights you can download and run yourself — free to run and private — as opposed to a closed cloud API.
open weights vs open licence
You can download an open-weight model, but its licence may still restrict commercial use — always check before shipping (some MiniMax and Llama terms do this).
closed / API model
A model you can only use over the vendor's cloud API: highest quality, but you pay per token and your data leaves your machine.
per-token pricing
Cloud models bill by the token, charged separately for input and output; a small model can be roughly 5× cheaper than a frontier one.
frontier model
The current top tier of most-capable models (e.g. Claude Opus, GPT-5, Gemini Pro) — the most powerful and the most expensive.
local model
A model that runs on your own hardware so nothing leaves your machine; what you can run is limited by your memory.
VRAM
The memory on your graphics card — the main limit on which local models you can run (rough rule: the model's size in GB must fit in VRAM).

8See also

💬 Discuss this chapter

Ask, share, or report — over on the Heidelberg AI community forum.