News for hackers. Stuff that matters.
Re:The Coming of Local LLMs by dpflan on Tuesday April 11, 2023 @12:00PM (#35527045)
Sharing a comment from a similar line of discussion:

"""

Complexity is quadratic in sequence length. For 512 tokens it is 262K, but for 4000 tokens it becomes 16M and goes OOM on a single GPU. We need about 100K-1M tokens to load whole books at once.

Since 2017 there have been hundreds of attempts to bring O(N^2) to O(N), but none of them replaced the vanilla attention yet in large models. They lose on accuracy. Maybe Flash attention has a shot (https://arxiv.org/abs/2205.14135).

"""

- source: https://news.ycombinator.com/item?id=34171503

Re:The Coming of Local LLMs by whimsicalism on Tuesday April 11, 2023 @01:17PM (#35528125)
There is literally no way that GPT-4 is using classic O(N^2) attention exclusively. They haven't released the results, but I promise you this is not what they are using exclusively.
Re:The Coming of Local LLMs by anthlax on Wednesday April 12, 2023 @09:03AM (#35538982)
Interesting! How do you know this?