2 Matching Annotations
  1. Last 7 days
    1. LLM Inference Explained: 12 Concepts You Actually Need to KnowTap to unmute2xLLM Inference Explained: 12 Concepts You Actually Need to KnowDevOps & AI Toolkit 12,883 views 2 wk agoCopy linkInfoShoppingIf playback doesn't begin shortly, try restarting your device.19:10Pull up for precise seekingSponsor (Infisical)Sharding, Autoscaling, And Cold StartsSubtitles/closed captions18:32Sharding, Autoscaling, And Cold Starts•You're signed outVideos that you watch may be added to the TV's watch history and influence TV recommendations. To avoid this, cancel and sign in to YouTube on your computer.CancelConfirmUp nextLiveUpcomingCancelPlay nowLLM Inference Is a Memory Problem, Not a Compute One22:09Artificial Intelligence (AI)59 videosHideShareInclude playlistAn error occurred while retrieving sharing information. Please try again later.LLM Inference Jargon, DecodedSponsor (Infisical)What An Inference Engine Does (vLLM, Ollama, etc.)GPU Memory: Model Weights vs KV CacheContinuous Batching And Paged AttentionQuantization: More KV Cache, Same GPUPrefix Caching: The Big Lever For AgentsPrefill vs Decode, And Speculative DecodingControl Planes And LLM GatewaysSharding, Autoscaling, And Cold StartsWhen Each One Starts To Matter19:1019:15 / 20:14Live•Watch full video ON OFF •When Each One Starts To MatterWhen Each One Starts To Matter•11:38It took me 10+ years to realise what I’ll tell you in 11 minutesAndrew Codesmith52k views • 1 day agoLivePlaylist ()Mix (50+)26:44I built a soda machine that makes ANY flavorLuke Creatives646k views • 8 days agoLivePlaylist ()Mix (50+)31:25Podman Secrets | Stop Leaking Passwords in Containers (Hands-On Labs)| How podman works [Ep.6]GoDevOps71 views • 4 days agoLivePlaylist ()Mix (50+)7:12Jev, decision based model..?Caleb Writes Code245k views • 1 day agoLivePlaylist ()Mix (50+)50:37LIVING IN A CITY CAR IN −51°C | EP7Zoef on the Move8.4m views • 2 months agoLivePlaylist ()Mix (50+)9:48Amateurs Behaving BadlyNorCal Cycling193k views • 1 month agoLivePlaylist ()Mix (50+)29:0432-bit Computer Inside Terraria? | Prime ReactsThe PrimeTime721k views • 3 years agoLivePlaylist ()Mix (50+)22:19POV: You’re an AI Born 9 Seconds AgoSpecies | Documenting AGI1.3m views • 1 month agoLivePlaylist ()Mix (50+)14:38I made a scammer travel 13,000 miles for nothingPagano1m views • 9 months agoLivePlaylist ()Mix (50+)24:20Whatever You Hide As, You Keep!MrBeast Gaming52m views • 1 month agoLivePlaylist ()Mix (50+)10:14Saving a Dying Supermarket Betta FishGabes Tanks 7.3m views • 2 weeks agoLivePlaylist ()Mix (50+)30:45Orla Perć czyli najtrudniejszy szlak w Polsce / TATRY 2026Marcin Banot1.2m views • 2 weeks agoLivePlaylist ()Mix (50+)Speed: 1.7 LLM Inference Explained: 12 Concepts You Actually Need to Know
      • The Role of an Inference Engine [00:02:16]:

        • Software layer operating between raw weights on disk and incoming HTTP user requests (e.g., vLLM, Ollama).
        • Performs five core responsibilities: loading model weights, maintaining context state, scheduling requests, executing matrix arithmetic, and serving an HTTP API.
        • Sits above compute kernels (low-level math operations) and below cluster orchestrators/control planes and API gateways.
      • GPU Memory Dynamics (Weights vs. KV Cache) [00:05:16]:

        • Model Weights: Static memory cost determined by parameter count and precision (e.g., an 8B parameter model at 16-bit/2-byte precision occupies ~16 GB VRAM); remains fixed regardless of concurrent concurrency.
        • KV Cache: Dynamic working memory holding intermediate attention states across token generations; scales linearly with conversation depth and concurrent active users, directly competing with weights for remaining VRAM.
      • Batching Strategies & Memory Management [00:07:39]:

        • Continuous Batching: Replaces naive static batching by evicting completed requests immediately and slotting new requests into the running batch, avoiding GPU idle cycles caused by differing generation lengths.
        • PagedAttention / Paging: Allocates KV cache in small, non-contiguous fixed-size blocks on demand rather than reserving maximum possible context windows per request, eliminating severe internal memory fragmentation.
      • Weight Quantization [00:09:47]:

        • Reduces precision per parameter (e.g., from FP16 to INT8/INT4), slashing fixed model footprint.
        • The primary benefit is freeing VRAM for a larger KV cache pool, directly scaling concurrent user throughput on cost-effective GPUs.
      • Prefix Caching [00:10:58]:

        • Caches identical token sequences across requests (e.g., static system instructions, tool definitions, recurring multi-turn histories).
        • Bypasses redundant prompt reprocessing, providing massive speed and efficiency gains for agentic workflows.
      • Prefill vs. Decode & Speculative Decoding [00:12:28]:

        • Prefill Phase: Parallel ingestion of prompt tokens; strictly compute-bound as the GPU operates at peak arithmetic saturation.
        • Decode Phase: Autoregressive, strictly sequential token generation; heavily memory-bandwidth bound due to fetching full weights per generated token.
        • Speculative Decoding: Employs an ultra-fast draft model to predict token sequences validated by the target model in a single parallel pass, reducing end-to-end decode latency for individual users.
      • Orchestration, Routing, and Model Scaling [00:14:46]:

        • Control Plane & Gateways: Standard round-robin load balancing fails for LLMs; gateways require cache-aware routing to send requests to replicas with pre-warmed KV caches.
        • Model Sharding: Distributes massive parameter architectures across multiple GPUs via Tensor Parallelism (intra-layer splitting) or Pipeline Parallelism (inter-layer pipelining).
        • LLM Autoscaling: Relies on inference-specific metrics (queue depth, KV cache utilization) rather than CPU/GPU utilization; hindered by substantial cold-start penalties when pulling images and warming weights.
        • Prefill/Decode Disaggregation: Decouples the prefill (compute-intensive) and decode (bandwidth-intensive) workloads across specialized hardware topologies for optimal hardware utilization.
  2. Jun 2026
    1. the KV cache has emerged as a primary performance and cost bottleneck because its size grows rapidly with context length and batch size. Limited GPU memory forces frequent recomputation, cache eviction, or spilling to storage

      This precisely quantifies why longer context windows are expensive beyond just model size: KV cache grows quadratically with context, and current GPU memory can't keep pace. Each eviction or recomputation directly inflates cost-per-token — making KV cache the hidden tax on long-context AI workloads.