| ▲ | ex-aws-dude 5 hours ago | |||||||||||||
I don't know much about LLMs but does that mean you have N^2 computation with the context size since every token needs to track how it relates to every other token? | ||||||||||||||
| ▲ | acedTrex 5 hours ago | parent | next [-] | |||||||||||||
For full self attention yes | ||||||||||||||
| ▲ | 5 hours ago | parent | prev | next [-] | |||||||||||||
| [deleted] | ||||||||||||||
| ▲ | TomatoCo 5 hours ago | parent | prev [-] | |||||||||||||
Yes, except no with the KV cache. Because tokens aren't modified by future tokens you can cache the meaning of previous tokens. This makes the total effort linear over the entire context (or constant per forward pass). | ||||||||||||||
| ||||||||||||||