Re:StreamingLLM: tiny tweak to KV LRU improves long conversa...
by zorgmonkey on Tuesday February 13, 2024 @12:12PM
(#39359975)
Feel free to mess with it, his tweak to softmax was actually supported by pytorch before the article was written, but off by default. Maybe it needs to be more widely used though, after all good ideas are often independently discovered multiple times. Details are in this tweet https://twitter.com/SamuelMullr/status/1683582347793530884 or if you don't like twitter the option is add_zero_attn for pytorch MultiheadAttention.
[ Parent
| on HN ]
There are no comments on this comment yet.