Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
AI and LLM engineering
/
AI and LLM engineering
Why does scaled dot-product attention divide query-key scores by the square root of the k…
from AI and LLM engineering
intermediate
1 min
Why does scaled dot-product attention divide query-key scores by the square root of the key dimension?
To keep large dot products from saturating softmax and producing very small gradients
To make every token receive exactly the same attention weight
To remove the need for learned query, key, and value projections
Check
Ask AI about this kata
Report an error
previous kata
A model returns a well-formed request to refund an order. Which component should make the…
Quiz
next kata
Name the training procedure that applies the chain rule backward through a computation gr…
Fill in
A new version is available
Reload