News for hackers. Stuff that matters.
Re:Apple introduces M4 chip by alfalfasprout on Tuesday May 07, 2024 @02:27PM (#40289619)
Not really (I work on AI/ML Infrastructure at a well known tech company and talk regularly w/ our peer companies).

That said, inference on apple products is a different story. There's definitely interest in inference on the edge. So far though, nearly everyone is still opting for inference in the cloud for two reasons:

1. There's a lot of extra work involved in getting ML/AI models ready for mobile inference. And this work is different for iOS vs. Android 2. You're limited on which exact device models will run the thing optimally. Most of your customers won't necessarily have that. So you need some kind of fallback. 3. You're limited on what kind of models you can actually run. You have way more flexibility running inference in the cloud.

Re:Apple introduces M4 chip by throwitaway222 on Tuesday May 07, 2024 @03:49PM (#40290704)
Inference on the edge is a lot like JS - just drop a crap ton of data to the front end, and let it render.
Re:Apple introduces M4 chip by teaearlgraycold on Tuesday May 07, 2024 @02:48PM (#40289907)
Pytorch actually has surprisingly good support for Apple Silicon. Occasionally an operation needs to use CPU fallback but many applications are able to run inference entirely off of the CPU cores.
Re:Apple introduces M4 chip by ein0p on Tuesday May 07, 2024 @03:09PM (#40290198)
I’ve found it to be pretty terrible compared to CUDA, especially with Huggingface transformers. There’s no technical reason why it has to be terrible there though. Apple should fix that.
Re:Apple introduces M4 chip by teaearlgraycold on Tuesday May 07, 2024 @07:17PM (#40292619)
Yeah. It’s good with YOLO and Dino though. My M2 Max can compute Dino embeddings faster than a T4 (which is the GPU in AWS’s g4dn instance type).
Re:Apple introduces M4 chip by ein0p on Tuesday May 07, 2024 @07:37PM (#40292759)
MLX will probably be even faster than that, if the model is already ported. Faster startup time too. That’s my main pet peeve though: there’s no technical reason why PyTorch couldn’t be just as good. It’s just underfunding and neglect
Re:Apple introduces M4 chip by whimsicalism on Tuesday May 07, 2024 @09:40PM (#40293518)
t4's are like 6 years old
Re:Apple introduces M4 chip by rcarmo on Tuesday May 07, 2024 @03:08PM (#40290175)
And there is a lot of work being done with mlx.
Re:Apple introduces M4 chip by gopher_space on Tuesday May 07, 2024 @05:14PM (#40291568)
A cloud solution I looked at a few years ago could be replicated (poorly) in your browser today. In my mind the question has become one of determining when my model is useful enough to detach from the cloud, not whether that should happen.
Re:Apple introduces M4 chip by ethbr1 on Tuesday May 07, 2024 @06:10PM (#40292138)
Power for power, any thoughts on what mobile inference looks like vs doing it in the cloud?
Re:Apple introduces M4 chip by alfalfasprout on Tuesday May 07, 2024 @08:00PM (#40292904)
Mobile can be more efficient. But you're making big tradeoffs. You are very limited in what you can actually run on-device. And ultimately you're also screwing over your user's battery life, etc.