LearnThatStack Ace your next interview
AI Engineering
Open-Source & Local LLMs.
Change topic Change
Practice · Questions

All questions

Showing of 55
Beginner 14
01

What is an "open-weight" model, and how is it different from open source and proprietary models?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

These labels describe different levels of access and freedom.

  • Proprietary: a vendor keeps the weights and exposes the model through a service. Users cannot run or inspect the model independently.
  • Open-weight: users can download trained parameters and run them on their own hardware. The release may still omit training data, training code, or detailed methods. Its license may restrict some uses or redistribution.
  • Open-source AI: the release must provide the freedoms and materials needed to use, study, modify, and share the system under a qualifying license. Open-source software around a model does not automatically make the model itself open source.

Always read the exact model license and card. Check commercial use, redistribution, acceptable-use terms, included artifacts, and whether a modified model can be shared. Downloadable weights are useful, but they describe access, not the full legal or technical openness of the system.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

02

Why would a team run an LLM locally or self-hosted instead of calling a hosted API?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Five reasons appear often. Each has a trade-off.

  • Privacy and data control: prompts and outputs never leave your infrastructure, which matters for regulated data (health, finance, legal) or contractual restrictions. Nothing is logged by a third party.
  • Cost at scale: hosted APIs are priced per token and are cheap until volume is enormous.
  • Latency and locality: you can put the model next to your application, avoid network round-trips, and control tail latency instead of sharing a multi-tenant queue.
  • Offline and air-gapped: on-prem, edge, or classified environments where calling the public internet is not an option.
  • Control and stability: no surprise deprecations, no silent model updates changing behavior, full choice of model, quantization, and sampling.

The honest counterweight: self-hosting means you own capacity planning, GPU procurement, on-call, upgrades, and evals. A well-used API is often cheaper and better for spiky or low-volume traffic.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

03

What are the major open-weight model families in 2026, and who makes them?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Several organizations publish widely used open-weight model families:

  • Meta develops Llama, with general-purpose dense and mixture-of-experts models.
  • Mistral AI develops Mistral and Mixtral, plus coding and smaller edge-focused variants.
  • Alibaba develops Qwen, including general, coding, vision, and reasoning models.
  • DeepSeek develops large mixture-of-experts and reasoning models.
  • Google develops Gemma, including compact and multimodal variants.
  • Microsoft develops Phi, a family focused on smaller models.

Model names, sizes, licenses, and supported context lengths change often. Check the official model card before choosing one. Compare candidates on your own task, hardware, language needs, safety tests, and license terms. Family reputation is only a shortlist; it does not replace evaluation of the exact checkpoint and quantization you plan to deploy.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

04

What is Ollama and when would you use it?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Ollama packages the main steps needed to run open-weight models on a local computer. It includes a model library, an inference engine, automatic processor placement, and a local HTTP server with its own and OpenAI-compatible interfaces.

You do not manage quantization files or compile anything; you run one command.

# Install, then pull and chat with a model
ollama run llama3.1:8b
# It also exposes a server on localhost:11434
curl http://localhost:11434/api/generate -d '{
  "model": "llama3.1:8b",
  "prompt": "Explain the attention cache in one sentence."
}'

Use Ollama for local development, prototyping, single-user desktop apps, quick model comparisons, and demos. It handles common quantized model files and runs on macOS, Linux, and Windows.

Where it fits less well is high-throughput production serving of many concurrent users. It is not optimized for continuous batching across large request volumes the way vLLM or SGLang are.

In practice: Ollama optimizes for developer experience and single-user simplicity; production multi-tenant serving is a different tool's job. Many teams prototype on Ollama, then graduate the winning model to vLLM for serving.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

05

What is quantization, and why does it matter so much for local LLMs?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Quantization stores model weights, activations, or the key-value attention cache with fewer bits. The attention cache holds information from earlier tokens during generation. Values trained at 16-bit precision may be stored with 8, 4, or fewer bits using scaling factors.

