News for hackers. Stuff that matters.
Re:Generate images in one second on your Mac using a latent ... by grandpa_yeti on Friday October 27, 2023 @01:13PM (#38041143)
Seeing this kind of image generation limited to M series Macs just goes to show how far ahead Apple is in the notebook GPU game.
Re:Generate images in one second on your Mac using a latent ... by andybak on Friday October 27, 2023 @01:20PM (#38041246)
I've got a Windows laptop with an RTX 3080 in it that runs this model no problem. I don't have it to hand or else I'd post some timings.

On my Desktop PC with a 4090 in I was getting speeds of 0.2 to 0.3 seconds for reasonably acceptable quality settings so I would expect 0.5s or so on the laptop.

What Apple are ahead on is doing this on a fanless laptop that doesn't hit internal temperatures of triple digits.

Re:Generate images in one second on your Mac using a latent ... by traceroute66 on Friday October 27, 2023 @01:39PM (#38041509)
> What Apple are ahead on is doing this on a fanless laptop that doesn't hit internal temperatures of triple digits.

You also forgot the bit where Apple are ahead of doing it on a laptop that can achieve it without needing to be tethered to a power socket to achieve the performance.

Re:Generate images in one second on your Mac using a latent ... by alex_duf on Friday October 27, 2023 @02:02PM (#38041805)
It's the same thing, power is heat with talking about chips
Re:Generate images in one second on your Mac using a latent ... by echelon on Friday October 27, 2023 @02:40PM (#38042267)
> You also forgot the bit where Apple are ahead of doing it on a laptop that can achieve it without needing to be tethered to a power socket to achieve the performance.

Kind of sad that a huge anti-competitive, trillion dollar company is the one offering it. Especially given their stances around user freedom.

I'd much rather innovation be distributed. The goal posts should be moved to a point everyone is pushing towards the next thing. Having Apple be the only game in town is unhealthy.

Re:Generate images in one second on your Mac using a latent ... by astrange on Friday October 27, 2023 @06:56PM (#38045057)
Would say that rather than one company being the only one who can do it, there is only one company that can't do it, and it's Intel.
Re:Generate images in one second on your Mac using a latent ... by echelon on Friday October 27, 2023 @07:15PM (#38045192)
Ouch. But true.
Re:Generate images in one second on your Mac using a latent ... by brucethemoose2 on Friday October 27, 2023 @02:15PM (#38041959)
> What Apple are ahead on is doing this on a fanless laptop that doesn't hit internal temperatures of triple digits.

I think you could pull this off on a Asus G14 in an ultra power saver mode, with the fans off or running inaudibly. The cooling is so beefy they will actually work fanless if you throttle everything down and mostly keep the GPU asleep.

The M chips could certainly sustain image generation better without a fan.

Re:Generate images in one second on your Mac using a latent ... by errnoh on Friday October 27, 2023 @02:58PM (#38042479)
45it/s (0.1~s per image) on 7900XTX here, so it's still one magnitude faster on GPU with a lot higher power draw than the macs. Doing 10x slower with non-tethered is quite nice outcome.
Re:Generate images in one second on your Mac using a latent ... by wasyl on Friday October 27, 2023 @03:37PM (#38042931)
At this point what Apple is ahead with is hype that M Macs are that fast, and the developers targeting them because things just work. Plenty of people should be able to run these models locally but there's close to no nice software that does that out of the box for Windows or Linux
Re:Generate images in one second on your Mac using a latent ... by astrange on Friday October 27, 2023 @06:57PM (#38045064)
It's because of the unified memory architecture. It's harder/different to do this on x86, because you have to have a large memory GPU and target that.
Re:Generate images in one second on your Mac using a latent ... by orbital-decay on Friday October 27, 2023 @01:25PM (#38041307)
Not sure why you think it's limited to M series Macs or has to do anything with Apple at all. It's just an instruction on how to run a diffusion model trained in a novel way on particular hardware.
Re:Generate images in one second on your Mac using a latent ... by minimaxir on Friday October 27, 2023 @01:19PM (#38041227)
It's possible to do on non-Apple Silicon Macs, just more annoying. There are a few generative AI implementations which use raw Metal but not sure what the most popular one is.
Re:Generate images in one second on your Mac using a latent ... by smoldesu on Friday October 27, 2023 @01:22PM (#38041275)
It's certainly not limited to M-series Macs. Pretty much any laptop (even Macbooks) made after 2014 has AVX support for CPU acceleration. Apple's acceleration path here is pretty much a Metal shader running in Pytorch, if memory serves.
Re:Generate images in one second on your Mac using a latent ... by amelius on Friday October 27, 2023 @02:20PM (#38042009)
It mostly shows how shitty compatibility is between platforms that share the same roots.
Re:Generate images in one second on your Mac using a latent ... by liuliu on Friday October 27, 2023 @02:36PM (#38042194)
The implementation is not even optimized for Macs. LCM is just very easy to be fast (batch size = 1 and only 2 to 8 steps, depending on what kind of headline you are trying to make).
Re:Generate images in one second on your Mac using a latent ... by filterfiber on Friday October 27, 2023 @02:37PM (#38042214)
They also have a decent advantage for LLMs because of their memory bandwidth to system memory vs GPU's with limited VRAM limited over PCIE to the system memory.
Re:Generate images in one second on your Mac using a latent ... by novaomnidev on Friday October 27, 2023 @02:37PM (#38042219)
Got this working on an intel Mac
Re:Generate images in one second on your Mac using a latent ... by victordevt on Friday October 27, 2023 @03:03PM (#38042539)
How?
Re:Generate images in one second on your Mac using a latent ... by victordevt on Friday October 27, 2023 @03:09PM (#38042603)
Nevermind, I figured it out ;)