News for hackers. Stuff that matters.
Re:Tinygrad: Hacked 4090 driver to enable P2P by georgehotz on Friday April 12, 2024 @01:15PM (#40015272)
tinygrad supports uneven splits. There's no fundamental reason for 4 or 8, and work should almost fully parallelize on any number of GPUs with good software.

We chose 6 because we have 128 PCIe lanes, aka 8 16x ports. We use 1 for NVMe and 1 for networking, leaving 6 for GPUs to connect them in full fabric. If we used 4 GPUs, we'd be wasting PCIe, and if we used 8 there would be no room for external connectivity aside from a few USB3 ports.

Re:Tinygrad: Hacked 4090 driver to enable P2P by andersa on Friday April 12, 2024 @03:57PM (#40017012)
That is very interesting if tinygrad can support it! Every other library I've seen had the limitation on dividing the heads, so I'd (perhaps incorrectly) assumed that it's a general problem for inference.
Re:Tinygrad: Hacked 4090 driver to enable P2P by spmurrayzzz on Saturday April 13, 2024 @12:10PM (#40024066)
There are some interesting hacks you can do like replicating the K/V weights by some factor which allows them to be evenly divisible by whatever number of gpus you have. Obviously there is a memory cost there, but it does work.
Re:Tinygrad: Hacked 4090 driver to enable P2P by Emerson1 on Saturday April 27, 2024 @03:42AM (#40178101)
how could you go about testing this on say llama3 70b with two 4090s - vllm supports tensor parallelism, would the expectation be that inference would be faster with p2p? How would you update the nvidia driver tho? Thanks any thought appreciated
Re:Tinygrad: Hacked 4090 driver to enable P2P by davidzweig on Friday April 12, 2024 @02:06PM (#40015849)
Is it possible a similar patch would work for P2P on 3090s?

btw, I found a Gigabyte board on Taobao that is unlisted on their site: MZF2-AC0, costs $900. 2 socket Epyc and 10 PCIE slots, may be of interest. A case that should fit, with 2x 2000W Great Wall PSUs and PDU is 4050 RMB (https://www.toploong.com/en/4GPU-server-case/644.html). You still need blower GPUs.

Re:Tinygrad: Hacked 4090 driver to enable P2P by georgehotz on Friday April 12, 2024 @02:25PM (#40016085)
It should if your 3090s have Resizable BAR support in the VBIOS. AFAIK most card manufacturers released BIOS updates enabling this.

Re: 3090 NVLink, that only allows pairs of cards to be connected. PCIe allows full fabric switch of many cards.

Re:Tinygrad: Hacked 4090 driver to enable P2P by Ratiofarmings on Friday April 12, 2024 @05:15PM (#40017749)
In cases where they didn't, the techpowerup vBIOS collection solves the problem.
Re:Tinygrad: Hacked 4090 driver to enable P2P by learnedmachine on Monday April 15, 2024 @03:12PM (#40044546)
Thanks for the amazing work! I tried the driver with some 3090s (all of which show the 32G line with lspci -s 01:00.0 -v) and while torch says I have p2p access, I can't get it to work with anything as I get illegal memory access errors.
Re:Tinygrad: Hacked 4090 driver to enable P2P by cjbprime on Friday April 12, 2024 @02:23PM (#40016061)
Doesn't nvlink work natively on 3090s? I thought it was only removed (and here re-enabled) in 4090.
Re:Tinygrad: Hacked 4090 driver to enable P2P by qeternity on Friday April 12, 2024 @03:40PM (#40016847)
This not not nvlink.
Re:Tinygrad: Hacked 4090 driver to enable P2P by davidzweig on Saturday April 13, 2024 @12:16AM (#40020450)
Update, I checked with the case company, toploong, they say that board is a 5mm too big or so for the case.
Re:Tinygrad: Hacked 4090 driver to enable P2P by doctorpangloss on Friday April 12, 2024 @01:30PM (#40015426)
Have you compared 3x 3090-3090 pairs over NVLink?

IMO the most painful thing is that since these hardware configurations are esoteric, there is no software that detects them and moves things around "automatically." Regardless of what people thing device_map="auto" does, and anyway, Hugging Face's transformers/diffusers are all over the place.

Re:Tinygrad: Hacked 4090 driver to enable P2P by AnthonyMouse on Friday April 12, 2024 @05:01PM (#40017602)
Is there any reason you couldn't use 7? 8 PCIe lanes each seems more than sufficient for NVMe and networking.
Re:Tinygrad: Hacked 4090 driver to enable P2P by WanderPanda on Friday April 12, 2024 @08:17PM (#40019044)
Did you at least front run the market and stocked up of 4090ies before this release? Also gamers are probably not too happy about these developments :D
Re:Tinygrad: Hacked 4090 driver to enable P2P by tinco on Saturday April 13, 2024 @09:10AM (#40022914)
4090's have consistently been around 2000 dollars. I don't think there's many gamers who would be affected by price fluctuations of the 4090 or even the 4080.
Re:Tinygrad: Hacked 4090 driver to enable P2P by presides on Saturday April 13, 2024 @12:27PM (#40024179)
This is out of touch; they were mad before and they will be mad again. Lots of people spend a huge chunk of their modest disposable income on high end gaming gear, and the only upside of these issues for them is that eventually, YEARS down the line, capacity/supply issues MIGHT calm down in a way that yields some benefits.

They're going to realize soon enough that they've basically just been told that the extremely shitty problem they thought they'd moved beyond is back with a vengeance and the next generation of gaming cards has the potential to make the past few rounds of scalping shit-shows look tame.

Re:Tinygrad: Hacked 4090 driver to enable P2P by swalsh on Sunday April 14, 2024 @03:38PM (#40033755)
Gamers have a TON of really good really affordable options. But you kind of need 24gb min unless you're using heavy quantization. So 3090 and 4090's are what local llm people are building with (mostly 3090's as you can get then for about $700, and they're dang good)