Repository navigation
Add post: Accelerating scikit-learn on Intel hardware: what the benchmarks found so far - #228
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
💖 Thanks for opening this pull request! 💖 |
✅ Deploy Preview for scikit-learn-blog-view ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for scikit-learn-blog ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ix count Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Merged |
ogrisel
left a comment
There was a problem hiding this comment.
Here is some feedback. It includes cosmetics suggestion to use backtick markers whenever applicable, even in section headers. It would be great to fix them all systematically. I just did some manually below.
There is also one point about missing speed-up values to back the claim about the MKL build for linear models.
Other than that, LGTM. Good work @cakedev0!
…k the MKL claim with the builds dashboard Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
It would be great to have one or more maintainers outside of Probabl to give their view about this blog post: e.g. @betatim @virchan @lorentzenchr @thomasjpfan @OmarManzoor @lucyleeow @jjerphan @adrinjalali. |
|
When I was asked to write a blog post about my work, I was asked not to promote myself. |
|
I think @DeaMariaLeon has a good point. I started reading and stopped half way. I suggest to tell a story not details about some ongoing work. For example
I would also remove the mentions of PRs that are not decided yet or still draft (like scoiding centering for ridge: we might prefer numerical robustness over speed). I hope this helps. |
|
And is it possible to see the rendered page? |
|
I will remove the "About me" section, I was not aware of this policy. I feel the question you're asking Christian are answered in the post already.
But I could center the narrative a bit more around those points. Not sure I have the courage though...
Fair, I'll look into that. I still want to mention the HGB PR. But the ridge centering can be removed yes. |
Mention the k-means++ and Lloyd PRs and the long-standing issue #17334 they should close, say the pandas encoder PR is paused, drop the LogisticRegression PR example (still a draft), and qualify the results of unmerged PRs as coming from our benchmarks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
We could branch this out into a separate blog post featuring a team-member interview. I'd strongly encourage both you and Dea to consider being interviewed, rather than removing the section entirely. |
|
The rendered post in case it's still needed: https://deploy-preview-228--scikit-learn-blog-view.netlify.app/updates/intel-benchmarks-update/
@virchan I was interviewed some months ago, filled out a questionnaire, and I never heard back from the person @ probabl who asked me to do that. |
|
I was interviewed some months ago, filled out a questionnaire, and I never heard back from the person @ probabl who asked me to do that.
Was this for the TabularAI report? It's coming out in a few months.
|
|
@DeaMariaLeon Can you (Do you want to) write an email to some people from Probable and put me in the CC. I hope it is just an oversight or internal misunderstanding. |
…hreads Co-Authored-By: Claude Opus 5.5 <[email protected]>
I'm not sure what you mean in practice exactly but this blog post is the beginning of a story, it doesn't have a natural conclusion (or maybe just: "we're going to improve performance of scikit-learn" but it's more a prediction/a direction than a conclusion). So I think it's normal it's a bit scattered. |
…s updates - Intro without the repeated outcomes, quote moved after it - "Where we are" points to "What's next" instead of listing PRs - Builds section renamed so it covers the ExtraTrees isnan story - "What's next": one set of paragraphs in priority order - Shorter KMeans paragraph, MKL build now competitive for KMeans Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thank you for all the reviews, I tried to address everything. |
|
Is it only for me or is the font-size really big? Also, the text column is quite narrow, combined with the font-size, I find it quite hard to read personally.
Comparing with substack:
Edit: Claude made a PR to fix that, I like it very much: #231 |
|
Thank you for this very valuable work! I would also recommend taking conda-forge build variants on You can distinguish them using: Depending on the platform, the threading layer is different (due to historical coverage), but we would benefit to know how each one behave for each platform. To understand more, see the definition and usage of |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks Julien! Good news: the benchmarks already cover both variants 😁 I've added a linked to the dedicated dashboard in the blog post 👍 The conda-forge OpenBLAS builds run with both |
|
Before posting, I had seen that the implementations of OpenMP are mentioned on the dashboard, but to me it is still not clear which configuration uses a build of OpenBLAS which relies on OpenMP (and if so which implementation) and which configuration uses a build of OpenBLAS which relies on |
I currently understand that (Also, one could imagine having |
done: Blog: [blog#231](scikit-learn/blog#231) (match Substack's font size), merged todo: move [blog#228](scikit-learn/blog#228) from Waiting to Now: address lorentzenchr's review and answer jjerphan on the OpenBLAS threading layers todo: move [sklearn#35181](scikit-learn/scikit-learn#35181) from Now to Waiting, adam2392's and antoinebaker's questions answered add: Maintenance: follow up on [sklearn#35254](scikit-learn/scikit-learn#35254): settle option B with dherrera1911 and betatim (LDA solvers disagree with custom priors) add: Maintenance: follow up on [sklearn#35209](scikit-learn/scikit-learn#35209): newton-cg LogisticRegressionCV test fails on the macOS x86_64 wheels add: Maintenance: re-review [sklearn#34619](scikit-learn/scikit-learn#34619) (faster PCA mle; jberg5 addressed my comments) add: Benchmarks: review [benchmarks#142](probabl-ai/scikit-learn-benchmarks#142) (cuML config) with the results of the AWS L4 run add: Upstream: upstream to OpenBLAS or close [cakedev0/OpenBLAS#3](cakedev0/OpenBLAS#3) and [cakedev0/OpenBLAS#4](cakedev0/OpenBLAS#4) todo: since dates on [sklearn#35062](scikit-learn/scikit-learn#35062) and [sklearn#35053](scikit-learn/scikit-learn#35053), and virchan's question on the latter todo: lorentzenchr's note on [sklearn#35029](scikit-learn/scikit-learn#35029) in the fork#38 line Co-Authored-By: Claude Opus 5.5 <[email protected]>
The OMP build of OpenBLAS requires LLVM OMP: |
drop: Linear: answer lorentzenchr's inline concerns on [sklearn#35196](scikit-learn/scikit-learn#35196) (minimum norm newton-cholesky), closed without merging in favor of [sklearn#34339](scikit-learn/scikit-learn#34339) todo: move [sklearn#35267](scikit-learn/scikit-learn#35267) from Now to Waiting, ArturoAmorQ's wording suggestions applied todo: david-cortes-intel's note on the OpenMP OpenBLAS build on [blog#228](scikit-learn/blog#228) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ures Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ter builds section Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks again for the nice review @lorentzenchr. I think/hope I addressed everything, and I iterated on my side a bit too. @"all", I think there are no big blockers remaining and that we could merge it soon? |
| The OpenMP and BLAS threads aren't set through scikit-learn's API, but with | ||
| environment variables (`OMP_NUM_THREADS`, `OPENBLAS_NUM_THREADS`, | ||
| `MKL_NUM_THREADS`) or, from Python, with | ||
| [threadpoolctl](https://github.com/joblib/threadpoolctl): |
There was a problem hiding this comment.
Also mkl-service in the case of MKL:
https://github.com/intelpython/mkl-service
Co-authored-by: david-cortes-intel <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks @cakedev0 for the blog post and everyone for your interest and comments 🙏! I read the blog post and think this is in a good state and I will merge it! Small reminder for everyone: writing a blog post is hard work. Let's collectively try to reduce the level of nitpicking/bikeshedding side-conversations to an acceptable level so that we encourage people to contribute more posts to the scikit-learn blog 💪! |



This post is a first progress update on the collaboration between Probabl and Intel to make scikit-learn faster on Intel hardware (which most of the time means making it faster overall on CPUs), announced in June. Intel funds the work, and I've been working on it at Probabl since April 2026. So far it's mostly a benchmark suite and the issues and PRs that came out of it.
Some of the PRs it mentions went through the usual scikit-learn review, but most of the work happened in a separate repository (probabl-ai/scikit-learn-benchmarks), so the post is also meant to give the context to people who haven't followed it.
What the post covers:
Engineers from Intel reviewed the text. Feedback from other maintainers is very welcome, especially on anything that reads as overclaiming or as too vendor-specific for the scikit-learn blog.