| ▲ | Unified Memory, Explained: Why Mini PCs Can Run 70B Models a Big GPU Can't(vettedconsumer.com) |
| 40 points by ermantrout 6 hours ago | 25 comments |
| |
|
| ▲ | bdcravens 28 minutes ago | parent | next [-] |
| > Put two machines on a desk, each about $2,000. One is a tower with an NVIDIA RTX 5090: 32GB of the fastest consumer memory ever shipped, 1,792 GB/s. The other is a mini PC the size of a paperback, an AMD Ryzen AI Max+ 395 "Strix Halo" box with 128GB of soldered memory at roughly 256 GB/s. Doesn't change the conclusions of the article, but each of those machines is more like $4k+ https://www.microcenter.com/product/711961/amd-ryzen-ai-halo... |
|
| ▲ | _davide_ 37 minutes ago | parent | prev | next [-] |
| I'm writing my own inference engine for Strix Halo and the same model. I already have 30%+ performance plus a more graceful decay over long contexts; that said, their point stands: memory bandwidth is what you really want. |
|
| ▲ | Havoc 2 hours ago | parent | prev | next [-] |
| Think future generations of AMD could get quite interesting. They’re no doubt seeing people whining about mem throughput specifically |
|
| ▲ | cocodill 17 minutes ago | parent | prev | next [-] |
| For some reason, this reminds me of my last shared memory system. It was an Athlon XP 1800+ with VIA ProSavage back around 2002. It was just barely able to run CS 1.6. |
|
| ▲ | _davide_ 32 minutes ago | parent | prev | next [-] |
| If compute is not the bottleneck, memory is easy-ish to produce (the hard part is mostly on the fab side); what stops a Chinese NVIDIA (huawei) from being 10x cheaper? |
| |
| ▲ | WhyNotHugo 19 minutes ago | parent [-] | | I think it's mostly the ramp-up time, but ChangXin Memory Technologies (CXMT) is basically aspiring to do just this. |
|
|
| ▲ | amelius 37 minutes ago | parent | prev | next [-] |
| Do unified memory CPUs suffer from the same memory shortages as normal memory? I guess they're just welding the memory to the CPU chip, but still curious. |
| |
| ▲ | wtallis 31 minutes ago | parent | next [-] | | > I guess they're just welding the memory to the CPU chip, but still curious. Unified memory is more of an architectural and performance characteristic, and does not imply much about the physical layout of the machine. Most unified memory PCs not from Apple don't have the memory on the same package as the SoC. For stuff like AMD Strix Halo and NVIDIA DGX Spark, it's just standard LPDDR packages soldered on the motherboard in the general vicinity of the SoC, and the only difference from mainstream laptops for the past decade+ is that the memory bus is twice as wide. | |
| ▲ | bahmboo 33 minutes ago | parent | prev | next [-] | | Yes. The memory is just located very close to the cpu with wires "welded" directly to it. This allows the memory to be run as fast as possible but it's still a RAM component. The cache parts of memory are on the CPU itself but they are on the order of MB not GB. | |
| ▲ | _davide_ 35 minutes ago | parent | prev [-] | | They are usually the same family, LPDDR is used for amd and macs, but the fabs are the same as the most expesive HBM memory, if they have a choice they are going to produce the ones that they can sell for more $$. |
|
|
| ▲ | throwa356262 an hour ago | parent | prev | next [-] |
| "Can't" is not really correct. Nowadays, specially with MoE models you can run parts of the model on GPU and still get some speed up. |
|
| ▲ | erkt 12 minutes ago | parent | prev | next [-] |
| Uhh the 5090 alone is double the cost of their quoted PC prices. |
|
| ▲ | lowbloodsugar an hour ago | parent | prev | next [-] |
| The current “big GPU” has 96gb of memory, but that’s not a “consumer GPU” apparently, while a $5000 Spark is a “consumer PC” I guess. In any case you’re probably better off running a large open weights model on the cloud. |
|
| ▲ | LoganDark 2 hours ago | parent | prev | next [-] |
| Can't really run it as well, though. My "mini PC" is an M4 Max with 128GB of unified memory and the memory bandwidth is still sorely lacking for inference (although it's far better than any non-unified consumer architecture!). |
| |
| ▲ | mountainriver 2 hours ago | parent | next [-] | | Yeah this is such a funny thing going around. Try to run or train a small/medium sized model on a MacBook. It doesn’t go very good compared to a dedicated gpu This is likely the right path in the future but it isn’t there yet today | |
| ▲ | bahmboo 2 hours ago | parent | prev [-] | | To be fair it's "only" half the throughput of a 4090 and a third of an RTX 6000. Significant but not an order of magnitude. | | |
| ▲ | entrope an hour ago | parent | next [-] | | Those are the ratios for memory bandwidth, but the GPUs have a much higher ratio for compute, and that affects prefill rate / TTFT, right? | |
| ▲ | lowbloodsugar an hour ago | parent | prev [-] | | An old ada Rtx 6000 maybe. A Blackwell RTX Pro 6000 is an order of magnitude faster and has 96gb. | | |
| ▲ | bahmboo 30 minutes ago | parent [-] | | That's not what I'm seeing. It is much faster but not an order of magnitude. Not trying to be pedantic, only setting expectations. "The Blackwell RTX PRO 6000 provides up to 1,792 GB/s of memory bandwidth, while the 40-core Apple M5 Max tops out at 614 GB/s" | | |
| ▲ | lowbloodsugar 22 minutes ago | parent [-] | | Sorry, thought we were talking about tokens. M5 Max is great for bandwidth and I’m looking forward to seeing what Apple does for AI inference in the M7. The 6000 kills everything else when it comes to TTFT and tokens/s. |
|
|
|
|
|
| ▲ | OutOfHere 2 hours ago | parent | prev [-] |
| Let's also ensure the SSD doesn't age prematurely. |
| |
| ▲ | craftkiller 2 hours ago | parent [-] | | I was under the impression that when you're streaming the weights from disk because the full model won't fit in memory, that it is solely reading from the SSD, not writing, so it wouldn't be causing wear on your SSD. | | |
| ▲ | kmeisthax 38 minutes ago | parent | next [-] | | NAND[0] has a fun thing called "read disturbance" where repeated reads from disk will eventually flip 0s to 1s. You have to erase and rewrite the block before the bits flip[1], or you lose the data, but doing so is the same amount of wear as a write. [0] I heard this being an issue with TLC, I don't know if it also applied to MLC or SLC. [1] I suspect in practice they use an error correction code and rewrite blocks that read with corrected errors. | | |
| ▲ | wtallis 26 minutes ago | parent [-] | | It's kinda irresponsible to talk about read disturbance without clarifying that it takes an extremely large number of reads to cause a read disturb error, and it can be corrected by a single rewrite of the data. Read disturb errors are something SSD engineers need to account for, but from an end user perspective it's a smaller problem by multiple orders of magnitude than write endurance, which is already rarely a real problem in practice. |
| |
| ▲ | giantrobot an hour ago | parent | prev [-] | | It is and it doesn't. You only get into disk writes if the system starts paging out to disk. |
|
|