5 ms·
Efficient LLM inference solution on Intel GPU
- brucethemoose2 3y agoI find this paper kind of "medium" (as the transformers baseline they compare against is glacially slow), but Intel's integration efforts in open source LLM runtimes are real and very interesting. See, for instance, their PRs in llama.cpp, not to speak of all their other open source efforts.
- baq 3y agoTheir software folks are really good, at least in the GPU space. The hardware seems stuck in past decade and the process woes don't help either - but the software should be ready if they ever dig themselves out of the hardware hole.
- selimthegrim 3y agoAt NeurIPS it seemed like the Intel Labs/materials research/hardware people were out in force
- brucethemoose2 3y agoI mean, if they sell me a 48GB GPU that's not $5K like a W7900, I will drop my Nvidia card faster than I can blink. I don't even care if its kinda slow and uses an older process. And then I may end up fixing Intel bugs in ML projects we use, and deploying them on Intel cloud hardware... which is hopefully more available as well.
- kiratp 3y ago+1 to this. I’ve been working with their research teams on this and credit due indeed. Some context: https://github.com/ggerganov/llama.cpp/issues/2555#issuecomment-1698302171 https://github.com/ggerganov/llama.cpp/issues/2555#issuecomm... https://github.com/ggerganov/llama.cpp/discussions/3965 https://github.com/ggerganov/llama.cpp/discussions/3965
- NelsonMinar 3y agoWell that sounds encouraging, Intel QuickSync has made efficient video encoding really accessible. Would love something similar for LLM inference Is this paper the same work as goes in to Intel's BigDL-LLM code? That's been out for a few months now but I haven't seen it in use yet. https://medium.com/intel-tech/bigdl-llm-easily-optimize-your-large-language-model-on-intel-arc-gpus-5ba33a06729e https://medium.com/intel-tech/bigdl-llm-easily-optimize-your...
- brucethemoose2 3y ago> I haven't seen it in use yet Neither have I, but this is interesting and I am bookmarking it, thanks. The Gen AI space is littered with very interesting high performance runtimes that precisely no one uses. There are too many for integrators to even keep up with, much less integrate!
- wmf 3y agoNote that this is about Intel Ponte Vecchio professional GPUs, not the consumer Alchemist GPUs. Do they use the same software stack?
- xipix 3y agoYes, also newer iGPUs (11th Gen onwards) can use same software
- deleted 3y ago[deleted]
- newsclues 3y agoAre we at or approaching the point where people can self host an useful LLM for personal use on affordable hardware?
- adastra22 3y agoIs a MacBook Air affordable? Because we’re already at that point.
- newsclues 3y agoThe base model? Given the article about GPUs, I think I was thinking more along the lines of a desktop with a consumer GPU.
- brucethemoose2 3y agoIntel (and AMD) reportedly have big M-Pro-like iGPUs in the pipe, and Intel has the Battlemage GPU line coming up, so we shall see.
- adastra22 3y agoBy base model do you mean off-the-shelf? I think the bigger limitation there would be RAM, as the machine comes with just 8GB soldered on board. You can expand to 24GB for +$400 though, and increase the GPU cores +25% for an extra +$100. The CPU/GPU speed of the Air is the same as the MacBook Pro base model though. The only difference is the lack of active cooling, which for large workloads can result in performance degradation. Chat apps are intrinsically interactive though, only using bursts of GPU when it is performing inference. Shouldn't be an issue. The expensive PRO/MAX variants of the MacBook Pro would be 2x - 4x faster. But the plain M2 in the MacBook Air is sufficient to get real-time speeds on sizable models. When the M3 comes out for the MacBook Air, discounted M2 machines, new or refurbished, should be an ideal entry-level machine for local inference.
- washadjeffmad 3y ago> discounted M2 machines, new or refurbished, should be an ideal entry-level machine for local inference At the point of purchase of the lowest cost configuration with 24GB Unified Memory, you've already paid the an equivalent of over 2200 hours of GPU compute time on an RTX 4090 24GB, with a performance that exceeds the MacBook by around 1200% (it/s). If you buy that MacBook for AI, you would have to run continuous generative inference on it for over a decade to match the return of just having used runpod instead. Even Apple doesn't use Macs to do AI - they use GCP TPUs. Buy the Mac if you like it, by all means, but be realistic. LLM performance on Apple Silicon is decent for small models but does not scale. If any Mac architecture were cost effective at any scale for AI, we would be putting them in data centers, and we're not.
- spearman 3y agoI skimmed the paper but couldn't find it: What API did they use to write their kernels? I would have guessed SYCL since that's what Intel is pushing for GPU programming but I couldn't find any reference to SYCL in the paper.
- spearman 3y agoOK I found it. Looks like they use SYCL (which for some reason they've rebranded to DPC++): https://github.com/intel/intel-extension-for-pytorch/tree/v2.1.10%2Bxpu/examples/gpu/inference/python/llm https://github.com/intel/intel-extension-for-pytorch/tree/v2...
- mepian 3y agoSYCL is a standard, DPC++ is a particular implementation of this standard.