5 ms·
Ask HN: Any way to borrow compute from Apple M1
Hi.
i have a friend who owns an m1 max. i would like to "borrow" his gpu for llama 3 or SD. is there a way for me to use his compute when idle ? i do not want to remote into his machine, an easy local api would be fine (i could tailscale/zerotier) and then get the api that way.
- neximo64 2y agoUse Ollama's api
- gostsamo 2y agoOr OpenWebUI over it if you want acceptable ui experience.
- 2Gkashmiri 2y agocool
- rcarmo 2y agoThis. Works fine. The M1 can run most small models (phi3, gemma, etc.) at usable speeds even with just 8GB of RAM.
- nsbk 2y agoThis! Tailscale plus Ollama API will definitely do the job
- deleted 2y ago[deleted]
- BossingAround 2y agoAn off-topic question, are Apple's M-series chips any good at current AI/ML work? How does it compare with dedicated GPUs?
- theodric 2y agoMid-tier gaming GPU performance, but (potentially) access to gobs of memory (if running on a host with gobs of memory) owing to the unified memory design. For certain use cases which require loading huge datasets but don't necessarily require massive compute (i.e. inference on large models) they can be cost-competitive relative to something like an H100.
- yieldcrv 2y agoIf apple offers these in a data center that’s open access it’s game over for NVDA
- Keyframe 2y agoBased on which fantasy premise?
- yieldcrv 2y agoThe premise where these are readily available for mass purchase, have a hardware and software stack that already works reliably, and have a lower energy footprint than other offerings and somewhat competitive on cost, but that wont be the main selling point, just availability
- hu3 2y agoThey aren't even on the same league, computing-wise.
- coldtea 2y agoFor the purposes we're discussing, they're nowhere near competitive with Nvidia.
- Keyframe 2y agolower energy but at least they're slow? You need to add up to the same performance level and then consider the cost and running cost. I bet it's not close on that. Availability maybe, but as you've noted - zero availability for data center environments. Those volumes would also then fall onto TSMC/Samsung/Whatever where Nvidia is stuck as well.
- lordnacho 2y ago> i do not want to remote into his machine > tailscale/zerotier Same thing isn't it? In any case it wouldn't be hard for you to just have an account on his machine, tailscale being perhaps the simplest setup. SSH in, cook his laptop at your leisure.
- ttla 2y agoWith Tailscale you could access the port serving the models API (assumedly via ollama or similar) so the friend wouldn't have to grant any access beyond that.
- loktarogar 2y agoThis was bouncing around the last few days, if you have a few devices as well as the M1 (though i'm not sure it able to work over the internet as opposed to a local network): https://github.com/exo-explore/exo https://github.com/exo-explore/exo Otherwise set up Ollama's API
- moffkalast 2y agoYou mean the llama.cpp server API right? Ollama keeps taking credit for things they put a thin wrapper around, and it's seriously annoying.
- Shadowmist 2y agoWhat’s the llama.cpp CLI equivalent of `ollama pull`?
- moffkalast 2y agowget <huggingface link>?
- loktarogar 2y agoI don't, in the same way I don't say that i'm taking an internal combustion engine bus to get somewhere - what powers the bus is not relevant to the solution
- exe34 2y agoWith "borrow" in scare quotes, do you intend for him to be aware of his generosity?
- TeMPOraL 2y agoProbably just because in the full phrasing, ``i would like to "borrow" his gpu``, omitting the scare quotes would paint the picture of their friend unplugging/unsoldering their GPU and lending it to the author.
- sillysaurusx 2y agoMy friend Kevin was once building a graphics engine, and to test it on various GPUs he’d borrow them from Best Buy and return them within the 30 day window. Since there was a restocking fee, it seemed like a non-harmful and clever way to test a bunch of configurations.
- exe34 2y agoso Kevin is why we can't have nice things....
- whywhywhywhy 2y agoM1 can’t really handle SD the inference times are closer to a minute and with SDXL you can feel the machine straining under it, battery depletes quick and the machine often completely freezes up for a second if you’re trying to do other things at the same time (M1 Max 32gb). Think you’d be way better off just paying for a service designed for this or renting a GPU from a service set up for this cost won’t be that significant.
- enoch2090 2y agoFor llama3 just ask him to install ollama and serve the model. Ollama has auto memory management and will free the model when not used, and whenever you make a call to the API (do let your friend know before you do this) ollama will reload the model back to memory again. Not sure whether there are anything similar for SD though.
- ttla 2y agoThis, plus connect via Tailscale and you can access it from anywhere (assuming you're friends laptop is online).
- nomadic-coder 2y ago[zrok](https://zrok.io/ https://zrok.io/), an alternative to ngrok does access management too. It's like tailscale but can give access to a specific service.
- condiment 2y agoI had to do this fairly recently to make krita-diffusion available for my friends and family who don't have a 3090ti laying around. Probably the simplest way would be to run a local http service on your friend's M1 that is ssh tunneled to a server that you'll access over http. On the server you'll need to reverse-proxy the tunneled port to a public address and port. You make http requests to the shared server, those get proxied via the ssh tunnel to his machine, and the client on his machine could make the determination when/whether to run the workload.
- PLG88 2y agoThere are tons of options - https://github.com/anderspitman/awesome-tunneling https://github.com/anderspitman/awesome-tunneling. I will advocate for zrok.io as I work on its parent project, OpenZiti. zrok is open source and has a free SaaS.
- neom 2y agoI feel like Ollama just came out and now y'all are doing model based laptop resource sharing. Should I take this as an indicator that embedded GenAI is moving quite quickly? (Also just wanted to say I find this thread incredibly cool generally, some very interesting stuff going on!!! :D )
- paxys 2y agoThe entire point of embedded models is that you can run them locally. If it'll anyways take an internet roundtrip then what's the point of connecting to your friend's laptop over a cloud GPU or a managed service like ChatGPT-4o?
- crtasm 2y agoPresumably a cloud GPU is not $0 ?
- drivingmenuts 2y agoIt won't cost actual money?
- thisconnect 2y agoIf you are in the same network try https://pinokio.computer https://pinokio.computer