Skip to content

saved views

save a collection’s filters, sort and columns here.

explore places

public workbench · read-only, with sources and collection dates.

FlashAttention 2: making Transformers 800% faster w/o approximation - with Tri Dao of Together AI

Latent Space: FlashAttention 2: making Transformers 800% faster w/o approximation - with Tri Dao of Together AI. 22 published claims with source attribution and episode context.

Episode context

Latent Space · published · publisher transcript

22 published claims are available from this episode. Speaker names appear only when verified by the source API.

Published claims

These are source-extracted assertions, not independently verified facts. Open a claim in the workbench to inspect its quote and evidence.

  1. By the end, I just ended up working with the code a whole lot more and I realized that, hey, there are these inefficiencies still in Flash Attention.

    Tri Dao · evaluation · 2023-07-26

    Read quote and source evidence
  2. You're trying to get objectives that maybe, I don't know, 70% that will work out because it's important for the company's direction.

    Tri Dao · uncertainty · 2023-07-26

    Read quote and source evidence
  3. Things like, I think compilers will play a role because compilers allow you to maybe still be much more efficient across different kinds of hardware because essentially you write the same code and compiler will be able to make it run efficiently different kinds of hardware.

    Tri Dao · belief · 2023-07-26

    Read quote and source evidence
  4. Yeah, I think mostly on the practical side is that you lose a little bit of flexibility in the sense that, hey, now you have, for example, faster attention, it's just a subroutine that you would call to do attention.

    Tri Dao · belief · 2023-07-26

    Read quote and source evidence
  5. I think understanding jokes. I didn't expect that to happen, but it turns out scaling model up and training lots of data, the model can now understand jokes.

    Tri Dao · belief · 2023-07-26

    Read quote and source evidence
  6. I think when we were writing the paper, I remember sending an email to one of my advisors, and like, hey, I'm excited about this paper, but I think the most important thing will be the artifact, which is the code.

    Tri Dao · belief · 2023-07-26

    Read quote and source evidence
  7. The current implementation ended up using NVIDIA's library or primitives, but I expect these ideas to be broadly applicable to different hardware.

    Tri Dao · prediction · 2023-07-26

    Read quote and source evidence
  8. I don't know exactly how that's going to happen, but based on history, I think there is a way to get there.

    Tri Dao · uncertainty · 2023-07-26

    Read quote and source evidence
  9. People do contribute to evaluation and measurement. And as a whole, I think people try to contribute to the field and move the field forward, albeit that maybe slightly different directions.

    Tri Dao · belief · 2023-07-26

    Read quote and source evidence
  10. I think at the intersection of machine learning system has been really exciting, and there's been a lot of amazing results at this intersection.

    Tri Dao · belief · 2023-07-26

    Read quote and source evidence
  11. HBM keeps growing, HBM3 is going to be 2x faster than HBM2, I think the latest NVIDIA thing has HBM3.

    Alessio Fanelli · belief · 2023-07-26

    Read quote and source evidence
  12. I think Tesla also has this Dojo supercomputer where they try to have essentially as fast on-chip memory as possible and removing some of these data transfer back and forth.

    Tri Dao · belief · 2023-07-26

    Read quote and source evidence
  13. Philosophically, the way they've been really open with data set and model release, I like that a lot.

    Tri Dao · preference · 2023-07-26

    Read quote and source evidence
  14. I think just this change will have a very significant impact in the kind of landscape of open-source AI, where now lots of businesses, lots of companies will be using, I expect will be using things like LLAMA2.

    Tri Dao · prediction · 2023-07-26

    Read quote and source evidence
  15. In terms of computation, it's still quadratic, but we managed to make it much more hardware friendly. And as a result, we do get wall clock speed up on the order of 2 to 4x, which really helps because that just means that you'll be able to train with 2 to 4x longer sequence length for the same cost without doing any approximations.

    Tri Dao · evaluation · 2023-07-26

    Read quote and source evidence
  16. On the machine learning side, people have been thinking more algorithmically. They say, okay, either we can approximate attention, or there's this trick called the online softmax trick, which says that because of softmax, the way it's written mathematically, you can actually break it up into smaller pieces, do some rescaling, and still get the right answer.

    Tri Dao · prediction · 2023-07-26

    Read quote and source evidence
  17. Now, this, I don't think, has been validated at scale. So as a researcher, I'm bullish on this stuff because I think in the next couple of years, these are use cases where these alternatives could have an advantage.

    Tri Dao · prediction · 2023-07-26

    Read quote and source evidence
  18. There are other factors like memory reading and writing, parallelism, and so on. So I learned a ton from just talking to systems people because they kind of figured this stuff out a while ago.

    Tri Dao · preference · 2023-07-26

    Read quote and source evidence
  19. The other one is, and this is something I really appreciate from advice from Chris was try to understand the fundamental, right? And he's happy letting me go off and read some textbooks and playing with things because I think a lot of research ideas come from understanding the old literature and see how it fits with the new landscape.

    Tri Dao · preference · 2023-07-26

    Read quote and source evidence
  20. I think industry folks can provide very valuable feedback to what we're doing in academia so that we understand where the field is moving because some of the directions are very much influenced by what, for example, OpenAI or Google is doing.

    Tri Dao · recommendation · 2023-07-26

    Read quote and source evidence
  21. We have some ideas. And in the future, I think we will need to design architecture that explicitly has some kind of reasoning module in it if we want to have much more capable models.

    Tri Dao · prediction · 2023-07-26

    Read quote and source evidence
  22. So for really long sequences, when you train with Transformer, with flash attention and so on, the computation is still quadratic in the sequence length. So if your sequence length is on the order of, I don't know, 16K, 32K, 100K or something, which some of these models have sequence length 100K, then you do get significantly slower in terms of training, also in terms of inference.

    Tri Dao · evaluation · 2023-07-26

    Read quote and source evidence

Source and retrieval

High Signal Podcasts public API · retrieved . This is a live published-only read; withheld shows are excluded by the source. The original transcript collection date is not supplied.

Public episode data
Browse more podcast episodes
compare tray · 0/24select rows or pin a record to compare collections.

Search

Search Nomad, Podcasts, Reddit, Papers and PH Catalog…