171 points · by ingve · 2y ago · 195 comments
I think smaller models will keep getting better. For privacy and economic reasons, it makes sense to do as much AI on-device as possible.
This was a MacBook, but since you're just saying "Mac", I don't know what you're referring to.
I think that the MacBook couldn't cope with the heat generated so it went to its knees. I've read about it on Reddit as well.
The big thing is just don’t lock the models into memory on lower RAM systems. That gets you into trouble when some of the unified RAM is needed for something else and you can soft lock the system. The heat is not an issue though in my experience.
EDIT: maybe the YouTube demo was using 2 bit quantization?
I suspect OBS can crash it all by itself.
https://github.com/ml-explore/mlx-examples
This is where all of the action is at right now.
You can also use LM Studio: https://lmstudio.ai/
x86 has to scale from embedded boards to laptops to servers. AMD made different trade offs than Apple.
Apple chose to achieve a level of performance by keeping the frequency low and having a high IPC. High IPC means that cores consume a larger size of the die. That helped with lower power consumption.
x86 makers like AMD, did the other way around. They dedicated a smaller portion of the die to a core. That makes it cheaper. To make up for that, they used a higher frequency, which also means a higher power consumption.
Apple also has a node advantage, which also makes their CPUs more expensive.
AMD could totally do what Apple did: have faster IPC at lower power consumption if they would have release more expensive CPUs targeted at the mobile market.
But AMD and Apple have different goals.
If we stick to the mobile world, Qualcomm is doing with their Orion cores just what Apple did with their M cores. In the first half of this year we will see laptops with Orion cores that will have both strong IPC and low power consumption.
M2 is on TSMC N5. AMD's Zen 4 mobile processors are made with TSMC N4. From die shots, I believe the P-cores in the M2 are about the same size as Zen 4 cores. And yet Apple's M2 laptops are a good deal more power efficient than Zen 4 laptops.
Zen4 is competitive when it comes to actual computing. When doing (almost) nothing, the Apple system comes out on top, but that also has a lot to do with its software.
Isn’t this also true of ARM?
To me the more interesting aspect is how memory architecture will be approached going ahead by both parties. Apple can afford to go more bespoke and integrated, but how can x86 maintain a good mix between performance and design flexibility.
Doubtful. I'm not sure they have the talent/knowledge to pull it off while Apple Silicon is a moving target with a new generation introduced in each new iPhone.
Its kinda like the evolution of bitcoin mining-everyone was doing it with GPUs, AMDs were better because of some hardware optimization where they could hash something in less cycles, then people started making ASIC which are purpose built and the fastest possible way to run the necessary compute. There were no technical advancements here, just economic forces driving the design and manufacture of components that made making ASICs profitable.
Apple did the same thing except they designed the chip and the computer as one, and they succeeded because it allowed them to optimize stuff further, and you see this in results where they are the leader but not by much, and often behind systems that are overclocked in single core performance. Power consumption on macs, also varies greatly depending on what you are running, which is again a result of optimization for particular use cases.
And AMD employed some of the most talented people in the area like Jim Keller. They totally can do it. Intel, too. Qualcomm is doing it with Orion and Qualcomm has less expertise and resources.
Are companies going to pay for that development?
As far as I know, Gnome profiled a bunch of their biggest UI slowdowns and none of them would have been (much) improved on native.
Bad code is bad, JavaScript isn’t the main culprit here.
I think a great deal of the issue comes down to bloated frameworks, bad application code, and a prevalent attitude of nonchalance towards optimization that compounds with dev machines being powerful enough to mask most performance problems.
I’m not usually the type to complain about input lag; most modern apps on a recent machine are snappy enough for me.
But I’ve been messing around with egui lately, and it just feels… fast. It’s weird.
But nobody really cares.
Just a plethora of enshittified apps developed to be cheap rather than good.
The laptop models also include a separate ML/AI inference accelerator besides the CPU and GPU, but for now that has software support only for Windows.
Nvidia of course has the added complexity that they were going to buy Arm and then that got blocked. They had to adjust to that as well. And of course they are the GPU provider of choice for GPUs to many AI developers and researchers. On paper they have all the right tech and ideas here.
There's a recent announcement of them working on this now: https://www.reuters.com/technology/nvidia-make-arm-based-pc-...
AMD, Samsung and a few others have similar plans. My guess is there will be several options in the market in a few years. We'll have to see how good those are.
https://www.macrumors.com/2023/12/18/qualcomm-snapdragon-x-e...
... while using 4 times the power of an M3.
Edit: looks like 23 watt performance is more or less the same https://www.anandtech.com/show/21112/qualcomm-snapdragon-x-e...
I know giant gaming laptops exist, but in order to keep that power and go smaller, the price is going to jump up in the moon.
So that’s $1100 or $1200.
Yes other models go way up from there. And many PCs are sub $500. But $2k is not the normal Apple price.
The upgraded models feel like a different beast entirely. Apple wants you to feel like you're justified paying for 16gb of memory and 1tb of storage because... you are. Those upgraded machines run smooth and stay running nice after multiple years of software updates. MacOS is a storage-hungry OS, 3 years of daily-driving a base-model Macbook Air will make you wish you spent $2k on your laptop.
https://www.anandtech.com/show/21112/qualcomm-snapdragon-x-e...
On things like GPU and LLM performance, I'd say they already have, and often at significantly lower prices.
For the particular use case of "a laptop on battery that doesn't die in ten minutes" Apple is decently far ahead. But everything else you can easily beat it if you make different trade-offs.
I am not an Apple or MacOs fan but I recently bought a MacBook Pro just for battery life. So I can watch movies and browse the Internet on the sofa without having to plug the laptop.
Unfortunately, this test didn't include a more recent Macbook, so I can't tell how it stacks up against the M3. Still, for about €500 less than the M2 Air, I know what I would pick. The 1600p screen and the soldered-on memory is a bit of a downside, but the thing sells for less than half the price of a new M2 Macbook Air when you actually configure it with 16GB of RAM and 512GB of storage; whatever improvements the M2 chip made don't seem all that interesting for that price difference.
Based on their historical data [2] for another guide, the Zenbook also seems to beat the M2 in terms of multi core performance and browsing battery life when recorded in another test, but I can't tell if those numbers are representative.
[1]: https://tweakers.net/reviews/11472/4/laptop-best-buy-guide-o...
[2]: https://tweakers.net/reviews/11610/4/laptop-best-buy-guide-d...
Battery life is strongly tied to software though, and here Apple has the upper hand. However, if you use Chrome vs Safari, you will notice degraded battery life on Mac OS too.
There is no reason for Windows to be sluggish on any mid-range CPU or up, yet here we are. I should not, I haven't used Windows for a good while, but I see demos and people are amazed by the speed of which windows open and coming from the Mac or a light weight Linux desktop, I can't say that I'm impressed.
Apple still holds the advantage that they just need to target a very small set of hardware configurations, all of which they have designed and control. It does still allow them to build the most pleasant desktop experience of all the current offering, even with less amazing hardware (mostly their GPU).
But this is HN, what people probably mean is: LLM are still better with an Nvidia GPU and neither Apples nor AMDs APIs and libraries are as good as Nvidias CUDA.
When it comes for single threaded performance, both Geekbench and Cinebench show that M2 to M3 was a bigger jump than from M1 to M2.
That's the point.
Whether you adhere to it is none of my concern.
Personally, I won't. I'm far more interested in buying a 14700K to upgrade my 12700K daily driver desktop than I am replacing my M2 Macbook Air that spends most of its time as a portable jukebox.
(Note that bfloat16 has a different range than float16, so you can't interpret one as the other)
If the technology advances at such a pace that almost everyone is sitting on obsolete or far too weak hardware then the economics of on-device AI processing may not work out for app developers.
If it's just a matter of running a little bit slower or a little bit faster then it won't be a problem. But if people miss out on important capabilities altogether unless they spend thousands on hardware at least every other year then AI will be almost exclusively a cloud thing.
Its the only way huge AI models can be latency and cost efficient across massively heterogeneous execution environments.
I rather suspect that people will do some lowest common denominator inferencing on-device and shift everything else to the cloud.
We already see NPUs spanning 3 orders of magnitude in TOPs in consumer devices. In the next few years that will probably be eight or ten orders of magnitude. I don’t think a LCD approach is going to work.
I would say that everything gets pushed to the cloud, but the economics are brutal. All of those companies spending billions a year on GPUs have very strong incentives to push as much inference to the edge as possible.
My 2 cents, since I am also looking to replace the original M1 MBP with something.
- Apple's official refurbished laptops are a thing, M2 already can be found on it. They have warranty.
- Think what you need, RAM vs CPU. If you run Docker containers, hundreds of browser tabs, work with heavy multimedia etc. and your budget is limited (or you wouldn't be asking) then you may want to consider M1/M2 with specced up RAM (you'd need to get Pro or Max to unlock higher RAM) instead of a basic M3. Yes, basic M3 is faster than basic M1, but it won't make your RAM issues go away so if you are at the limit of RAM capacity then you'll shoot yourself in the foot.
- If you do go for a basic model still consider upping at least storage because at the low end (less than 1TB) SSDs in M2 and M3 have been nerfed and are slower than SSDs in M1.
I’ve traded in more MacBooks than I care to count, almost always via mail (the method with the most complaints because it’s asynchronous).
Never had any issues and my keycaps have almost always been worn out.
As long as your device meets the condition as answered in the questionnaire, you should get what is quoted. Those are the only things they care about, they don’t even want the charger for example.
If you’re truly anxious about it, you can also walk into an Apple Store and you’ll get the decision on the spot.
My personal MacBook Pro (m1 pro) feels (and benchmarks) far faster than my work M1 Max which has cylance and Jamf on it.
Recently it has had a cpu core dedicated to `find / -iname log4j-core*` which has a very unreasonable impact on everything else on the machine.
AFAIRC, it was scanning for vulnerable log4j versions
On the one hand, a lot of security software is poorly written, eats resources like it's Chrome, and introduces all kinds of microstutters through (exclusive) locks all over the place.
On the other hand, many operating systems don't provide a (reliable) API to design decent security software against. Log collection is all over the place, even on Windows, which traditionally had Event Log as a well concentrated logging destination. There's no way to write good security software for an operating system that's written without security software in mind.
If I were handling important secrets, I wouldn't want a fleet of machines out there with just the basic antivirus that came preinstalled with the OS (if it came with one at all). On the other hand, so many pieces of "enterprise" security management are absolutely terrible, and require one (or more) full-time employee(s) to constantly configure them, communicate with users, and solve problems, just to keep software in check.
I think both operating systems and security management software need to listen to each other, and change. Operating systems need to be written with security stuff in mind, and security software needs to focus on a good user experience rather collecting than shiny buzzwords to sell to management.
They won't because by the time the users get fed the "food" the contract is long since signed and valid for a few years, and the competition isn't better so even if management could be arsed to vote with their wallet, they couldn't.
Is there an actual term for "the entire industry is bullshit, but can get away with it because the cost to entry is so high that new, less bullshit competitors can't even enter the industry"?
That's the job of the OS vendor: to design software such that third-party security theatre isn't necessary.
Particularly, it seemed to be configured to scan every file on disk access, which was a performance nightmare for things like that involved "accessing lots of files" like Git on our large repo. Spotlight indexing seemed to cause some pretty big random lag spikes as well.
You're most likely running low on RAM and the machine is swapping. Check in Activity Monitor what's going on.
My personal Macs with none of that crap perform extremely well, but that third-party security crap can be a massive killer.
Anything weird showing in Activity Monitor or Console?
It’s sad but it’s true.
These days I can't seem to hit my M2 Max hard enough. Nothing slows it down. Just about anything will have lag spikes if you crank too much stuff through it, so I assume that (like me) you're experiencing this with devices running MacOS with around 8-16GB RAM, M1 processor at best?
Which Linux do you use? We've had fast enough machines for fast and smooth GUI rendering for decades now. It's just that most software isn't optimized any farther than a few years back.
Linux tends to be quite good on resource consumption. I can still run smooth and fast Linux on my 15 year old laptop. I can't do the same with Windows.
That said, "terrible corporate spyware" would be my first guess here.
8GB is just too little for the base model. From what I've seen the OS alone will use 20-50% of that, and if I do anything productive with a couple applications and browser tabs I'm soon at 100% memory usage. Which can cause lags or short freezes when switching between applications. But on 16GB it's a very different experience, it gives decent breathing room.
I think Apple really shot themselves in the foot with this, anyone using even half the CPU's potential is guaranteed to have significantly degraded performance and a worse experience.
The point is that at the moment only a few of us are interested in training our own models, but this will change gradually as Apple introduces more machine learning models trained on our own local data behind the scenes. At that point, Macs with less support for this will start to slow down (well, or they’ll just not support those features). And the M1 chip will be worse in this regard than the M2.
Worrying today about how your hardware will behave in 5 years from now wouldn't help you much.
I tried running some mpx supported conda/pytorch inference (whisper to be precise) on a workplace issued M1 mac and it did fall back to cpu. I encountered:
- `NotImplementedError: The operator 'aten::_fft_r2c' is not currently implemented for the MPS device`
- `TypeError: Trying to convert ComplexFloat to the MPS backend but it does not have support for that dtype`.
EDIT: just read up it might have more to do with audio processing.
Fingers crossed for better mac support in ML in general! Competition is a great thing