Model Layer

Models, Reasoning & Inference

Explain how modern AI models operate and what system architects need to understand about them.

Why This Matters

Every production AI system sits on model behaviour: tokens, context windows, inference economics, and reasoning limits. Architects who skip this layer design agents that cannot be costed, evaluated, or bounded.

Architecture Position

Models sit at the Model Layer of the architecture map. They reason; they do not own execution, identity, or policy. See it on the architecture map.

Start Here

Core Concepts

Model Foundations

  • Neural networks
  • Transformers
  • Attention
  • Tokens
  • Embeddings

Training

  • Pre-training
  • Post-training
  • RLHF
  • DPO
  • Data
  • Fine-tuning

Inference

  • Prefill
  • Decode
  • KV cache
  • Batching
  • Quantization
  • Serving

Generation

  • Temperature
  • Top-k
  • Top-p
  • Structured generation

Reasoning

  • Reasoning models
  • Test-time compute
  • Planning vs reasoning
  • Model limitations

Architecture Decisions

  • Open vs closed models
  • Small vs large models
  • Hosted vs self-hosted
  • Model selection
  • Model routing

Advanced

Advanced material

Deeper guides for this domain are on the way.

Coming Soon

Architecture Patterns

Applied patterns for this domain live in the pattern library.

Browse architecture patterns

Case Studies

Enterprise walkthroughs that apply this topic in a full system.

Browse case studies

Related Topics

Roadmaps

This topic appears in the Enterprise AI Architect path.

Follow the Enterprise AI Architect roadmap
Go deeper

Learn this as part of the Enterprise AI Architecture course.

Need help applying this architecture to a real system?