← Questions

Roofline analysis of a BF16 MLP layer

0
AmazonAI/ML designLast asked Aug 2026

An AI/ML design interview question asked in Amazon's technical phone screen, last asked Aug 2026. It tests performance, roofline and gpu.

Do a roofline analysis of one BF16 layer: Y = GELU(X·W + bias) + residual, where X is B × 4096, W is 4096 × 4096, and bias and residual match the output shape. Count the floating-point operations and the bytes moved, compute the…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Amazon · Technical phone screen · Last asked Aug 202660 min · Live coding in a shared editor that does not run code, plus Leadership Principles questions · No AI

What it tests

performance · roofline · gpu

Your canvas and the AI tutor open when you unlock this question.