4 ms·
The difference between an M2 air (8gb/512gb) versus an M1 pro (16gb/1tb) is much more than I expected. * M1 pro (16gb/1tb) can run the model in around 3 minu
by gzer0 4y ago
The difference between an M2 air (8gb/512gb) versus an M1 pro (16gb/1tb) is much more than I expected.
* M1 pro (16gb/1tb) can run the model in around 3 minutes.
* M2 air (8gb/512gb) takes ~60 minutes for the same model.
I knew there would be some throttling due to the m2 air's fanless model, but I had no idea it would be a 20x difference (albeit, the m1 pro does have double the RAM. I don't have any other macbooks to test this on).
- qayxc 4y agoI suspect the lack of RAM is the issue here.
- andybak 4y agoUnscientifically that puts the M1 Pro GPU at about 25% of the performance of a RTX 3080. Not too shabby... EDIT - this comment implies it's much faster: https://news.ycombinator.com/item?id=32679518 https://news.ycombinator.com/item?id=32679518 If that's correct then it's close to matching my 3080 (mobile).
- fassssst 4y agoimg2img runs in 6 seconds on my GeForce 3080 12 GB. 6+ it\s depending on how much GPU memory is available. If I have any electron apps running it slows down dramatically.
- fragmede 4y agowhat args are you passing to img2img?
- andybak 4y agoCurious about: 1. Image size 2. Steps 3. What your numbers are for text2img 4. (most importantly) are you including the 30 seconds or so it takes to load the model initially? i.e. if you were to run 10 prompts and then divide the total time by 10, what are your numbers?
- cube2222 4y agoRe 4 the lstein repo gives you an interactive repl, so you don't have to reload the model on every prompt. I also have a 3080 and as far as I remember (not at my pc right now) it was 3-10 secs for img2img 512px cfg13 50 steps batch size 1 dimm sampler.
- valley_guy_12 4y agoIt's likely that a significant fraction of the perf difference between Apple' GPUs and NVIDIA GPUs is due to NVIDIA's CUDA being high optimized, and Pytorch being tuned to work with CUDA. If Pytorch's metal support improves and Apple's Metal drivers improve (big ifs), it's likely that Apple's GPUs will perform better relatively to NVIDIA than they currently do.
- deleted 4y ago[deleted]
- valley_guy_12 4y agoThat's probably due to swapping due to the 8GB of RAM. People who have run Stable Diffusion on M2 airs with 16 GB of RAM seem to get performance that is in line with their GPU core count.
- bfirsh 4y agoCorrect. We've been seeing 8GB is super slow, >=16GB is fast. We'll add that to the prerequisites.
- JimmyAustin 4y agoI suspect that the M2 air is thrashing the disk pretty aggressively. Diffusion models rerun the same model once per step, so for a generation with 50 steps, you copy the entire model in and out of memory 50 times. That's going to kill performance.
- bm-rf 4y agojust water cool it! https://www.youtube.com/watch?v=9DyUitTVWlw https://www.youtube.com/watch?v=9DyUitTVWlw
- _ph_ 4y agoI would assume it is the memory. The test command from the discussed link runs in slightly over 2 minutes on my M2 Air (16gb). How long does it take for yours?
- Birch-san 4y agoNeither of these should take minutes. Try Heun sampler, 8 steps, Karras noise schedule. Should be possible to get good images in 11 secs (or 10 secs if you go down to 7 steps). measurements admittedly from M1 Max. https://twitter.com/Birchlabs/status/1565029734865584143?s=20&t=TnE7e1OhBG-GF1HYZ3GNrQ https://twitter.com/Birchlabs/status/1565029734865584143?s=2...