GPU architecture, clearly explained
Redis has launched Redis Iris, a real-time engine designed to provide accurate context for production AI agents. While standard semantic caches return stale responses for dynamic data and plain agents spend excessive tokens re-planning on every request, Iris caches the execution steps rather than the static answer. By using an Intent Router to retrieve an Agent Playbook, Iris enables agents to skip the planning phase while still evaluating live data. In benchmarks comparing a plain agent, a semantic cache, and Iris across dynamic requests, Iris ran roughly twice as fast as the plain agent and was the only setup to provide accurate answers across all turns. GPU token generation in LLM inference is often bottlenecked by memory bandwidth rather than arithmetic compute capacity. When generating tokens individually, a GPU transfers weights for minimal computation, but batching multiple requests allows weights to be reused efficiently across operations. To optimize memory movement, GPUs rely on an execution hierarchy—threads, warps, thread blocks, and streaming multiprocessors—alongside a tiered memory system ranging from registers to high bandwidth memory. Algorithms like FlashAttention improve performance by keeping intermediate attention calculations in local memory, minimizing expensive round trips to external memory. Loop engineering involves choosing between four distinct agent loop structures rather than treating agent steering as a single architecture. The loop system addresses two primary functions: what triggers a run and what determines when the task is complete. Hand-run sessions rely entirely on human input, whereas turn-based, goal-based, time-based, and proactive loops progressively delegate these responsibilities to the system. The optimal design choice depends on whether the task is exploratory, measurable, recurring, or standing.
Contents
Redis is going all in on AI.
Redis has launched Redis Iris, a real-time engine designed to provide accurate context for production AI agents. While standard semantic caches return stale responses for dynamic data and plain agents spend excessive tokens re-planning on every request, Iris caches the execution steps rather than the static answer. By using an Intent Router to retrieve an Agent Playbook, Iris enables agents to skip the planning phase while still evaluating live data. In benchmarks comparing a plain agent, a semantic cache, and Iris across dynamic requests, Iris ran roughly twice as fast as the plain agent and was the only setup to provide accurate answers across all turns.
- Redis Iris caches the workflow steps (Agent Playbook) rather than the static response, allowing agents to execute actions on live data without re-planning.
- Standard semantic caching fails on non-static data by returning stale responses when underlying state changes.
- Plain agents avoid stale data by running full reasoning loops on every request, but this incurs high latency and token costs.
- In a two-turn benchmark, Iris required only 1 LLM call per question (taking 5.9s and 5.6s), compared to 2 LLM calls for plain agents (9.4s and 12.7s).
- Iris ran approximately 2x faster than a plain agent and was the only architecture tested that produced correct answers on both dynamic queries.
GPU architecture, clearly explained
GPU token generation in LLM inference is often bottlenecked by memory bandwidth rather than arithmetic compute capacity. When generating tokens individually, a GPU transfers weights for minimal computation, but batching multiple requests allows weights to be reused efficiently across operations. To optimize memory movement, GPUs rely on an execution hierarchy—threads, warps, thread blocks, and streaming multiprocessors—alongside a tiered memory system ranging from registers to high bandwidth memory. Algorithms like FlashAttention improve performance by keeping intermediate attention calculations in local memory, minimizing expensive round trips to external memory.
- Token generation is often limited by memory bandwidth because GPUs read weights faster than they execute operations on them in single-request generation.
- At 16-bit precision, reading one weight transfers two bytes for only two arithmetic operations (a multiplication and addition), yielding low arithmetic intensity.
- Batching multiple requests amortizes memory read costs by reusing weights across multiple concurrent calculations.
- GPU execution is structured hierarchically into threads, 32-thread warps, thread blocks, and streaming multiprocessors (SMs).
- GPU memory tiers range from ultra-fast local storage (registers, shared memory, and L1/L2 caches) to larger, slower off-chip High Bandwidth Memory (HBM).
- FlashAttention boosts efficiency by caching intermediate attention results in local storage rather than writing and reading full attention tables to HBM.
The four types of agent loops
Loop engineering involves choosing between four distinct agent loop structures rather than treating agent steering as a single architecture. The loop system addresses two primary functions: what triggers a run and what determines when the task is complete. Hand-run sessions rely entirely on human input, whereas turn-based, goal-based, time-based, and proactive loops progressively delegate these responsibilities to the system. The optimal design choice depends on whether the task is exploratory, measurable, recurring, or standing.
- Loop engineering designs the system that steers an AI agent instead of manually driving it turn-by-turn.
- Every agent loop design must determine what initiates a run and what decides the work is complete.
- Turn-based loops are initiated by user prompts and suited for exploratory tasks where requirements evolve.
- Goal-based loops automate completion evaluation via criteria and an evaluator model, suitable for measurable outcomes.
- Time-based loops run at clock intervals for recurring tasks, using commands like /loop locally or /schedule in the cloud.
- Proactive loops respond autonomously to external events without humans present, deploying multi-agent workflows including triage, fix, and reviewer agents.
- Choosing a loop architecture depends on task type: exploratory, measurable, recurring, or standing.