Re:DeepSeek's multi-head latent attention and other KV cache...
by t55 on Tuesday January 28, 2025 @09:11PM
(#42860693)
It’s mostly a convention. In many deep learning frameworks (PyTorch, TensorFlow, etc.), inputs are stored with the “batch × length × hidden-dim” shape, effectively making the token embeddings row vectors. Multiplying “xW” is then the natural shape-wise operation. On the other hand, classical linear algebra references often treat vectors as column vectors and write “Wx.”
[ Parent
| on HN ]