this post was submitted on 06 Nov 2023
57 points (100.0% liked)

Technology

37717 readers
460 users here now

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 12 points 1 year ago* (last edited 1 year ago) (3 children)

ChatGPT 4 is estimated to use 700GB of “High Bandwidth Memory”.

… which will set you back about half a million dollars at current prices (which are high, because the manufacturers can’t keep up with demand). Or, you could just pay 20 bucks a month.

[–] [email protected] 3 points 1 year ago (1 children)

I highly doubt that, there are comparable models that are way smaller than that. No way they would waste that much money.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

There are comparable models to GPT 3.5 "Turbo", which is faster and 30x cheaper than GPT 4 (if you pay OpenAI's regular API prices).

I suspect that's because GPT-4 needs 30x more memory than 3.5.

I'm not aware of any other model that performs as well as GPT-4. In fact I suspect even 3.5 Turbo is the second best model.

[–] [email protected] 3 points 1 year ago (2 children)
[–] [email protected] 9 points 1 year ago (2 children)

If it's actually High Bandwidth Memory, it's the VRAM they use for some video cards/SoCs.

It might be mostly the same components, but the high bandwidth part is important and harder to do. They get the much higher throughput by physically stacking the chips on top of each other directly on the chip. The much lower distance signals have to travel (combined with a lot of pins to send signal through) do more than you can do with traditional RAM.

[–] [email protected] 3 points 1 year ago (1 children)

There's a company making analog chips that do the matrix calculations at a (15 or) 60x (I forget which) more efficient rate than moden chips (by multiplying voltages I believe). Even though one is only about 1/3 the processing power of a modern gpu, stack enough together and you're cooking. The matrix multiplication aspect is what we're using the VRAM for right?

[–] [email protected] 3 points 1 year ago (1 children)

The actual models telling them what to multiply are, to my knowledge.

VRAM isn't the low level "working" memory. You still have to pull structures from memory and into actual use. If you're working on pen and paper, a bookshelf might be system storage and your desk might be RAM/VRAM, but you still need to copy the numbers from your desk onto the piece of paper you're working on. That's lower level cache, registers, the tensor cores, etc.

If the chip you're discussing is a better calculator, that's useful, but you still need the big desk to hold the huge amount of information you need to reference at any given time.

My brain is mush for some reason today, so that might not make sense, but better matrix operations shouldn't remove the need to have access to a huge model.

[–] [email protected] 1 points 1 year ago

Thanks for the informative reply! Looks like I need to brush up on my hardware knowledge lol

[–] [email protected] 1 points 1 year ago (2 children)

I get that this is expensive. However, it should also work with RAM if you accept slower speeds I guess. The question is of course if it’s still usable then.

[–] [email protected] 4 points 1 year ago

Most current locally hosted software has some option to offload to RAM, CPU, and disk. VRAM is fastest, but RAM and CPU offloading lets you cut down to less than 4GB VRAM for certain applications, at plenty reasonable speed.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

GPT-4 is already kinda slow - it works best as a "conversational" tool where you ask follow up questions and clarify things that have already been said. That's painful when you have to wait 10 seconds for a response. I couldn't imagine it being useful if it was minutes.

[–] [email protected] 1 points 1 year ago

Having to wait 10 seconds for a response is "painful"?

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

To put some numbers on it - RAM runs at tens of gigabytes per second (bytes, not bits). High Bandwidth Memory runs at several hundred or sometimes terabytes per second (OpenAI is likely using the latter, and that memory isn't just expensive it's also supply constrained, so the prices are astronomically high right now).

You can buy HBM, and you can use it as your main system RAM, but it's painfully expensive. The actual amount of bandwidth also scales linearly with with the amount of memory you buy as well. So a 500GB is 10x faster than 50GB - because it write to all of the chips simultaneously (and then read from all of them when you access the data back).

It's pretty standard on high end GPUs these days. Apple also uses it on all their computers (if you buy a Mac with 64GB of RAM, it'll run at 800MB/s - which isn't quite as fast as a high end GPU but it's close and it is HBM). It's part of why Macs are so expensive (and also why the cheaper ones have very little RAM).

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 3 points 1 year ago (1 children)

It could work, but do you want to way 15 minutes for an answer?

[–] [email protected] 2 points 1 year ago

Depends what you're using it for