News for hackers. Stuff that matters.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by bayindirh on Tuesday December 03, 2024 @03:59PM (#42311342)
Disclosure: HPC admin who works with NIVIDA cards here.

Because, no. It's not as simple as that.

NVIDIA has a complete ecosystem now. They have cards. They have cards of cards (platforms), which they produce, validate and sell. They have NVLink crossbars and switches which connects these cards on their card of cards with very high speeds and low latency.

For inter-server communication they have libraries which coordinate cards, workloads and computations.

They bought Mellanox, but that can be used by anyone, so there's no lock-in for now.

As a tangent, NVIDIA has a whole set of standards for pumping tremendous amount of data in and out of these mesh of cards. Let it be GPU-Direct storage or specialized daemons which handle data transfers on and off cards.

If you think that you can connect n cards on PCIe bus and just send workloads to them and solve problems magically, you'll hurt yourself a lot, both performance and psychology wise.

You have to build a stack which can perform these things with maximum possible performance to be able to compute with NVIDIA. It's not just emulating CUDA, now. Esp., on the high end of the AI spectrum (GenAI, MultiCard, MultiSystem, etc.).

For other lower end, multi-tenant scenarios, they have card virtualization, MIG, etc. for card sharing. You have to complete on that, too, for cloud and smaller applications.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by throwaway48476 on Tuesday December 03, 2024 @04:14PM (#42311523)
All of that is highly relevant for training but what the poster was asking for is a desktop inference card.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by bayindirh on Tuesday December 03, 2024 @04:20PM (#42311610)
You use at least half of this stack for desktop setups. You need copying daemons, the ecosystem support (docker-nvidia, etc.), some of the libraries, etc. even when you're on a single system.

If you're doing inference on a server; MIG comes into play. If you're doing inference on a larger cloud, GPU-direct storage comes into play.

It's all modular.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by landryraccoon on Tuesday December 03, 2024 @04:45PM (#42311902)
It's possible you're underestimating the open source community.

If there's a competing platform that hobbyists can tinker with, the ecosystem can improve quite rapidly, especially when the competing platform is completely closed and hobbyists basically are locked out and have no alternative.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by bayindirh on Tuesday December 03, 2024 @04:59PM (#42312026)
> It's possible you're underestimating the open source community.

On the contrary. You really don't know how I love and prefer open source and love a more leveling playing field.

> If there's a competing platform that hobbyists can tinker with...

AMD's cards are better from hardware and software architecture standpoint, but the performance is not there yet. Plus, ROCm libraries are not that mature, but they're getting there. Developing high performance, high quality code is deceivingly expensive, because it's very heavy in theory, and you fly very close to the metal. I did that in my Ph.D., so I know what it entails. So it requires more than a couple (hundred) hobbyists to pull off (see the development of Eigen linear algebra library, or any high end math library).

Some big guns are pouring money into AMD to implement good ROCm libraries, and it started paying off (Debian has a ton of ROCm packages now, too). However, you need to be able to pull it off in the datacenter to be able to pull it off on the desktop.

AMD also needs to be able to enable ROCm on desktop properly, so people can start hacking it at home.

> especially when the competing platform is completely closed...

NVIDIA gives a lot of support to universities, researchers and institutions who play with their cards. Big cards may not be free, but know-how, support and first steps are always within reach. Plus, their researchers dogfood their own cards, and write papers with them.

So, as long as papers got published, researchers do their research, and something got invented, many people don't care about how open source the ecosystem is. This upsets me a ton, but when closed source AI companies and researchers who forget to add crucial details to their papers so what they did can't be reproduced don't care about open source, because they think like NVIDIA. "My research, my secrets, my fame, my money".

It's not about sharing. It's about winning, and it's ugly in some aspects.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by btown on Tuesday December 03, 2024 @06:44PM (#42312978)
Yep, this thread has a good compilation of ROCm woes: https://news.ycombinator.com/item?id=34832660

That said, for hobbyist inference on large pretrained models, I think there is an interesting set of possibilities here: maybe a number of operations aren't optimized, and it takes 10x as long to load the model into memory... but all that might not matter if AMD were to be the first to market for 128GB+ VRAM cards that are the only things that can run next-generation open-weight models in a desktop environment, particularly those generating video and images. The hobbyists don't need to optimize all the linear algebra operations that researchers need to be able to experiment with when training; they just need to implement the ones used by the open-weight models.

But of course this is all just wishful thinking, because as others have pointed out, any developments in this direction would require a level of foresight that AMD simply hasn't historically shown.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by light_hue_1 on Tuesday December 03, 2024 @06:37PM (#42312932)
You're writing as if AMD cares about open source. If they would only actually open source their driver the community would have made their cards better than nvidia ones long ago.

I'm one of those academics. You've got it all wrong. So many people care about open source. So many people carefully release their code and make everything reproducible.

We desperately just want AMD to open up. They just refuse. There's nothing secret going on and there's no conspiracy. There's just a company that for some inexplicable reason doesn't want to make boatloads of money for free.

AMD is the worst possible situation. They're hostile to us and they refuse to invest to make their stuff work.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by talldayo on Tuesday December 03, 2024 @08:31PM (#42313651)
> If they would only actually open source their driver the community would have made their cards better than nvidia ones long ago.

Software wise, maybe. But you can't change AMD's hardware with a magic wand, and that's where a lot of CUDA's optimizations come from. AMD's GPU architecture is optimized for raster compute, and it's been that way for decades.

I can assure you that AMD does not have a magic button to press that would make their systems competitive for AI. If that was possible it would have been done years ago, with or without their consent. The problem is deeper and extends to design decisions and disagreement over the complexity of GPU designs. If you compare AMD's cards to Nvidia on "fair ground" (eg. no CUDA, only OpenCL) the GPGPU performance still leans in Nvidia's favor.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by anticensor on Saturday December 14, 2024 @02:30PM (#42418929)
RDNA and UDNA have progressed more towards compute-unified architecture than Vega&CDNA's raster-first architecture.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by to11mtm on Tuesday December 03, 2024 @09:39PM (#42314011)
IDK, I found a post that's 2 years old that has links to doing llama and SD on an Arc [0] (although might be linux only), I feel like a cheap huge ram card would create a 'critical mass' as far as being able to start optimizing, and then from a longer term Intel could promise and deliver on 'scale up' improvements.

It would be a huge shift for them. To go from preferring some (sometimes not quite reached) metric, to, perhaps rightly play the 'reformed underdog'. Commoditize Big-Memory ML Capable GPUs, even if they aren't quite as competitive as the top players at first.

Will the other players respond? Yes. But ruin their margin. I know that sounds cutthroat[1] but hey I'm trying to hypothetically sell this to whomever is taking the reigns after Pat G.

> NVIDIA gives a lot of support to universities, researchers and institutions who play with their cards. Big cards may not be free, but know-how, support and first steps are always within reach. Plus, their researchers dogfood their own cards, and write papers with them.

Ideally they need to do that too. Ideally they have some 'high powered' prototypes (e.x. lets say they decide a 2-gpu per card design with an interlink is feasible for some reason) to share as well. This may not be be entirely ethical[1] in this example of how a corp could play it out, again it's a thought experiment since intel has NOT announced or hinted at a larger memory card anyway.

> AMD also needs to be able to enable ROCm on desktop properly, so people can start hacking it at home

AMD's driver story has always been a hot mess, My desktop won't behave with both my onboard video and 4060 enabled, every AMD card I've had winds up with some weird firmware quirk one way or another... I guess I'm saying their general level of driver quality doesn't lend to hope they'll fix dev tools that soon...

[0] - https://old.reddit.com/r/LocalLLaMA/comments/12khkka/running...

[1] - As you said, it's about winning and it can get ugly.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by mahkeiro on Wednesday December 04, 2024 @01:37AM (#42314944)
ROCm doesn't really matter when the hardware is almost the same as Nvidia cards. AMD is not selling "cheaper" card with a lot of RAM, what the original poster was asking. (and a reason why people who like to tinker with large model are using Macs).
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by kevin_thibedeau on Tuesday December 03, 2024 @07:51PM (#42313433)
That would require competently produced documentation. Intel can't do that for any of their side projects because of their MBAs don't get a bonus if the tech writers are treated as a valuable asset.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by throwaway48476 on Tuesday December 03, 2024 @04:47PM (#42311913)
Innovation is a bottom up process. If they sell the hardware the community will spring up to take advantage.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by phkahler on Tuesday December 03, 2024 @04:56PM (#42311997)
No. I've been reading up. I'm planning to run Flux 12b on my AMD 5700G with 64GB RAM. CPU will take 5-10minutes per image which will be fine for me tinkering while writing code. Maybe I'll be able to get the GPU going on it too.

Point of the OP is this is entirely possible with even an iGPU if only we have the RAM. nVidia should be irrelevant for local inference.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by slavik81 on Wednesday December 04, 2024 @01:21AM (#42314898)
The Ryzen 5700G is one of the APUs tested on the Debian ROCm CI [1]. It works quite well with the Debian / Ubuntu system packages.

[1]: http://ci.rocm.debian.net/

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by WanderPanda on Tuesday December 03, 2024 @04:27PM (#42311699)
No you don‘t need much bandwidth between cards for inference
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by bayindirh on Tuesday December 03, 2024 @04:31PM (#42311751)
Copying daemons (gdrcopy) is about pumping data in and out of a single card. docker-nvidia and rest of the stack is enablement for using cards.

GPU-Direct is about pumping data from storage devices to cards, esp. from high speed storage systems across networks.

MIG actually shares a single card to multiple instances, so many processes or VMs can use a single card for smaller tasks.

Nothing I have written in my previous comment is related to inter-card, inter-server communication, but all are related to disk-GPU, CPU-GPU or RAM-CPU communication.

Edit: I mean, it's not OK to talk about downvoting, and downvote as you like but, I install and enable these cards for researchers. I know what I'm installing and what it does. C'mon now. :D

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by genewitch on Tuesday December 03, 2024 @07:11PM (#42313189)
i've run inference on Intel Arc and it works just fine so i am not sure what you're talking about. I certainly didn't need docker! I've never tried to do anything on AMD yet.

I had the 16GB arc, and it was able to run inference at the speed i expected, but twice as many per batch as my 8GB card, which i think is about what you'd expect.

once the model is on the card, there's no "disk" anymore, so having more vram to load the model and the tokenizer and whatever else on means there's no disk, and realistically when i am running loads on my 24GB 3090 the CPU is maybe 4% over idle usage. My bottleneck, as it stands, to running large models is vram, not anything else.

If i needed to train (from scratch or whatever) i'd just rent time somewhere, even with a 128GB card locally, because obviously more tensors is better.

and you're getting downvoted because there's literally lm studio and llama.cpp and sd-webui that run just fine for inference on our non-dc, non-nvlink, 1/15th the cost GPUs.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by mikhael on Tuesday December 03, 2024 @05:31PM (#42312329)
Mostly, I think, we don’t really understand your argument that Intel couldn’t easily replicate the parts needed only for inference.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by ac29 on Tuesday December 03, 2024 @07:02PM (#42313104)
Yeah, for example llama.cpp runs on Intel GPUs via Vulkan or SYCL. The latter is actively being maintained by Intel developers.

Obviously that is only one piece of software, but its a certainly a useful one if you are using one of the many LLMs it supports.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by ryao on Tuesday December 03, 2024 @08:48PM (#42313753)
Inferencing is much more simple than you think:

See the precompute_input_logits() and forward() functions here:

https://github.com/ryao/llama3.c/blob/master/run.c#L520

As a preface, precompute_input_logits() is really just a generalized version of the forward() function that can operate on multiple input tokens at a time to do faster input processing, although it can be used in place of the forward() function for output generation just by passing only a single token at a time.

Also, my apologies for the code being a bit messy. matrix_multiply() and batched_matrix_multiply() are wrappers for GEMM, which I ended up having to use directly anyway when I needed to do strided access. Then matmul() is a wrapper for GEMV, which is really just a special case of GEMM. This is a work in progress personal R&D project that is based on prior work others did (as it spared me from having to do the legwork to implement the less interesting parts of inferencing), so it is not meant to be pretty.

Anyway, my purpose in providing that link is to show what is needed to do inferencing (on llama 3). You have a bunch of matrix weights, plus a lookup table for vectors that represent tokens, in memory. Then your operations are:

  * memcpy()
  * memset()
  * GEMM (GEMV is a special case of GEMM)
  * sinf()
  * cosf()
  * expf()
  * sqrtf()
  * rmsnorm (see the C function for the definition)
  * softmax (see the C function for the definition)
  * Addition, subtraction, multiplication and division.
I specify rmsnorm and softmax for completeness, but they can be implemented in terms of the other operations.

If you can do those, you can do inferencing. You don’t really need very specialized things. Over 95% of time will be spent in GEMM too.

My next steps likely will be to figure out how to implement fast GEMM kernels on my CPU. While my own SGEMV code outperforms the Intel MKL SGEMV code on my CPU (Ryzen 7 5800X where 1 core can use all memory bandwidth), my initial attempts at implementing SGEMM have not fared quite so well, but I will likely figure it out eventually. After I do, I can try adapting this to FP16 and then memory usage will finally be low enough that I can port it to a GPU with 24GB of VRAM. That would enable me to do what I say is possible rather than just saying it as I do here.

By the way, the llama.cpp project has already figured all of this out and has things running on both GPUs and CPUs using just about every major quantization. I am rolling my own to teach myself how things work. By happy coincidence, I am somehow outperforming llama.cpp in prompt processing on my CPU but sadly, the secrets of how I am doing it are in Intel’s proprietary cblas_sgemm_batch() function. However, since I know it is possible for the hardware to perform like that, I can keep trying ideas for my own implementation until I get something that performs at the same level or better.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by SoothingSorbet on Tuesday December 03, 2024 @11:17PM (#42314459)
> but sadly, the secrets of how I am doing it are in Intel’s proprietary cblas_sgemm_batch() function.

Perhaps you can reverse engineer it?

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by ryao on Tuesday December 03, 2024 @11:50PM (#42314570)
My plan is to make more attempts at rolling my own. Reverse engineering things is not something that I do, since that would prevent me from publishing the result as OSS.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by dogcomplex on Tuesday December 03, 2024 @09:24PM (#42313944)
I am favoriting this comment for reference later when I start poking around in the base level stuff. I find it pretty funny how simple this stuff can get. Have you messed with ternary computing inference yet? I imagine that shrinks the list even further - or at least reduces the compute requirements in favor of brute force addition. https://arxiv.org/html/2410.00907
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by ryao on Tuesday December 03, 2024 @11:14PM (#42314443)
No. I still have a long list of things to try doing with llama 3 (and possibly later llama 3.1) on more normal formats like fp32 and in the future, fp16. When I get things running on a GPU, I plan to try using bf16 and maybe fp8 if I get hardware that supports it. Low bit quantizations hurt model quality, so I am not very interested in them. Maybe that will change if good quality models trained to use them become available.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by dgfitz on Tuesday December 03, 2024 @04:11PM (#42311497)
How does any of this make money?
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by bayindirh on Tuesday December 03, 2024 @04:17PM (#42311560)
When this walled garden is the only way to use GPUs with high efficiency and everybody is using this stack, and NVIDIA controlling the supply of these "platform boards" to OEMs, they don't make money, but they literally print it.

However, AMD is coming for them because a couple of high profile supercomputer centers (LUMI, Livermore, etc.) are using Instinct cards and pouring money to AMD to improve their cards and stack.

I have not used their (Instinct) cards, yet, but their Linux driver architecture is way better than NVIDIA.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by ryao on Wednesday December 04, 2024 @04:40AM (#42315936)
I think he was asking how HPC makes money. The answer as far as I know is that it often does not for anyone other than the vendors.

I wonder where you got your information on AMD’s “Linux driver architecture”. It is reportedly a mess:

https://news.ycombinator.com/item?id=34832660

So far, I have been very happy with Nvidia’s Linux drivers.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by arcticbull on Tuesday December 03, 2024 @04:15PM (#42311539)
Having the complete ecosystem affords them significant margins.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by dgfitz on Tuesday December 03, 2024 @04:16PM (#42311552)
Against what?
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by arcticbull on Tuesday December 03, 2024 @05:00PM (#42312033)
As of today they have SaaS company margins as a hardware company which is practically unheard of.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by dgfitz on Tuesday December 03, 2024 @08:13PM (#42313566)
I mean, do they?
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by lyime on Tuesday December 03, 2024 @04:16PM (#42311555)
What?

It's like the most profitable set of products in tech. You have companies like Meta, MSFT, Amazon, Google etc spending $5B every few years buying this hardware.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by dgfitz on Tuesday December 03, 2024 @04:24PM (#42311652)
Stale money is moving around. Nothing changed .
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by HeatrayEnjoyer on Tuesday December 03, 2024 @04:26PM (#42311686)
What is stale money?
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by dgfitz on Tuesday December 03, 2024 @04:40PM (#42311838)
Hmm. There is a lot of money that exists, doing nothing. I consider that stale money.

Edit: I can’t sort this out. Where did all the money go?

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by RGamma on Tuesday December 03, 2024 @06:19PM (#42312797)
Have you looked under your sofa?
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by dgfitz on Tuesday December 03, 2024 @08:14PM (#42313571)
Sadly it’s just stale goldfish and magnetites.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by ryao on Wednesday December 04, 2024 @04:32AM (#42315888)
HPC is used in research, which is often not expected to make money. The hope is that the research will result in something that makes money. One example would be drug discovery. Another would be weather prediction, which is not so much a way to make money, but to minimize losses.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by postalrat on Tuesday December 03, 2024 @04:44PM (#42311893)
Lets see how quickly that changes if intel releases cards with massive amounts of ram for a fraction of the cost.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by jmward01 on Tuesday December 03, 2024 @04:48PM (#42311923)
Most of the above infra is predicated on limiting RAM so that you need so much communication between cards. Bump the RAM up and you could do single card inference and all those connections become overhead that could have gone to more ram. For training there is an argument still, but even there the more RAM you have the less all that connectivity gains you. RAM has been used to sell cards and servers for a long time now, it is time to open the floodgates.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by foobiekr on Tuesday December 03, 2024 @05:01PM (#42312042)
Correct for inference - the main use of the interconnect is RDMA requests between GPUs to fit models that wouldn't otherwise fit.

Not really correct for training - training has a lot of all-to-all problems, so hierarchical reduction is useful but doesn't really solve the incast problem - Nvlink _bandwidth_ is less of an issue than perhaps the SHARP functions in the NVLink switch ASICs.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by epistasis on Tuesday December 03, 2024 @05:07PM (#42312108)
Rather than tackling the entire market at once, they could start with one section and build from there. NVIDIA didn't get to where it was in a year, it took many strategic acquisitions. (All the networking and other HPC-specialized stuff I was buying a decade ago has seemingly been bought by NVIDIA).

Start by being a "second vendor" for huge customers of NVIDIA that want to foster competition, as well as a few others willing to take risks, and build from there.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by tw04 on Tuesday December 03, 2024 @07:59PM (#42313478)
Intel has already bought and killed everything they need to compete here. They seem incapable of sticking to any market that isn’t x86. Likely because when they were making those acquisitions they were drunk on margin and didn’t want to focus anywhere else.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by ryao on Wednesday December 04, 2024 @12:48AM (#42314782)
Killing QLogic’s infiniband business after buying it was a major loss for the industry.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by RobotToaster on Wednesday December 04, 2024 @03:39AM (#42315614)
> They seem incapable of sticking to any market that isn’t x86

Even within that they seem to have difficulty expanding to new areas, remember edison?

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by teekert on Tuesday December 03, 2024 @05:29PM (#42312310)
I have a question for you, since I’m somewhat entering the HPC world. In the EU the EuroHPC-JU is building what they call AI factories, afaict these are just batch processing (Slurm I think) clusters with GPUs in the nodes. So I wonder where you’d place those cards of cards. Are you saying there is another, perhaps better ways to use massive amounts of these cards? Or is that still in the “super powerful workstation” domain? Thanx in advance.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by treprinum on Tuesday December 03, 2024 @05:36PM (#42312378)
View it as Raspberry Pi for AI workloads. Initial stage is for enthusiasts that would develop the infra, figure out what is possible and spread the word. Then the next phase will be SME industry adoption, making it commercially interesting, while bypassing Nvidia completely. At some point it would live its own life and big players jump in. Classical disrupt strategy via low cost unique offerings.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by renecito on Tuesday December 03, 2024 @06:05PM (#42312671)
> ... local generative AI lunch

I agree, just for my PC, something that'd enable small devs to create interesting foundation model apps that'd deploy to users using this local AI cards to run these new Apps.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by davrosthedalek on Tuesday December 03, 2024 @06:49PM (#42313014)
There might be an hen-egg problem if the apps end up requiring a 128Gb AI accelerator card. You only get the card if there are apps to run, and you only develop the apps if the cards are wide-spread. With so much RAM, the cards will not be let's-through-them-into-a-cheap-build cheap.

I think there have to be a couple of killer apps that run "OK" with CPU or GPU, but would run tremendously better with such a card.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by tgtweak on Tuesday December 03, 2024 @06:17PM (#42312776)
I think he's mostly referring to inference and not training, which I entirely agree with - a 4x version of this card for workstations would do really well - even some basic interconnect between the cards a la nvlink would really drive this home.

The training can come after, with some inference and runtime optimizations on the software stack.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by thelastparadise on Tuesday December 03, 2024 @06:36PM (#42312930)
So what you're saying is Intel, or any other would-be NVIDIA competitor, needs to put out fast interconnects, not just compute cards. This is true.

I'm not sure your argument stands when it comes to OP's idea of a single card with 128GB VRAM. This would be enough to run ~180B models with reasonable quantization --we're not near maxing out the capability of 180B yet (see the latest 32B models performing near public SOTA).

This indeed would push rapid and wide adoption and be quite disruptive. But sure, it wouldn't instantly enable competitive training of 405B models.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by knowitnone on Tuesday December 03, 2024 @07:15PM (#42313210)
yes but if Intel provided the base, people will flock to it build software for it. Intel doesn't even need be involved but they should.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by 3abiton on Tuesday December 03, 2024 @08:17PM (#42313589)
But all the tricks of developing a solid software stack to support the HW are already out no? The basic principles are there, to my understanding the main challenge is not doing this development in tandem with the HW people and the requirments to support older legacy device which makes it harder for example for Amd to compete. The only challenges,which intel are prepped to face is logistics and fabs. On a separate note, project like JAX are aiming to circumvent that abstraction layer cuda adds to nvidia, so having decent hardware competition is definitely an option. Just some time ago, vllm fully supported amd gpus! We need more competition.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by wordofx on Tuesday December 03, 2024 @08:18PM (#42313590)
> Disclosure: HPC admin who works with NIVIDA cards here. > Because, no. It's not as simple as that.

Wow what he said is way above your head! Please reread what he wrote.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by ryao on Tuesday December 03, 2024 @08:23PM (#42313615)
I have been hacking on local llama 3 inference software (for the CPU, but I have been thinking about how I would port it to a GPU) and would like to do a rebuttal:

https://github.com/ryao/llama3.c

Inference workloads are easy to parallelize to N cards with minimal connectivity between them. The Nvlink crossbars and switches just are not needed.

In particular, inference can be divided into two distinct phases, which are input processing (prompt processing) and output generation (token generation). They are remarkably different in their requirements. Input processing is compute bound via GEMM operations while output generation is memory bandwidth bound via GEMV operations. Technically, you can do the input processing via GEMV too by processing 1 token at a time, but that is slow, so you do not want to do that. Anyway, these phases can be further subdivided into the model’s layers. You can have 1 GPU per layer with the logits passing from GPU to GPU in a pipeline. The GPUs just need the layer’s weights and the key-value cache for all of the tokens in that layer in memory to be able to work effectively. For llama 3.1 405B, there are 126 layers, so that is up to 126 GPUs.

That is of course slightly slower than if you just had 1 GPU with an incredible amount of VRAM, but you can always have more than one query in flight to get better than 1 GPU’s worth of performance from this pipeline approach. There are other ways of doing parallelization too, such as having output processing use GEMM to do multiple queries in parallel. This would be what others call batching, although I am only interested in doing 1 query at a time right now, so I have not touched it.

In essence, you can connect n cards on PCIe and have them solve inferencing problems magically, with the right software. Training is a different matter and I cannot comment on it as I have not studied it yet.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by derefr on Tuesday December 03, 2024 @11:11PM (#42314425)
I presume the counterargument is that inference hosting is commoditized (sort of like how stateless CPU-based containerized workload hosts are commoditized); there’s no margin in that business, because it is parallelizable, and arbitrarily schedulable, and able to be spread across heterogenous hardware pretty easily (just route individual requests to sub-cluster A or B), preventing any kind of lock-in and thus any kind of rent-extraction by the vendor.

Which therefore means that cards that can only do inference, are fungible. You don’t want to spend CapEx on getting into a new LOB just to sell something fungible.

All the gigantic GPU clusters that you can sell a million at a time to a bigcorp under a high-margin service contract, meanwhile, are training clusters. Nvidia’s market cap right now is fundamentally built on the model-training “space race” going on between the world’s ~15 big AI companies. That’s the non-fungible market.

For Intel to see any benefit (in stock price terms) from an ML-accelerator-card LOB, it’d have to be a card that competes in that space. And that’s a much taller order.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by ryao on Tuesday December 03, 2024 @11:40PM (#42314532)
Intel does make cards aimed at this space too:

https://www.intel.com/content/www/us/en/products/details/pro...

Coincidentally, it has 128GB of RAM. However, it is not a GPU, is designed to do training too and uses expensive HBM.

Modern GPUs can do more than inference/training and the original poster asked about a GPU with 128GB of RAM, not a card that can only do inferencing as you described. Interestingly, Qualcomm made its own card targeted at only inferencing with 128GB of RAM without using HBM:

https://www.qualcomm.com/news/onq/2023/11/introducing-qualco...

They do not sell it through PC parts channels so I do not know the price, but it is exactly what you described and it has been built. Presumably, a GPU with the same memory configuration would be of interest to the original poster.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by gardnr on Wednesday December 04, 2024 @02:46AM (#42315326)
Back in January, someone on Reddit claimed the list price was $16k.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by reissbaker on Wednesday December 04, 2024 @07:28AM (#42316776)
It's competing against Nvidia H100s, which cost $25k. It's cheap, at least by the norms of the space.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by pclmulqdq on Tuesday December 03, 2024 @11:04PM (#42314401)
You are both correct. AI inference is a comparatively easy problem from the perspective of parallelization when compared to most HPC problems.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by ryao on Tuesday December 03, 2024 @11:07PM (#42314412)
Facebook did a technical paper where they described their training cluster and the sheer amount of complexity is staggering. That said, the original poster was interested in inferencing, not training.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by pclmulqdq on Wednesday December 04, 2024 @01:13AM (#42314874)
Training is close to traditional HPC in many ways. Inference is far simpler since it's a simple forward-going pipeline of a relatively small working set.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by dogcomplex on Tuesday December 03, 2024 @09:12PM (#42313885)
what kind of bandwidth/latency between GPUs would one need in that setup to not be bottlenecking? What you're describing sounds quite forgiving. Is it forgiving enough that we could potentially connect those GPUs over a LAN, or even a remote decentralized cloud of host computers?

From my understanding that's certainly possible to do without the latency hurting much with large batching between inference layers

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by ryao on Tuesday December 03, 2024 @11:04PM (#42314398)
This depends on:

  * the model dimension
  * how many bits per variable are used by your quantization
  * how many tokens are being processed per step (input processing can do all N input tokens simultaneously and output processing can only do 1 at a time when doing a single query)
  * how many times you split the model layers across multiple GPUs
The model dimensions are:

  * 4096 for llama 3/3.1 8B.
  * 8192 for llama 3/3.1 70B.
  * 16384 for llama 3.1 405B.
The model layers are:

  * 32 for llama 3/3.1 8B
  * 80 for llama 3/3.1 70B
  * 126 for llama 3.1 405B
The amount of data that needs to be transferred for each split is surprisingly small. Each time you move the calculation of a subsequent layer to a different GPU, you need to transfer an array that is of size model_dimension * num_tokens * bits_per_variable. Then this reduces to classic a network transfer time problem, where you consider both time until the first byte arrives and the transfer time until the last byte arrives. Reality will likely be longer than that idealized scenario, especially since you need to send a signal saying to begin computing.

Input processing can tackle so many tokens simultaneously that it probably is not worth thinking too much about this penalty there. Output processing is where the penalty is more significant, since you will incur these costs for every token. Let’s say we are doing fp16 or bf16 on llama 3 8B. Then we need to transfer 8KB every time we move the calculation for another layer to another GPU. If you use RDMA and do this over 10GbE, the transfer time would be 6.4 microseconds. If we assume the time to first byte and time to do a signal to begin processing is 3.6 microseconds combined (chosen to round things up), then we get a penalty of 10 microseconds per split, per token. If you are doing 60 tokens per second and split things across 4 GPUs over the network, you have a penalty of 30 microseconds per token. It will run about 0.003% slower and you are not going to notice this at all. Assuming 10GbE with RDMA is somewhat idealized, although I needed to pick something to give some numbers.

In any case, the equation for figuring what factor slower it would be is 1 / (1 + time to do transfers and trigger processing per each token in seconds). That would mean under a less ideal situation where the penalty is 5 milliseconds per token, the calculation will be ~0.99502487562 times slower versus what it would have been had it been done in a hypothetical single GPU that has all of the VRAM needed, but otherwise the same specifications. This penalty is also not very noticeable.

In conclusion, you are right. I actually recall seeing a random YouTube video talking about a software project that does clustered interferencing, so people are already doing this. Unfortunately, I do not remember the project name, channel name or video name.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by vicentwu on Tuesday December 03, 2024 @09:23PM (#42313939)
Off the topoc. I think, in the long-term , inference should be done along with some kind of training.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by stephen_cagle on Tuesday December 03, 2024 @10:05PM (#42314151)
Pretty sure they are talking about inference in the post you are responding to. Training the model obviously needs far more compute, but running them locally is what most devs are interested in.
Re:Intel announces Arc B-series "Battlemage" discrete graphi... by nine_k on Wednesday December 04, 2024 @01:42AM (#42314974)
You are of course right WRT datacenter use of GPUs. The OP spoke about local generation though. It is of course a smaller market, but a market nevertheless, and the more amateurs and students are using your product, the more of them would consider applying it in more professional settings.

Sun (Sparc) and HP (PA-RISC) used to own most of the server market in 1990, but lost most of it to x86 by 2000. Few people had a Sun box with Solaris, but tons of people had access to a PC with Linux, which was inferior in many ways, but well-known and much less locked-up.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by weatherlite on Wednesday December 04, 2024 @04:02AM (#42315724)
> NVIDIA has a complete ecosystem now. They have cards. They have cards of cards

Nvidia is starting to sound like a house of cards to me.

Re:Intel announces Arc B-series "Battlemage" discrete graphi... by reissbaker on Wednesday December 04, 2024 @07:27AM (#42316762)
On servers you're right: but for local LLM inference, I think you're wrong. For local LLMs most people are bottlenecked by not having enough VRAM: pretty much no one is running a 70b model on Nvidia GPUs locally, just due to the expense. You don't need maximum performance: you need it to run at all, which most people can't do for the good models — at least, not without heavy quantization that pretty badly lobotomizes them.

Apple is the king right now of local LLM inference, just because of their unified memory architecture meaning that people can get large amounts of "VRAM" (since all RAM is VRAM). They're not as fast as Nvidia — not even close to an H100, for example. But they don't need to be. No consumer can afford an H100, but they can afford a Mac.