Live data from Hacker News

Stable Diffusion with Core ML on Apple Silicon

machinelearning.apple.com

141–150 of 184 posts

Re: Stable Diffusion with Core ML on Apple Silicon

#141
post #100

Earlier quoted context omitted.

Redistributing that model to end users that violate Attachment A seems like a minefield.

Not really. You're not responsible for how users use products you distribute. The license is passed along to them, they would be the ones violating it.

Are you an attorney?

Re: Stable Diffusion with Core ML on Apple Silicon

#142
post #77

Earlier quoted context omitted.

Agreed. And the posted benchmarks for the M2 Macbook Air make me consider 'upgrading' to an Air.

That laptop feels like liquid power. It's uncanny. Macbook Airs (way back when) felt sluggish. The MBA M1 changed that, it was "fine". These M2s are unexpectedly responsive on an ongoing basis. The MacBook Pro M1 Max is great (would be fantastic except they lost a Thunderbolt port in favor of legacy HDMI and memory card jacks), but you expect that machine to be responsive, so it's less surprising. The Studio Ultra, t…

I dont like lack of open source drivers, but honestly for work DisplayLink works just fine on MacOS. E.g I used 4 monitors on M1 Air using DisplayLink:

* Air built-in display

* 2K display connected via USB-C -> DisplayPort adapter

* Two more 2K displays of same model via DisplayLink connected via USB hub

For all practical means it's almost impossible to see any DisplayLink compression artifacts even in most of games.

PS: Each adapter cost me $40:

https://www.amazon.com/gp/product/B08HN2X88P/

Re: Stable Diffusion with Core ML on Apple Silicon

#143

How come you always have to install some version of pytorch or tensor flow to run these ml models? When I'm only doing inference shouldn't there be easier ways of doing that, with automatic hardware selection etc. Why aren't models distributed in a standard format like onnx, and inference on different platforms solved once per platform?

DiffusionBee is an app that is completely self-contained and lets you play with this stuff completely trivially, no installs required. https://diffusionbee.com/

But it's not optimised to work with Apple's CoreML (yet), isn't it?

Re: Stable Diffusion with Core ML on Apple Silicon

#144

How come you always have to install some version of pytorch or tensor flow to run these ml models? When I'm only doing inference shouldn't there be easier ways of doing that, with automatic hardware selection etc. Why aren't models distributed in a standard format like onnx, and inference on different platforms solved once per platform?

Seconded, I wish for a way to work with ML models using native code rather than through some Python scripting interface. I believe TensorFlow is there with C++, but it works only with C++ and not through FFI.

It would increase my interest in experimenting with these models 1000% at the least. I really can't be bothered to spend hours fucking around with pip/pipenv/poetry/virtualenv/anaconda/god knows what other flavour of the month package manager is in use. I just want to clone it and run it, like a Go project. I don't want to download some files from a random website and move them into a special directory in the repo only created after running a script with special flags or some bullshit. I want to clone and run.

Re: Stable Diffusion with Core ML on Apple Silicon

#146

Can anyone explain in relatively lay terms how Apple's neural cores differ from a GPU? If they can run stable diffusion so much faster, which normally runs on a GPU, why aren't they used to run shaders for AAA games?

They're designed to run ML specific functions like matrix multiply and stuff. Nvidia has a similar idea in "tensor cores". I think because they're low but operations like 8 or 16 bit which is faster but too low res for GPU work.

Re: Stable Diffusion with Core ML on Apple Silicon

#147

I think it's sad that Apple doesn't even give attribution to any of the authors. If you copy the Bibtex from this site, the Author field is just empty. Their names are also not mentioned anywhere on this site. This site is purely a marketing effort.

Is it standard for Apple to attribute authors in the Bibtex? Or do they usually leave it empty?

Re: Stable Diffusion with Core ML on Apple Silicon

#148
post #124

Earlier quoted context omitted.

> I think it's sad that Apple doesn't even give attribution to any of the authors. Pretty much like Stable Diffusion and the grifters using it in general and they will never credit the artists and images that they stole to generate these images.

This is sort of like if you learned English from reading a book and the author said they owned all your English sentences after that. Of course you can see the original images ( https://rom1504.github.io/clip-retrieval/ ), it was legal to collect them (they used robots.txt for consent just like Google Image Search) and it was legal to do this with them (but not using US legal principles since it's made in Germany). "…

> Of course you can see the original images (https://rom1504.github.io/clip-retrieval/)

In fairness this is an obscure Github page that there clearly was no thought around mitigating any of these problems and we are having what we are having now with the storm around "robots taking artist's jobs" which they may (at least for some 90% of "artists" who are just rehashing existing styles) or may not, only time will tell.

Re: Stable Diffusion with Core ML on Apple Silicon

#150
post #99

Earlier quoted context omitted.

I think you completely misunderstood what I was saying. I wasn’t saying that the author of DiffusionBee should make a SwiftUI application. In fact I said the opposite in that I agree that the person who expected a native app is entitled. I was however refuting the person I was responding to who said making a native app is a huge undertaking, because learning SwiftUI is fairly quick. That’s not to say that the maintai…

It is still kind of toxicity: “cool, you did it, but you could do it better - I could do it better, just out of time”. Don't be toxic to don’t get that hostility.

That’s not at all what I’m saying, in fact you keep trying to infer the opposite of what I’m saying, and now you’re just doubling down.

If anything you’re the one being toxic because you’re unable to have a reasonable conversation about a misunderstanding, and are instead trying to put words in my virtual mouth to conform to your outrage.

Post reply on HN