logoalt Hacker News

cubefoxtoday at 2:35 PM1 replyview on HN

Unless they are using a linear architecture, the compute cost still scales O(n²) for n tokens, and nemory cost scales O(n).


Replies

TZubiritoday at 4:52 PM

>the compute cost still scales O(n²) for n tokens,

That is never the cost, it's a common misconception.

Cost scales linearly per tokens. Unless you are sending one token at a time and avoiding using the same machine or cache.

Just look at api charges, they are charged by token, not by token squared.

show 1 reply