Weights usually dominate the model's memory footprint. Fewer bits reduce required video memory (VRAM) and can speed generation when memory bandwidth is the limit.

Why it matters locally: a 70B model at 16-bit needs around 140 GB, which is multiple data-center GPUs. The same model at 4-bit needs roughly 40 GB and fits on a single high-end card, or even a well-equipped workstation.

The tradeoff is quality. Aggressive quantization introduces rounding error that can degrade accuracy, and small models feel it more than large ones.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

06

What is GGUF, and where does it fit?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

GGUF is a model file format used by llama.cpp, Ollama, and the LM Studio app. One file can hold quantized weights, the tokenizer, the chat template, and other model details.

It replaced the older GGML format and is widely used for laptop and CPU inference.

GGUF comes in many quantization levels, and the naming tells you the tradeoff:

  • Q2 and Q3: smallest files, with clear quality loss.
  • Q4: a common balance of size and quality.
  • Q5 and Q6: larger files with better quality.
  • Q8: close to full precision but much larger.
# Illustrative: tags vary by model library
ollama pull <model>:<quantized-tag>

GGUF can run on a CPU, GPU, Apple Metal, or a mix. You can place some layers on the GPU and keep the rest in system memory. For high-throughput GPU servers, formats designed for GPU kernels may perform better.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

07

How do I estimate how much VRAM a model needs just to load it?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Start with the weights, because they set the memory floor. Video memory (VRAM) is roughly the parameter count multiplied by bytes per parameter.

  • 16-bit floating point: 2 bytes per parameter.
  • 8-bit: about 1 byte per parameter.
  • 4-bit: about 0.5 to 0.6 bytes per parameter (a bit over 4 bits once you include scales).

The quick estimate is about two gigabytes per billion parameters at 16-bit precision, or a little over half a gigabyte at 4-bit precision.

7B  model: FP16 ~14 GB   | 8-bit ~7 GB   | 4-bit ~4 GB
13B model: FP16 ~26 GB   | 8-bit ~13 GB  | 4-bit ~7 GB
70B model: FP16 ~140 GB  | 8-bit ~70 GB  | 4-bit ~40 GB

That covers only weights. Add the key-value attention cache, activations, runtime memory, and unused gaps. The attention cache grows with context length and concurrent requests.

A safe rule for a rough estimate is to take the weight figure and add 20 to 40 percent of headroom for short contexts. More if you serve long contexts or many concurrent requests.

Weights set the floor, while the attention cache often causes surprises with long contexts or high concurrency.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

08

What does "dense versus mixture-of-experts (MoE)" mean when running models locally?

Part of Pro
09

What is an OpenAI-compatible endpoint, and why do local runtimes offer one?

Part of Pro
10

What is llama.cpp, and what problem does it solve?

Part of Pro
11

What is the difference between running a "base" model and an "instruct" model locally?

Part of Pro
12

What are hosted open-model providers like Together, Fireworks, and Groq, and when would you use them instead of self-hosting?

Part of Pro
13

Which sampling parameters matter when running a model locally, and how do you set temperature, top-p, top-k, and repetition penalties?

Part of Pro
14

What is a chat template, and what goes wrong if you format prompts for a local model yourself?

Part of Pro
Intermediate 21
15

Walk me through the full VRAM math for serving a model, including the KV cache.

Part of Pro
16

Compare the main quantization formats: GGUF, AWQ, GPTQ, and FP8. When would you pick each?

Part of Pro
17

How do you decide between Ollama, llama.cpp, and vLLM for a deployment?

Part of Pro
18

What is continuous batching, and why does it matter so much for serving throughput?

Part of Pro
19

What is PagedAttention, and how does vLLM manage the KV cache with it?

Part of Pro
20

Explain the KV cache: what it stores, how it grows, and why it dominates memory at long context.

Part of Pro
21

How do you actually read and compare model licenses like Apache 2.0, MIT, the Llama Community License, and the Gemma terms?

