arthrop0d

Brief articles on varied topics.

artificial intelligence

8 articles tagged artificial intelligence.

  1. Transformer Key-Value Cache During Generation

    A transformer KV cache keeps earlier attention keys and values so each generated token avoids rebuilding the entire prefix.

    artificial intelligenceperformance

  2. The AI Agent Tool-Calling Loop

    How a model requests tools, how the host validates and runs them, and how results become context for the next model turn.

    ai agentsartificial intelligenceapi design

  3. Speculative Decoding with Draft and Target Models

    Speculative decoding uses a fast model to propose tokens and a slower model to verify several of them in parallel, reducing generation latency.

    artificial intelligenceperformance

  4. Transformer KV Cache During Text Generation

    How transformers store attention keys and values to avoid recomputing prior tokens, and why longer contexts consume more inference memory.

    artificial intelligenceperformance

  5. Mixture-of-Experts Routing and Load Balancing

    How MoE routers send tokens to a few expert networks while capacity limits and balancing losses prevent overloaded experts.

    artificial intelligenceperformance

  6. The Tool-Calling Loop in AI Agents

    How an AI model requests a tool, how the runtime validates and runs it, and how the result becomes the next model input.

    ai agentsapi designartificial intelligence

  7. Speculative Decoding with Draft and Target Models

    How a small model proposes token sequences for a large model to verify, reducing generation latency while preserving the large model’s distribution.

    artificial intelligencealgorithms

  8. LLM Key-Value Caches During Autoregressive Generation

    How cached attention keys and values eliminate repeated prefix work during generation, and why the speedup consumes substantial memory.

    artificial intelligenceperformance

← All tags