A Transformer model processes a sequence of T=1000 tokens. Within the self-attention layer, the attention scores are stored as 32-bit floating-point numbers (float32). We compare two configurations that differ in the number of attention heads, h:
Model A: h=8Model B: h=16
Using the given conversion factors (1 byte = 8 bits, 1 MB =106 bytes.), calculate the percentage increase in memory (in MB) required to store all attention scores when moving from Model A to Model B.