hard20 pts · first answer countsattentiontransformers
Why attention divides by sqrt(d_k)
Scaled dot-product attention computes softmax(QK^T / sqrt(d_k)). What goes wrong if you drop the sqrt(d_k) scaling for large head dimensions?
Discussion 0
Join free to post in the discussion.
Related questions
- What LLM pretraining learnsAI Engineer (LLM & Generative AI)
- Why long contexts eat GPU memoryAI Engineer (LLM & Generative AI)
- Sizing the KV cacheAI Engineer (LLM & Generative AI)
- What the causal mask preventsAI Engineer (LLM & Generative AI)
- Scaling factor in attentionMachine Learning Engineer
- Parameters in a multi-head attention blockMachine Learning Engineer
- Why RoPE encodes relative positionMachine Learning Engineer
- What FlashAttention changesMachine Learning Engineer