Part of Pro
22

What is the difference between throughput and latency in LLM serving, and how do you tune for each?

Part of Pro
23

How would you stand up a local OpenAI-compatible server with vLLM and point an existing app at it?

Part of Pro
24

What quantization level should you choose, and how do you reason about the quality-versus-memory tradeoff?

Part of Pro
25

What is speculative decoding, and when does it actually help?

Part of Pro
26

What is prefix caching (prompt caching) in local serving, and when is it worth enabling?

Part of Pro
27

How do you serve a fine-tuned open model? Compare LoRA adapters versus merged weights.

Part of Pro
28

What is SGLang, and how does it compare to vLLM and TGI?

Part of Pro
29

How do you evaluate whether a local or quantized model is good enough for your use case?

Part of Pro
30

What are the tradeoffs of on-device or edge inference (phone, laptop, embedded)?

Part of Pro
31

How do you pick a model size for a given task and hardware budget?

Part of Pro
32

What is LM Studio, and where does it fit among local tools?

Part of Pro
33

What changes when you run an open reasoning model locally instead of a plain instruct model?

Part of Pro
34

How would you fine-tune an open-weight model on your own data, and when is LoRA or QLoRA the right choice?

Part of Pro
35

How do you get reliable JSON and tool calls out of a local open-weight model?

Part of Pro
Expert 20
36

Go deep on KV-cache scaling. What techniques reduce it, and how much do they help?

Part of Pro
37

Explain tensor parallelism versus pipeline parallelism for multi-GPU serving. When do you use each?

Part of Pro
38

How would you size a cluster to serve N concurrent users at a target latency? Walk me through capacity planning.

Part of Pro
39

Why are prefill and decode so different, and how does that shape batching and hardware choices?

Part of Pro
40

How does quantization actually work under the hood, and how do AWQ, GPTQ, GGUF k-quants, and FP8 differ in accuracy impact?

Part of Pro
41

How do you maximize throughput on a single GPU serving an open model?

Part of Pro
42

Give me a deep dive on speculative decoding: draft models, acceptance rate, EAGLE and Medusa, and when it backfires.

Part of Pro
43

How do you deploy and hot-swap multiple LoRA adapters at serving time?

Part of Pro
44

How do you benchmark a serving setup properly?

Part of Pro
45

What does your observability stack look like for a self-hosted LLM in production?

Part of Pro
46

How do you handle model updates, version pinning, and rollout for self-hosted models?

Part of Pro
47

How do you decide between self-hosting and a hosted open-model provider at scale? Give me the cost model.

Part of Pro
48

How does context length affect memory and performance, and how do you serve very long context economically?

Part of Pro
49

How do you serve MoE models efficiently, and what is different from serving dense models?

Part of Pro
50

Design a cost-optimal multi-model serving platform for a company with diverse LLM workloads.

Part of Pro
51

Walk me through disaggregated prefill and decode serving, and why frontier stacks separate them.

Part of Pro
52

How do you push a quantized model to the accuracy edge for production?

Part of Pro
53

Design an on-premises, air-gapped LLM deployment for a regulated enterprise.

Part of Pro
54

How would you architect global, multi-region, low-latency self-hosted inference under GPU scarcity and cost pressure?

Part of Pro
55

Given that open-weight models are approaching proprietary quality, how do you decide build-versus-buy for an entire organization, and what is the 2026 state of the art in open-model serving?

Part of Pro

No matches

Try a different filter or search term.

Know someone prepping for Open-Source & Local LLMs? Send them this set.
Pro · $10/mo

48 of 55 Open-Source & Local LLMs answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

Serverless on AWS

Serverless Architecture on AWS

Flutter Mobile

Flutter Cross-Platform Mobile Development

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

AI Engineer

LLMs, RAG, Agents, Evals

AI-Powered Developer

Claude Code, Copilot, Agentic Workflows

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git