Before You Start
- Required knowledge
- Matrix multiplication, softmax, tensor shapes, and broadcasting.
- Libraries used
- NumPy
- Dataset and source
- Random query/key/value tensors generated in the notebook; no text dataset.
- Expected output
- Scaled dot-product attention, masking, and multi-head attention forward-pass checks.