All questions
Showing of 55What is an "open-weight" model, and how is it different from open source and proprietary models?
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:
Last attempt -
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.
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 ↓
Why would a team run an LLM locally or self-hosted instead of calling a hosted API?
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:
Last attempt -
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.
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 ↓
What are the major open-weight model families in 2026, and who makes them?
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:
Last attempt -
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.
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 ↓
What is Ollama and when would you use it?
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:
Last attempt -
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.
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 ↓
What is quantization, and why does it matter so much for local LLMs?
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:
Last attempt -
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.
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 ↓
What is GGUF, and where does it fit?
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:
Last attempt -
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:
Q2andQ3: smallest files, with clear quality loss.Q4: a common balance of size and quality.Q5andQ6: 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.
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 ↓
How do I estimate how much VRAM a model needs just to load it?
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:
Last attempt -
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.
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 ↓
What does "dense versus mixture-of-experts (MoE)" mean when running models locally?
What is an OpenAI-compatible endpoint, and why do local runtimes offer one?
What is llama.cpp, and what problem does it solve?
What is the difference between running a "base" model and an "instruct" model locally?
What are hosted open-model providers like Together, Fireworks, and Groq, and when would you use them instead of self-hosting?
Which sampling parameters matter when running a model locally, and how do you set temperature, top-p, top-k, and repetition penalties?
What is a chat template, and what goes wrong if you format prompts for a local model yourself?
Walk me through the full VRAM math for serving a model, including the KV cache.
Compare the main quantization formats: GGUF, AWQ, GPTQ, and FP8. When would you pick each?
How do you decide between Ollama, llama.cpp, and vLLM for a deployment?
What is continuous batching, and why does it matter so much for serving throughput?
What is PagedAttention, and how does vLLM manage the KV cache with it?
Explain the KV cache: what it stores, how it grows, and why it dominates memory at long context.
How do you actually read and compare model licenses like Apache 2.0, MIT, the Llama Community License, and the Gemma terms?
What is the difference between throughput and latency in LLM serving, and how do you tune for each?
How would you stand up a local OpenAI-compatible server with vLLM and point an existing app at it?
What quantization level should you choose, and how do you reason about the quality-versus-memory tradeoff?
What is speculative decoding, and when does it actually help?
What is prefix caching (prompt caching) in local serving, and when is it worth enabling?
How do you serve a fine-tuned open model? Compare LoRA adapters versus merged weights.
What is SGLang, and how does it compare to vLLM and TGI?
How do you evaluate whether a local or quantized model is good enough for your use case?
What are the tradeoffs of on-device or edge inference (phone, laptop, embedded)?
How do you pick a model size for a given task and hardware budget?
What is LM Studio, and where does it fit among local tools?
What changes when you run an open reasoning model locally instead of a plain instruct model?
How would you fine-tune an open-weight model on your own data, and when is LoRA or QLoRA the right choice?
How do you get reliable JSON and tool calls out of a local open-weight model?
Go deep on KV-cache scaling. What techniques reduce it, and how much do they help?
Explain tensor parallelism versus pipeline parallelism for multi-GPU serving. When do you use each?
How would you size a cluster to serve N concurrent users at a target latency? Walk me through capacity planning.
Why are prefill and decode so different, and how does that shape batching and hardware choices?
How does quantization actually work under the hood, and how do AWQ, GPTQ, GGUF k-quants, and FP8 differ in accuracy impact?
How do you maximize throughput on a single GPU serving an open model?
Give me a deep dive on speculative decoding: draft models, acceptance rate, EAGLE and Medusa, and when it backfires.
How do you deploy and hot-swap multiple LoRA adapters at serving time?
How do you benchmark a serving setup properly?
What does your observability stack look like for a self-hosted LLM in production?
How do you handle model updates, version pinning, and rollout for self-hosted models?
How do you decide between self-hosting and a hosted open-model provider at scale? Give me the cost model.
How does context length affect memory and performance, and how do you serve very long context economically?
How do you serve MoE models efficiently, and what is different from serving dense models?
Design a cost-optimal multi-model serving platform for a company with diverse LLM workloads.
Walk me through disaggregated prefill and decode serving, and why frontier stacks separate them.
How do you push a quantized model to the accuracy edge for production?
Design an on-premises, air-gapped LLM deployment for a regulated enterprise.
How would you architect global, multi-region, low-latency self-hosted inference under GPU scarcity and cost pressure?
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?
This answer is part of Pro.
The full written answer, with the trade-offs and follow-ups an interviewer will probe.
No matches
Try a different filter or search term.
Open-Source & Local LLMs cheatsheet
- The 30-second mental model01
- Open-weight model landscape (2026)02
- Open weights vs open source vs proprietary03
- Why local / self-hosted vs API04
- Local runtimes and serving engines05
- Quantization reference06
- VRAM sizing formulas07
- Quickstarts08
- Serving performance tuning09
- Hosted open-model providers10
- Local vs API decision guide (cost model)11
- Model selection12
- + 4 more inside
- + 10 more inside
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.
MEAN
MongoDB, Express, Angular, Node.jsMERN
MongoDB, Express, React, Node.jsDjango
Python Full-Stack DevelopmentRuby on Rails
Convention over ConfigurationServerless on AWS
Serverless Architecture on AWSInterviewers also test these - they're common to every stack, whichever one you picked above.
Flutter Mobile
Flutter Cross-Platform Mobile DevelopmentInterviewers also test these - they're common to every stack, whichever one you picked above.
Spring Boot
Enterprise Java Development.NET
Microsoft EcosystemVue
Vue.js, Vite, TypeScript, Tailwind, Node.jsGo Backend
Golang, gRPC, PostgreSQL, Redis, RabbitMQInterviewers also test these - they're common to every stack, whichever one you picked above.
FastAPI
Python, FastAPI, SQLAlchemy, PostgreSQLReact Native
React, TypeScript, Redux, FirebaseiOS Native
Swift, SwiftUI, UIKit, FirebaseAndroid Native
Java, Jetpack Compose, FirebaseDevOps / Platform
Docker, Kubernetes, Terraform, CI/CDInterviewers also test these - they're common to every stack, whichever one you picked above.
AI Engineer
LLMs, RAG, Agents, EvalsAI-Powered Developer
Claude Code, Copilot, Agentic WorkflowsCore SWE Interview Prep
Data structures, algorithms, OS, concurrency, networking, gitInterviewers also test these - they're common to every stack, whichever one you picked above.
Interviewers also test these - they're common to every stack, whichever one you picked above.