General2 min read
Foundations
The foundation layer explains the model boundary. A model predicts or generates from context; it does not inherently have current knowledge, durable memory, permission...
- Status
- evergreen
- Updated
- Topics
- ai-engineering · foundations · map-of-content
Foundations
- What is an LLM? — tokens, prediction, model families, multimodality, and limits.
- Context windows and inference — context as temporary working memory, sampling, reasoning, and cost.
- Local AI hardware and inference — model fit, VRAM, unified memory, bandwidth, quantization, and platform choice.
- Inference Engines and Serving — engines, prefill vs decode, continuous batching, paged attention, and speculative decoding.
- KV Cache and Long-Context Costs — the KV cache as the dominant long-context cost and the stack that cuts it.
- Test-Time Compute and Reasoning Models — spending compute at inference time; reasoning models and effort budgets.
- Structured outputs and tool calling — turning model decisions into software actions.
- Fine-tuning decision framework — when retrieval, tools, prompting, or adapters solve the actual gap.
- Context engineering — the next layer after prompting.
flowchart LR
Input[Context] --> Model[Foundation model]
Model --> Text[Text or multimodal output]
Model --> Schema[Structured decision]
Schema --> Tool[Tool call]
Tool --> Environment[Environment result]
Environment --> Input
In plain terms: you send context to the model, it produces either freeform text or a structured decision, that decision can invoke a real tool, the tool's result feeds back into the next round of context, and the loop continues. Everything below this hub is about making that loop faster, safer, and more capable.
Recommended reading order#
Start with the conceptual foundations, then move to the practical hardware and adaptation decisions:
- What is an LLM? — what a model is and is not
- Context windows and inference — how context and sampling work
- Structured outputs and tool calling — turning model output into software actions
- Local AI hardware and inference — where and on what hardware to run models
- Inference Engines and Serving — what the serving stack does between model and user
- KV Cache and Long-Context Costs — why long context is expensive and how to cut it
- Test-Time Compute and Reasoning Models — reasoning models and effort budgets
- Fine-tuning decision framework — when training is the right lever vs retrieval or prompting
Where next#
Once the foundations are solid, move to the layer that composes models into systems: Agents and harnesses.
← Conversation Coverage · Home · What Is an LLM →