S30 Logo
S30 AI Labwww.thes30.com
Back
#44

Self-Attention & Scaled Dot-Product

HardπŸ“ NLP & TransformersW9 D5

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.

Need help? Share feedback