InterviewStack.io LogoInterviewStack.io

Model Training Infrastructure and Distributed Training Questions

Scaling model training across hardware and time. Covers GPU/accelerator considerations, data and model parallelism, distributed and large-scale training, experiment tracking and training infrastructure, and the training-versus-inference compute tradeoff. Focuses on the systems and resource decisions that make large-model training feasible.

EasyTechnical
84 practiced

Explain the GPU memory hierarchy and how it impacts training neural networks. Cover HBM (GPU DRAM), L1/L2 caches, shared memory, and host (CPU) memory. For a training workload, describe where model parameters, activations, optimizer state, and data batches should typically reside. Explain transfer costs and latency differences between PCIe and NVLink and give practical rules of thumb for minimizing data movement between host and devices in production training pipelines.

HardSystem Design
71 practiced

Design a federated learning architecture across multiple data-owner domains (e.g., banks) where raw data cannot leave each domain. Include secure aggregation, model update orchestration, handling non-iid data, model personalization, privacy guarantees, and governance for model promotion and validation.

HardTechnical
80 practiced

You need to implement a custom fused transformer-attention kernel to leverage Tensor Cores for better throughput. Explain design choices and implementation steps either using CUDA WMMA APIs or Triton: data layout, tile sizes, alignment constraints, memory staging (shared memory), avoiding bank conflicts, and validation for numerical correctness and performance regression testing.

HardTechnical
126 practiced

You're planning on-prem GPU procurement for large-scale training. Draft a plan covering GPU model selection, rack and rack-power sizing (kW per rack), cooling requirements, UPS, networking (RDMA, 100GbE), procurement timelines, vendor support, capacity planning for target utilization, and how these physical choices affect training throughput, single-job latency, and total cost of ownership.

EasyTechnical
89 practiced

Explain best practices for creating containerized, reproducible training environments. What should be included in the container image (OS libs, CUDA/cuDNN versions, pip/conda packages), and how do you ensure experiments are reproducible across image versions and host kernels?

Unlock Full Question Bank

Get access to all Model Training Infrastructure and Distributed Training interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.