• JohnDClay@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    11 days ago

    And it’s hard to tell what the difference is. Apples ‘built from the ground up for AI’ chips just have more RAM. What’s the difference with CPUs? Do they just have more onboard graphics processing that can also be used for matrix multiplication?

    • Synapse@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      11 days ago

      Basically yes. They come with an NPU (Neural processing unit) which is hardware acceleration for matrix multiplications. It cannot do graphics. Slap whatever NPU into the chip, boom: AI laptop!

        • Synapse@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          11 days ago

          Modern graphics cards pack a lot of functionality. Shading units, Ray tracing, video encoding/deciding. NPU is just the part needed to accelerat Neural nets.

          • JohnDClay@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            0
            ·
            11 days ago

            But you can accelerate nural nets better with a GPU, right? They’ve got a lot more parallel matrix multiplication compute than any npu you can slap on a CPU.

            • Synapse@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              10 days ago

              It all depends on the GPU. If it’s something integrated in the CPU it will probably not so better, if it’s a 2000$ dedicated GPU with 48GB of VRAM is will be very powerful for Neural Net computing. NPUs are most often implemented as small, low-power, embedded solutions. Their goal is not to compete with data centers or workstations, it’s to enable some basic “AI” features on portable devices. E.g: “smart” camera with object recognition to give you alerts.

    • MudMan@fedia.io
      link
      fedilink
      arrow-up
      0
      ·
      11 days ago

      The stupid difference is supposed to be that they have some tensor math accelerators like the ones that have been on GPUs for three generations now. Except they’re small and slow and can barely run anything locally, so if you care about “AI” you’re probably using a dedicated GPU instead of a “NPU”.

      And because local AI features have been largely useless, so far there is no software that will, say, take advantage of NPU processing for stuff like image upscaling while using the GPU tensor calculations for in-game raytracing or whatever. You’re not even offloading any workload to the NPU when you’re using your GPU, regardless of what you’re using it for.

      For Apple stuff where it’s all integrated it’s probably closer to what you describe, just using the integrated GPU acceleration. I think there are some specific optimizations for the kind of tensor math used in AI as opposed to graphics, but it’s mostly the same thing.

        • MudMan@fedia.io
          link
          fedilink
          arrow-up
          0
          ·
          11 days ago

          The idea is having tensor acceleration built into SoCs for portable devices so they can run models locally on laptops, tablets and phones.

          Because, you know, server-side ML model calculations are expensive, so offloading compute to the client makes them cheaper.

          But this gen can’t really run anything useful locally so far, as far as I can tell. Most of the demos during the ramp-up to these were thoroughly underwhelming and nowhere near what you get from server-side services.

          Of course they could have just called the “NPU” a new GPU feature and make it work closer to how this is run on dedicated GPUs, but I suppose somebody thought that branding this as a separate device was more marketable.

          • This is fine🔥🐶☕🔥@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            arrow-down
            1
            ·
            10 days ago

            EU should introduce regulation that prohibits client-side AI/ML processing for applications that require internet access. Show the cost upfront. Let’s see how many people pay for that.

    • hendrik@palaver.p3x.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      11 days ago

      The Apple chips also have a wide interface to the RAM. That means you can run chatbots (LLMs) and other AI workloads that are memory-bound at crazy speeds compared to an Intel (or AMD) computer.

      • JohnDClay@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        11 days ago

        Really? How fast is the memory bus compared to x86? And did they just double the bus bandwidth by doubling the memory?

        I’m dubious because they only now went to 16gb ram as base, which has been standard on x86 for almost a decade.

        • brucethemoose@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          6 days ago

          Apple is also much faster because the integrated graphics are actually usable for LLMs.

          The base M is just a big faster than an Intel/AMD laptop if you can get their graphics working. The M Pro is 2x is fast (as its memory bus is 2x as wide). The M Max is 4x as fast.

          AMD is coming out with something more competitive in 2025 though, Strix Halo.