Samsung's Processing-in-Memory (PIM)

(chipsandcheese.com)

77 points | by ingve 3 hours ago

9 comments

  • bhouston 8 minutes ago
    I wrote up a theoretical post here about LMM performance of a MacBook Pro with PIM memory:

    https://ben3d.ca/blog/m5-max-samsung-lpddr5-pim-650-tokens-p...

  • consp 1 hour ago
    So you basically dispose of cache for the memory region used? I wonder what the offsets of the cache misses is going to be in practice (the article addresses it but there is no solution/impact given by samsung).
    • manmal 1 hour ago
      I guess you also get very high bandwidth that way? I‘m not sure that would come for free though.
      • WithinReason 36 minutes ago
        It comes at a cost of a fragmented memory space, which is fine for some applications, like LLMs
    • PunchyHamster 58 minutes ago
      if your working set fits in cache PIM is irrelevant
      • yvdriess 48 minutes ago
        Caches are important for cpu core performance even when the the working set doesn't fit.
  • reliabilityguy 2 hours ago
    Interesting that Samsung still pursues PIM. IIRC they had a paper in ISCA21 or 22 where they showed HBM2 module with PIM, which back then impressed me quite a lot.

    That being said, I am not sure what’s the killer application for this technology, and without such application adoption is unlikely.

    • xyzzy123 1 hour ago
      As I understand it, the killer app is llms. You could run MACs directly in RAM, offloading a lot of work from CPU and cutting down on insane (external) memory bandwidth required.

      Imagine (this is a fantasy pitch but potentially achievable for some use cases) wanting to run a larger llm and all you have to do is buy more RAM so it fits.

      • embedding-shape 1 hour ago
        > Imagine (this is a fantasy pitch but potentially achievable for some use cases) wanting to run a larger llm and all you have to do is buy more RAM so it fits.

        Isn't this how it works today already? Granted you wanted to run it on RAM rather than VRAM.

        • petu 42 minutes ago
          Yes, but running out of RAM is impractical due to low memory bandwidth.

          According to the article/Samsung RAM dies inside can support way higher bandwidth than they expose, they're limited by external interface / bus width:

          > Together, they can utilize the chip’s internal bandwidth across all 16 banks, which comes out to 614 GB/s. For comparison, regular DRAM accesses can hit two banks in parallel and max out at 76.8 GB/s.

          And that's just for single 64-bit IC. So way faster and more power efficient.

      • amelius 50 minutes ago
        You: "AI, please write me $COOL_APP."

        AI: "Sorry, all the hardware is made for running AI."

      • WithinReason 24 minutes ago
        [dead]
    • netfortius 1 hour ago
      > That being said, I am not sure what's the killer application for this technology...

      Build it, and they will come ;)

  • userbinator 1 hour ago
    In-memory computation was already possible with regular DRAM: https://news.ycombinator.com/item?id=22712811

    Add a new set of CPU instructions like “rep macb”

    ...and it's been long enough now, that I can say there was an effort to implement this on standard x86 memory controllers and have the existing string instructions do so, back in the days of SDR SDRAM, but the tradeoffs weren't (yet) in favour.

  • saejox 1 hour ago
    If we could buy a 64gb stick and run a 32b model with 30tps on it. This could sell
  • Torkel 1 hour ago
    [dead]
  • LogTrim 2 hours ago
    [flagged]
  • sehw 2 hours ago
    [dead]
  • johnnyApplePRNG 1 hour ago
    [flagged]