A useful AI product is usually more than its model.
A model is a component. A deployed AI system can add instructions, data access, retrieval, tools, memory, interfaces, monitoring, and evaluation. This note explains how generative AI, agents, and the full system stack transform machine learning models into practical applications.
Learning objectives
By the end of this note, you should be able to:
- Explain how generative AI produces content across modalities
- Describe what makes an AI agent different from a model
- Map the components of a deployed AI system stack
- Identify key hardware and software infrastructure for modern AI
Systems that create new content.
Generative artificial intelligence (GenAI) is a subfield of AI that uses generative models to produce new content — text, images, audio, video, code, and other modalities — from learned patterns in training data.
| Modality | Key technology | Notable systems | Status |
|---|---|---|---|
| Text | Large language models (transformers) | GPT-4, Claude, Gemini, Llama | Fluent, widely deployed; can hallucinate |
| Images | Diffusion models, GANs | DALL·E, Midjourney, Stable Diffusion | High quality; style control improving |
| Audio / Speech | Autoregressive + diffusion | ElevenLabs, Whisper, MusicLM | Natural speech; music generation emerging |
| Video | Diffusion + temporal models | Sora, Runway, Kling | Short clips; coherence improving rapidly |
| Code | Code-specialised LLMs | GitHub Copilot, Cursor, Codex | Productive for boilerplate; complex logic still requires review |
Modern systems are increasingly multimodal — a single model can process and generate text, images, audio, and video. GPT-4o, Gemini, and Claude can accept images as input and produce text, while newer models can produce video from text prompts. This convergence is one of the most significant trends in modern AI.
Large language models: the backbone of modern AI.
Large language models (LLMs) are generative pre-trained transformers trained on massive text corpora. They have become the foundation of most modern AI products, from chatbots to code assistants to autonomous agents.
Pre-training
The model learns language patterns, facts, and reasoning by predicting the next word in billions of text examples. This phase is extremely expensive (millions of dollars in compute) but produces a general-purpose language model.
Fine-tuning & RLHF
After pre-training, models are fine-tuned on curated data and aligned via reinforcement learning from human feedback (RLHF) to follow instructions, be helpful, and avoid harmful outputs.
As models grow larger, they exhibit capabilities not present in smaller versions — solving complex reasoning, writing code, translating languages. This has driven a race to build ever-larger models, but the relationship between scale and capability is not fully understood, and returns may diminish.
When a model becomes a goal-pursuing system.
AI agents are software entities designed to perceive their environment, make decisions, and take actions autonomously to achieve specific goals. An agent is more than a model — it is a model embedded in a loop of reasoning, tool use, memory, and action.
Tool use
Agents call external tools — web search, code interpreters, APIs, databases — to act on the world. This extends the model's capabilities far beyond text generation.
Memory
Agents maintain state across interactions: conversation history, retrieved documents, task progress. This allows multi-step reasoning and long-running tasks.
Autonomy
Agents can operate with minimal human oversight, breaking complex goals into subtasks and adapting when things go wrong. The degree of autonomy varies by design.
Companies like OpenAI, Anthropic, and Google are investing heavily in agentic systems. Frameworks like CrewAI and OpenClaw enable multi-agent collaboration. The shift from single-turn chat to multi-step agents represents a fundamental change in how AI is deployed. → Note 06: Applications
The layers between a model and a user.
When you encounter an AI application, ask two questions: "What model is being used?" and "What system has been built around it?" The second question often explains capabilities that a model alone cannot provide.
Retrieval-augmented generation (RAG)
Instead of relying only on a model's training data, RAG systems retrieve relevant documents from a knowledge base and include them in the prompt. This reduces hallucination and keeps answers grounded in current, verified information.
Guardrails & evaluation
Production systems add input filtering, output validation, toxicity detection, and continuous evaluation. These layers catch failures the model cannot prevent on its own. → Note 07: Ethics, Risks & Harms
The hardware that makes AI possible.
In the late 2010s, graphics processing units (GPUs) that were increasingly designed with tensor operations started to be used to accelerate neural networks, overtaking CPUs as the dominant platform for training and running AI models.
| Hardware | Primary use | Key players | Notes |
|---|---|---|---|
| GPUs | Training & inference | NVIDIA (H100, B200), AMD | Dominant platform; supply constrained |
| TPUs | Training & inference | Custom silicon for tensor operations; used internally and in cloud | |
| NPUs / AI chips | On-device inference | Apple, Qualcomm, Intel | Enable AI on phones, laptops, edge devices |
| ASICs | Specialised workloads | Groq, Cerebras, SambaNova | Fixed-function chips for specific AI tasks |
Training frontier models requires thousands of GPUs running for months, consuming megawatts of electricity and costing tens of millions of dollars. This creates a significant barrier to entry and concentrates AI development in well-funded organisations. → Note 07: Ethics (environmental impacts, tech giant dominance)
The software that makes AI practical.
Modern AI depends on a rich ecosystem of open-source and commercial software that handles training, inference, deployment, and monitoring.
Training frameworks
PyTorch, TensorFlow, JAX — provide the primitives for building and training neural networks on GPUs and TPUs.
LLM tooling
Hugging Face Transformers, vLLM, Ollama, LangChain — make it practical to load, serve, and chain LLM calls together.
Agent frameworks
LangGraph, CrewAI, AutoGen, OpenClaw — orchestrate multi-step agent workflows with tools, memory, and planning.
Model serving
TensorRT-LLM, Triton, Ray Serve — optimise inference latency and throughput for production deployments.
Vector databases
Pinecone, Weaviate, pgvector, Qdrant — store and retrieve embeddings for RAG and similarity search.
Remember these ideas.
Generative AI produces new content across modalities (text, images, audio, video, code) from learned representations.
Large language models are the backbone of modern AI, but they are components — not complete systems.
AI agents extend models with tools, memory, and action loops to pursue goals autonomously through interaction.
A deployed AI system has multiple layers: interface, application, model, and infrastructure — each with distinct responsibilities.
GPUs and specialised hardware are the physical foundation of modern AI, creating both capability and concentration of power.
Open-source frameworks and model hubs (Hugging Face, Ollama) have democratised access to AI, but frontier training remains concentrated.