News for hackers. Stuff that matters.
Re:Intel Extension for Scikit-Learn by kvathupo on Monday November 01, 2021 @11:18AM (#29067813)
Intel seems 6 years too late to the party CUDA started. That said, it could pick up traction: academics have increasingly been using pytorch.

EDIT: Perhaps its my inexperience, but is anyone else confused by the OneAPI rollout? There isn't exactly backwards compatiblity with the Classic Intel compiler, and an embarassing amount of time elapsed until I realized "Data Parallel C++" doesn't refer to parallel programming in C++, but rather an Intel-developed API built atop C++.

Re:Intel Extension for Scikit-Learn by mumblemumble on Monday November 01, 2021 @11:48AM (#29068323)
Perhaps things have changed since I last poked at this, so, standard disclaimers, take my comments with a grain of salt, etc.

GPU acceleration is not a magic "go fast" machine. It only works for certain classes of embarrassingly parallel algorithms. In a nutshell, the parallel regions need to be long enough that the speedup from doing them in the GPU's silicon outweighs the relatively high cost of getting data into and out of the GPU.

That's a fairly easy scenario to achieve with neural networks, which have a pretty high math-to-data ratio. Other machine learning algorithms, not necessarily. But basically all of them can benefit from the CPU's vector instructions, because they live in the CPU rather than out on a peripheral, so there's no hole you need to dig yourself out of before they can deliver a net benefit.

I would also say that what academics are doing is not necessarily a good barometer for what others are doing. In another nutshell, academics' professional incentives encourage them to prefer the fanciest thing that could possibly work, because their job is to push the frontiers of knowledge and technology.

Most people out in industry, though, are incentivized to do the simplest thing that could possibly work, because their job is to deliver software that is reliable and delivers a high return on investment.

Re:Intel Extension for Scikit-Learn by whatever1 on Monday November 01, 2021 @11:58AM (#29068492)
Maybe the solution is a discrete SOC for ML? CPU and GPU on a card with shared memory like apples M1
Re:Intel Extension for Scikit-Learn by mumblemumble on Monday November 01, 2021 @12:26PM (#29068950)
I personally wouldn't bother. If you're not doing deep learning, existing hardware is already good enough that, while I can't say that nobody could get any value out of it, I'm personally not seeing the need. I'd much rather focus on the things that are actually costing me time and money, like data integrity.

Like, I would guess that the potential benefit to my team's productivity from eliminating (over)reliance on weakly typed formats such as JSON from our information systems could be orders of magnitude greater.

Re:Intel Extension for Scikit-Learn by jakeinspace on Monday November 01, 2021 @03:01PM (#29071335)
I can't imagine that the overlap between those using Scikit-Learn and those willing to buy and integrate ML-specialized hardware is that high. I think a lot of real-world usage of simpler ML libraries like Scikit-Learn is deploying small models onto an already existing x86 or ARM system which had cycles to spare for some basic classification or regression.
Re:Intel Extension for Scikit-Learn by alfalfasprout on Tuesday November 02, 2021 @01:12AM (#29077342)
I mean, Amazon and Google are already doing that... and there's companies making ML ASICs.

Problem is... the ASICs are really good for certain classes of ML problems but aren't really all that general.

Re:Intel Extension for Scikit-Learn by fartcannon on Monday November 01, 2021 @11:23AM (#29067894)
If they're more open with it than nvidia, they have a chance in my opinion.
Re:Intel Extension for Scikit-Learn by hack_ml on Monday November 01, 2021 @01:38PM (#29070068)
RAPIDS by NVIDIA has an equivalent API open source version of Sckit-Learn https://docs.rapids.ai/api/cuml/stable/ which seems to offer 100x speedup for a lot of these models.
Re:Intel Extension for Scikit-Learn by dfsegoat on Monday November 01, 2021 @11:29AM (#29068012)
They also made some entry into the R space with adding their MKL / BLAS library:

https://www.intel.com/content/www/us/en/developer/articles/t...