memory
AI infra interview questions tagged memory, across every topic.
22 questions · 11 unlocked for you
Concepts behind "memory"
Review the concepts used in these questions.
Foundational
The KV CacheThe KV cache saves attention keys and values from processed tokens. Follow one decode step, calculate its memory cost, and see why longer conversations reduce the number of requests a GPU can hold.🚀 Inference & Serving
Foundational
Model Memory FootprintSeparate weight payload, growing request state and training allocations. Work through exact units and per-rank budgets, then check the live peak.🧮 Napkin Math & Capacity
Foundational
Cache-Friendly Data StructuresData layout affects cache misses and communication between CPU cores. Pointer chasing and false sharing explain why equivalent operations can have different memory costs.💻 Coding for Infra
Core
ZeRO and FSDPZeRO and FSDP reduce replicated training state by distributing it across workers. The memory saving comes with communication and temporary-buffer costs.🕸️ Distributed TrainingSign in
Advanced
Activation CheckpointingActivation checkpointing saves memory by recomputing selected forward results during backward. Choose what to retain by comparing storage cost with recomputation cost.🕸️ Distributed Training🔒 Premium
Advanced
Tensors, Shapes and DtypesA tensor is an array of numbers with a shape, a representation and a storage location. Learn to read batch and sequence dimensions, calculate bytes, and distinguish a reshape from a transpose before sizing GPU work.🧩 GPU & Accelerator Architecture🔒 Premium
