Palestra

Level 5: AI System Engineer

Understanding AI from the inside out -- transformer architecture, fine-tuning, evaluation, and agentic workflows -- then designing multi-component AI systems.

0/1 exercises

Level 5: AI System Engineer

Level 5 represents the stage of mastery where a professional understands the deep architecture that powers modern AI and can design multi-component systems that put that understanding to work. An AI System Engineer knows not just how to use models, but why they behave the way they do -- and can leverage that understanding to build, evaluate, fine-tune, and orchestrate sophisticated AI systems.

What You Will Learn

This level covers three complementary parts:

Part 1: AI Internals (5.1-5.4)

  1. Transformer Architecture -- The encoder-decoder structure, positional encoding, and the architecture behind "Attention Is All You Need."

  2. Attention Mechanism -- Query, Key, and Value vectors, multi-head attention, and how models decide what to focus on.

  3. Fine-Tuning -- LoRA, QLoRA, RLHF, and domain adaptation techniques for customizing models to specialized tasks.

  4. Evaluation Metrics -- BLEU, ROUGE, perplexity, human evaluation, and building rigorous benchmark suites.

Part 2: Agentic Systems (5.5-5.9)

  1. Agentic Workflows -- ReAct prompting, tool use, multi-agent systems, and orchestration patterns for autonomous AI behavior.

  2. Tool Protocols and MCP -- How agents discover and use tools through standardized protocols, from function calling to the Model Context Protocol.

  3. Subagents and Delegation -- Spawning specialized agents for parallel work with isolated context, typed capabilities, and structured delegation.

  4. Multi-Agent Teams -- Coordinating multiple agents on shared objectives with task lists, message passing, and graceful lifecycle management.

  5. Building Custom Agents -- Building agents programmatically with SDKs, from tool definitions to deployment and testing strategies.

Part 3: System Architecture (5.10-5.14)

  1. Orchestration Frameworks -- Comparing LangChain, LangGraph, CrewAI, and n8n for building multi-step AI workflows, plus when to use frameworks versus custom code.

  2. Human-in-the-Loop Design -- Designing effective human oversight with confidence-based routing, escalation thresholds, and strategies to prevent approval fatigue.

  3. Multi-AI System Architecture -- Separation of concerns with router, specialist, and evaluator models, plus SLIs and SLOs for probabilistic systems.

  4. System-Level Cost and Performance -- Token budgets, batch versus real-time inference, cost accounting across multi-model pipelines, and optimization strategies.

  5. Checkpoint -- Level 5 assessment covering all three parts.

Prerequisites

You should have completed all Level 4 content and be comfortable with:

  • Treating AI as a software component with typed interfaces (Level 4)
  • Engineering patterns for reliability and cost (Level 4)
  • API integration and deterministic wrappers (Level 4)
  • A basic understanding of linear algebra (Foundations)

The Three-Part Journey

Predict

Level 4 treated AI as a black box with inputs and outputs. What do you think changes when you understand how transformers actually work internally -- and then use that understanding to design systems where multiple models collaborate?

At Level 4, you learned to engineer around AI's probabilistic nature. Level 5 is a three-part journey:

Part 1: AI Internals (Modules 5.1-5.4) takes you inside the model. Understanding transformers and attention mechanisms is not just academic -- it directly informs prompt design, model selection, fine-tuning decisions, and debugging. You will learn why models behave the way they do.

Part 2: Agentic Systems (Modules 5.5-5.9) puts that understanding to work. Starting with the fundamentals of agentic workflows, you will progress through tool protocols (MCP), subagent delegation, multi-agent teams, and building custom agents with SDKs. This is where theory becomes practice -- you will configure real tools, design delegation strategies, and architect agent systems.

Part 3: System Architecture (Modules 5.10-5.14) takes you above individual agents. Once you understand both model internals and agentic patterns, you are ready to design systems where multiple models and agents collaborate -- choosing the right orchestration frameworks, designing effective human oversight, architecting multi-model pipelines, and managing cost and performance at the system level.

Together, these three parts make you an engineer who can work at every level of the AI stack -- from attention weights to agent teams to system architecture.

Key Takeaway

Level 5 is where you move from being an expert user of AI to being an engineer who understands the machine and can design systems around it. Part 1 gives you deep model understanding, Part 2 gives you hands-on agentic engineering skills, and Part 3 gives you the architecture to build production multi-component AI systems.

Connect

Think about the component boundary pattern from Level 4. How might understanding transformer internals help you design better interfaces -- for instance, setting appropriate token limits, choosing temperature values, or predicting when a model will struggle? And how does that extend to designing boundaries between multiple models in a system?

Modules

Part 1: AI Internals

ModuleTopicKey Skill
5.1Transformer ArchitectureEncoder/decoder, positional encoding
5.2Attention MechanismQ/K/V, multi-head attention, attention patterns
5.3Fine-TuningLoRA, QLoRA, RLHF, domain adaptation
5.4Evaluation MetricsBLEU, ROUGE, perplexity, benchmarks

Part 2: Agentic Systems

ModuleTopicKey Skill
5.5Agentic WorkflowsReAct, tool use, multi-agent orchestration
5.6Tool Protocols and MCPFunction calling, MCP servers, tool registration
5.7Subagents and DelegationAgent types, context isolation, delegation strategy
5.8Multi-Agent TeamsTask lists, message passing, team lifecycle
5.9Building Custom AgentsAgent SDKs, tool definitions, testing strategies

Part 3: System Architecture

ModuleTopicKey Skill
5.10Orchestration FrameworksLangChain, LangGraph, CrewAI, framework selection
5.11Human-in-the-Loop DesignConfidence routing, escalation thresholds, approval fatigue
5.12Multi-AI System ArchitectureRouter/specialist/evaluator models, SLIs and SLOs
5.13System-Level Cost & PerformanceToken budgets, batch vs. real-time, cost optimization
5.14CheckpointLevel 5 assessment

5.1 Transformer Architecture