News for hackers. Stuff that matters.
Re:Apple introduces M4 chip by SpaceManNabs on Tuesday May 07, 2024 @03:12PM (#40290227)
This comment is odd. I wouldn't say it is misleading, but it is odd because it borders on such definition.

> Apple's AI strategy is to put inference (and longer term even learning) on edge devices

This is pretty much everyone's strategy. Model distillation is huge because of this. This goes in line with federated learning. This goes in line with model pruning too. And parameter efficient tuning and fine tuning and prompt learning etc.

> This is completely coherent with their privacy-first strategy

Apple's marketing for their current approach is privacy-first. They are not privacy first. If they were privacy first, you would not be able to use app tracking data on their first party ad platform. They shut it off for everyone else but themselves. Apple's approach is walled garden first.

> Processing data at the edge also makes for the best possible user experience because of the complete independence of network connectivity

as long as you don't depend on graph centric problems where keeping a local copy of that graph is prohibitive. Graph problems will become more common. Not sure if this is a problem for apple though. I am just commenting in general.

> If (and that's a big if) they keep their APIs open to run any kind of AI workload on their chips

Apple does not have a good track record of this; they are quite antagonistic when it comes to this topic. Gaming on apple was dead for nearly a decade (and pretty much still is) because steve jobs did not want people gaming on macs. Apple has eased up on this, but it very much seems that if they want you to use their devices (not yours) in a certain way, then they make it expensive to do anything else.

Tbf, I don't blame apple for any of this. It is their strategy. Whether it works or not, it doesn't matter. I just found this comment really odd since it almost seemed like evangelism.

edit: weird to praise apple for on device training when it is not publicly known if they have trained any substantial model even on cloud.

Re:Apple introduces M4 chip by jameshart on Tuesday May 07, 2024 @03:35PM (#40290516)
Everyone’s strategy?

The biggest players in commercial AI models at the moment - OpenAI and Google - have made absolutely no noise about pushing inference to end user devices at all. Microsoft, Adobe, other players who are going big on embedding ML models into their products, are not pushing those models to the edge, they’re investing in cloud GPU.

Where are you picking up that this is everyone’s strategy?

Re:Apple introduces M4 chip by SpaceManNabs on Tuesday May 07, 2024 @03:42PM (#40290613)
> Where are you picking up that this is everyone’s strategy?

Read what their engineers say in public. Unless I hallucinated years of federated learning.

Also apple isn't even a player yet and everyone is discussing how they are moving stuff to the edge lol. Can't critique companies for not being on the edge yet when apple doesn't have anything out there.

Re:Apple introduces M4 chip by smj-edison on Tuesday May 07, 2024 @10:00PM (#40293641)
I believe at least Google is starting to do edge inference—take a look at the pixel 8 line-up they just announced. It doesn't seem to be emphasized as much, but the tensor G3 chip certainly has builtin inference.
Re:Apple introduces M4 chip by losvedir on Wednesday May 08, 2024 @03:38PM (#40302047)
Of course Google is. That's what Gemini Nano is for.
Re:Apple introduces M4 chip by SpaceManNabs on Wednesday May 15, 2024 @03:43PM (#40371451)
8 days after this comment, Google announced Gemini Nano local inference for Chrome.
Re:Apple introduces M4 chip by nomel on Tuesday May 07, 2024 @03:27PM (#40290415)
> This is pretty much everyone's strategy.

I think this is being too charitable on the state of "everyone". It's everyone's goal. Apple is actively achieving that goal, with their many year strategy of in house silicon/features.

Re:Apple introduces M4 chip by SpaceManNabs on Tuesday May 07, 2024 @05:09PM (#40291511)
> Apple is actively achieving that goal, with their many year strategy of in house silicon/features

So are other companies, with their many year strategy of actually building models that accessible to the public.

yet Apple is "actively" achieving the goal without any distinct models.

Re:Apple introduces M4 chip by nomel on Tuesday May 07, 2024 @05:44PM (#40291885)
No. "On edge" is not a model existence limitation, it is a hardware capability/existence limitation, by definition, and by the fact that, as you point out, the models already exist.

You can already run those open weight models on Apple devices, on edge, with huge improvements on the newer hardware. Why is a distinct model required? Do the rumors appease these thoughts?

If others are making models, with no way to actually run them, that's not a viable "on edge" strategy, since it involves waiting for someone else to actually accomplish the goal first (as is being done by Apple).

Re:Apple introduces M4 chip by SpaceManNabs on Tuesday May 07, 2024 @06:23PM (#40292244)
> "On edge" is not a model existence limitation

It absolutely is. Model distillation will still be pertinent. And so will be parameter efficient tuning for edge training. I cannot emphasize more how important this is. You will need your own set of weights. If apple wants to use open weights, then sure. Ignore this. Don't seem like they want to long-term... And even if they use open weights, they will still be behind other companies have done model distillation and federated learning for years.

> Why is a distinct model required?

Ask apple's newly poached AI hires this question. Doesn't seem like you would take an answer from me.

> If others are making models, with no way to actually run them

Is this the case? People have been running distilled llamas on rPis with pretty good throughput.

Re:Apple introduces M4 chip by nomel on Tuesday May 07, 2024 @07:20PM (#40292643)
> And even if they use open weights, they will still be behind other companies have done model distillation and federated learning for years.

I'm sorry, but we're talking about "on edge" here though. Those other companies have no flipping hardware to run it "on edge", in a "generic" way, which is the goal. Apple's strategy involves the generic.

> If apple wants to use open weights

This doesn't make sense. Apple doesn't dictate the models you can use with their hardware. You can already accelerate LLAMA with the neural engines. You can download the app right now. You can already deploy your models on edge, on their hardware. That is the success they're achieving. You cannot effectively do this on competitor hardware, with good performance, from "budget" to "Pro" lineup, which is a requirement of the goal.

> they will still be behind other companies have done model distillation and federated learning for years.

What hardware are they running it on? Are they taking advantage of Apple (or other) hardware in their strategy? Federated learning is an application of "on edge", it doesn't *enable* on edge, which is part of Apple's strategy.

> Ask apple's newly poached AI hires this question. Doesn't seem like you would take an answer from me.

Integrating AI in their apps/experience is not the same as enabling a generic "on edge", default, capability in all Apple devices (which they have been working towards for years now). This is the end goal for "on edge". You seem to be talking about OS integration, or something else.

> People have been running distilled llamas on rPis with pretty good throughput.

Yes, the fundamental limitation there being hardware performance, not the model, with that "pretty good" making the "pretty terrible" user experience. But, there's also nothing stopping anyone from running these distilled (a requirement of limited hardware) models on Apple hardware, taking advantage of Apples fully defined "on edge" strategy. ;) Again, you can run llamas on Apple silicon, accelerated, as I do.

Re:Apple introduces M4 chip by SpaceManNabs on Tuesday May 07, 2024 @08:41PM (#40293184)
> Those other companies have no flipping hardware to run it "on edge", in a "generic" way, which is the goal

Maybe? This is why I responded to:

> It's everyone's goal. Apple is actively achieving that goal

This is is the issue I found disagreeable. Other organizations and individual people are achieving that goal too. Google says GPT-Nano is going to device, and if the benchmarks are to be believed, if it runs at that level, their work so far is also actively achieving that goal. Meta has released multiple distilled models that people have already proven to run inference at the device level. It cannot be argued that meta is not actively achieving that goal either. They don't have to release the hardware because they went a different route. I applaud Apple for the M chips. They are super cool. People are still working on using them so Apple can realize that goal too.

So when you go to the statement that started this

> Apple's AI strategy is to put inference (and longer term even learning) on edge devices

Multiple orgs also share this. And I can't say that one particular org is super ahead of the others. And I can't elevate apple in that race because it is not clear that they are truly privacy-focused or that they will keep APIs open.

> You cannot effectively do this on competitor hardware, with good performance, from "budget" to "Pro" lineup, which is a requirement of the goal

Why do you say you cannot do this with good performance? How many tokens do you want for a device? Is 30T/s enough? You can do that on laptops running small mixtral.

> What hardware are they running it on? Are they taking advantage of Apple (or other) hardware in their strategy?

I don't know. I have nothing indicating necessarily apple or nvidia or otherwise. Do you?

> [Regarding the rest]

Sure, my point is that they definitely have an intent for bespoke models. And why I raised the point that not all computation will be feasible on edge for the time being. My point with what raised this particular line of inquiry is whether a pure edge experience truly enables the best user experience. And also why I raised the point about Apple's track record of open APIs. Which is why "actively achieving" is something that I put doubt on. And I also cast doubt on apple being privacy focused. Just emphasize tying it back to the reason I even commented.

Re:Apple introduces M4 chip by SpaceManNabs on Wednesday May 15, 2024 @03:42PM (#40371437)
A week after this comment, google announced gemini nano locally in chrome.