News for hackers. Stuff that matters.
Re:Tensorbook by traceroute66 on Wednesday December 28, 2022 @05:01AM (#34159342)
"Up to 4x faster than Apple M1 Max" they say ...

Aah, that famous marketing "up to" ! So I guess that's in certain cherry-picked scenarios then ?

Also what they don't tell you is that the Apple will happily do ML for hours on end ON BATTERY with zero performance impact. Whilst an x86 laptop will need to be permanently tethered to your nearest power socket in order to obtain top performance. Otherwise you will suffer a performance drop and kill off your battery life.

I know the usual Apple bashers gonna hate, but fact of life its that for most people Apple have done a sterling job on their Apple Silicon laptops. No doubt more to come with the M2 in due course.

Re:Tensorbook by guites on Wednesday December 28, 2022 @05:39AM (#34159570)
Sadly Apple Silicon is still very much difficult to properly configure for some areas of ML whilst leveraging the GPU (object detection for example), so having that nvidia really makes the set up smoother.
Re:Tensorbook by ribit on Wednesday December 28, 2022 @05:16AM (#34159426)
Well, I am a big proponent for Apple products, but for ML-related work Apple Silicon is not the best good value for money currently. This will likely change in the future, when we have larger matrix accelerators and ML-specialized data types in the GPU/AMX, but Apple is not there yet.
Re:Tensorbook by yyyk on Wednesday December 28, 2022 @05:34AM (#34159549)
>ON BATTERY

Why would I even care about that for ML?

>I know the usual Apple bashers

Apple fanboys found one benchmarks which looks fine (Performance per watt) and decided it applies to everything and the only thing that ever matters - even when it's totally irrelevant.

It used to be they cared about Mhz, until it became 'the Mhz myth' when Apple was losing.

Re:Tensorbook by traceroute66 on Wednesday December 28, 2022 @05:43AM (#34159592)
> Why would I even care about that for ML?

Erm .... because you are buying an ML LAPTOP ?

If you're going to be buying a laptop to leave it plugged into the mains the whole time when doing intensive tasks, then you might as well buy a workstation ?

The whole point is you can buy an Apple silicon laptop and you can use it without performance loss as ... shock, horror ... a portable device.

Re:Tensorbook by TeMPOraL on Wednesday December 28, 2022 @06:51AM (#34160081)
> If you're going to be buying a laptop to leave it plugged into the mains the whole time when doing intensive tasks

Well, this is how most people use laptops, isn't it? The main benefit of portability is that you can move to another location in between the tasks, with little to no set up and teardown, and without having to suspend or power off the machine. Few people do anything on their laptops while walking around - the usual use case is taking your computer to a meeting room or a cafe, and the first order of business for anyone is usually to find a power outlet.

Re:Tensorbook by traceroute66 on Wednesday December 28, 2022 @07:09AM (#34160211)
> Well, this is how most people use laptops, isn't it?

No, it is not how most people use laptops.

For example, airline travel.

Let's start at the airport first, shall we ?

Most airports, for "security reasons" don't have many power sockets hanging around. And if they do, they are generally at inconvenient centralised charging desks. So that's a bit of a pain if you want to work somewhere reasonably quiet and away from the hoards.

Of course you may be an Airline Elite member, in which case you get access to the lounges. But lounges are generally busy places. Many don't have that many power sockets.You also need to wrestle with power-adapters etc. Finally, your laptop charging cord is a trip-hazard waiting to happen.

Then let's get on board the aircraft.

The majority of short-haul aircraft do not have any sort of charging mechanism available, so that's that ruled out.

Meanwhile long-haul wide-body aircraft will generally have power (and more modern ones USB, although the USB power generally will be limited and insufficient for a hungry laptop).

So overall, in reality, the only time you'll be able to comfortably use your laptop on mains power during air travel is on a long-haul wide-body flight where you are seated for 14+ hours (other than toilet breaks etc.).

> the first order of business for anyone is usually to find a power outlet

The whole point is that Apple makes that "first order of business" a deprecated relic of the past.

With an Apple silicon laptop you can turn up and work most or all of the day without having to concern yourself where the nearest power outlet is.

Re:Tensorbook by yyyk on Wednesday December 28, 2022 @09:14AM (#34161139)
>If you're going to be buying a laptop to leave it plugged into the mains the whole time when doing intensive tasks, then you might as well buy a workstation ?

I'd rather it plugged into the mains so I can also plug it into a nice big monitor and a large keyboard and a mouse, so I can use it like a human being and not a computer appendage.

A portable device is for BYOD. Actually working with it while on the go? I'd never do this unless it's an emergency.

Re:Tensorbook by marginalia_nu on Wednesday December 28, 2022 @05:14AM (#34159419)
Wouldn't really want to do heavy computational work on any laptop. Thermal throttling will gut your performance. Laptops just don't have the cooling necessary to have it any other way.
Re:Tensorbook by ribit on Wednesday December 28, 2022 @05:21AM (#34159456)
But that's exactly where newer Apple laptops shine. They don't have the throttling issues associated with x86 simply because they use 2-4 times less power for the same level of performance. E.g. my M1 Max CPU maxes out at 5-6 watts per core, while delivering performance comparable to that of an Intel P-core running at 4.5-4.8 ghz. In multicore, that's 40 watts for the level of performance where Intel or AMD would somewhere between 80 and 150 watts, depending on the configuration. And 40 watts is something that a laptop can easily dissipate.
Re:Tensorbook by dpoljak on Wednesday December 28, 2022 @05:39AM (#34159571)
The efficiency of Apple silicon is a matter of fact now, however isn't nVidia with its cuda still king in this segment? Please correct me if I'm wrong but doing ml/dl on CPU instead of GPU seems to be the least efficient way to go about it?
Re:Tensorbook by traceroute66 on Wednesday December 28, 2022 @05:55AM (#34159683)
> nVidia with its cuda still king in this segment

I suspect this will gradually change, perhaps especially now a lot of effort has been made to bring tooling such as PyTorch over to Apple silicon.

> on CPU instead of GPU

But Apple isn't doing it on CPU.

You are thinking in terms of x86 discrete components.

Apple Silicon is a fully integrated architecture including unified memory. That's what makes it so efficient.

Re:Tensorbook by bitL on Wednesday December 28, 2022 @06:59AM (#34160142)
Yes, Nvidia still obliterates M1/M2 in Deep Learning. M1 is close to GTX1650 in real-world DL workloads though in theory based on TFlops it should be around GTX1070.
Re:Tensorbook by ribit on Wednesday December 28, 2022 @07:08AM (#34160206)
Note that I was talking about the CPU specifically. GPU on Apple is also more efficient (approx 0.25TFLOPs/watt for M1 series), but Apple GPUs lack support for ML-optimized FP representation (primary reason why Nvidia is so good in this domain). Apple does have a matrix coprocessor which offers excellent performance/watt for inference, but these units are relatively small and only offer limited aggregated performance.

I think it’s just a question of time until Apple offers hardware support for BFLOAT and other formats on the GPU and AMX (they already have BFLOAT16 in the CPU), at which point their ML performance will improve dramatically.

Re:Tensorbook by bitL on Wednesday December 28, 2022 @06:54AM (#34160104)
> Apple will happily do ML for hours on end ON BATTERY

At 1/10th of the speed...

Re:Tensorbook by traceroute66 on Wednesday December 28, 2022 @06:59AM (#34160141)
> At 1/10th of the speed...

Yawn.

As has already been clearly explained numerous times in this discussion, e.g. @ribit[1] below, there is no throttling on Apple Silicon when running on battery.

[1] https://news.ycombinator.com/item?id=34159456

Re:Tensorbook by bitL on Wednesday December 28, 2022 @07:01AM (#34160156)
It's not about throttling, it's about mobile 3080Ti vs M1 GPU performance. M1 hits at around GTX1650 for Deep Learning workloads in GPU benchmarks.
Re:Tensorbook by TeMPOraL on Wednesday December 28, 2022 @12:12PM (#34163154)
> there is no throttling on Apple Silicon when running on battery

... yet. The computational demand of typical work will increase to eat up the extra capacity, as it always does - and the only way for a laptop to handle the same workload plugged or unplugged is to cap its plugged-in performance.