Skip navigation
Paving the way for unlimited context windows.
0:00 / 4:33

Paving the way for unlimited context windows.

Steeve Morin

@steeve10K followers

Visit on X
755 likesDownloadOriginal post

122,346 views

Paving the way for unlimited context windows. Introducing ZML /attnd: sparse logarithmic attention, on CPU, over UDP, faster than GPU.

39 Comments

Comments from the original post on X (Twitter)

  • Charles Foster's profile picture

    @CFGeek

    @zml_ai How do you avoid computing the attention values that end up ~0 without computing the dot products between each query-key pair? Are you using some sort of approximation?

    9 likes

  • Steeve Morin's profile picture

    @steeve

    @zml_ai we model it as a graph

    1 like

  • Charles Foster's profile picture

    @CFGeek

    @zml_ai How does modeling it as a graph let you bypass the N × N for sequence length of N, unless you're making some kind of approximation?

    1 like

  • Steeve Morin's profile picture

    @steeve

    @zml_ai Yes there is approximation in the sense that we don't compute values very close to zero. From the talk:

    1 like

  • Charles Foster's profile picture

    @CFGeek

    @zml_ai How? How do you know which attention values *will be* very close to zero without first computing the dot-products?

    3 likes

  • Charles Foster's profile picture

    @CFGeek

    @zml_ai Maybe what you mean to say is that you compute the full N x N attention matrix, but aggregate the value vectors sparsely by skipping entries where the attention is ~0? That would turn one dense-dense matmul into a sparse-dense one, but wouldn’t make the whole thing log(N), right?

    5 likes

  • Jean-Baptiste Schiratti's profile picture

    @jbschiratti

    @zml_ai Loved the talk & demo 🤩 @zml_ai rocks 🔥🚀❤️

    3 likes

  • James's profile picture

    @lcm_in_ai

    @zml_ai @TheAhmadOsman looks like a great local llama unlock

    3 likes

  • Javier Honduvilla Coto's profile picture

    @javierhonduco

    @zml_ai Great stuff!! Btw love the T-shirt 🤣

    3 likes

  • David Roldan 🇵🇷's profile picture

    @Roldiesel

    @zml_ai Democratizing AI!!! 👌🏼

    2 likes

  • Abhi's profile picture

    @Abhiram_AI_Guy

    @zml_ai Good work man, holy shit

    2 likes

  • Guillaume Wenzek's profile picture

    @gwenzek

    @zml_ai Very excited to share this. Attention is fascinating. I've been toying with this algorithm idea for some time but it took some faith and crunch to actually make it work.

    1 like

  • murat 🍥's profile picture

    @mayfer

    @zml_ai any performance degradation?

    1 like

  • Steeve Morin's profile picture

    @steeve

    @zml_ai no

    5 likes

  • Andrew Huynh's profile picture

    @CseHuynh

    @zml_ai How to run it in my m2 laptop??

    1 like

  • Saïd Aitmbarek's profile picture

    @SaidAitmbarek

    @zml_ai hell yeah, based optimization for cpu guys! will help democratize AI adoption to the immense pool of non gpu socs let's launch/spotlight you on whenever it helps guys

    1 like

  • VibeCodeTeddy's profile picture

    @VibeCodeTeddy

    @zml_ai This is wild. Can't wait to see the practical applications of this!

    1 like

  • Ak afridi's profile picture

    @afridi_aka1

    @zml_ai Fascinating approach to solving the context window limitation. CPU-based sparse attention over UDP opening new possibilities for distributed AI processing. Looking forward to seeing how this scales in production environments.

    1 like

  • Gary Basin's profile picture

    @garybasin

    @zml_ai very cool

    1 like

  • Mykhailo Sorochuk's profile picture

    @sir4K_zen

    @zml_ai This breakthrough could really democratize AI. Less hardware, more access. Excited to see how it develops!

    1 like