scikit-learn on dedicated servers
scikit-learn is the workhorse of classical machine learning: gradient boosting, random forests, linear models and clustering. It runs entirely on the CPU, so a machine with many cores turns hour-long searches into minutes.
What kind of work does scikit-learn do well?
Learning from tables. Customer churn, credit scoring, demand forecasting features, anomaly detection on logs and clustering of products all fit its estimators. Datasets of a few million rows and a few hundred columns train in seconds to minutes per model; the time goes into trying many models and settings, which is exactly the part that parallelises across cores.
How does scikit-learn use many cores?
In two layers. The n_jobs parameter spreads independent work, such as cross-validation folds, grid points or trees of a forest, across worker processes through joblib. Inside some estimators, OpenMP threads and the BLAS library split numeric work further: HistGradientBoosting uses OpenMP, and linear algebra goes through OpenBLAS. Using both layers at full width creates far more threads than cores, which slows everything down.
How do I avoid thread oversubscription?
Give the outer layer the cores and keep the inner layer small. When joblib's default loky backend starts worker processes, it limits each worker's inner threads automatically; in other contexts, threadpoolctl caps them explicitly.
from sklearn.model_selection import RandomizedSearchCV
from sklearn.ensemble import HistGradientBoostingClassifier
from threadpoolctl import threadpool_limits
search = RandomizedSearchCV(HistGradientBoostingClassifier(), param_distributions=grid,
n_iter=200, cv=5, n_jobs=32, random_state=7)
with threadpool_limits(limits=1):
search.fit(X_train, y_train)
A 200 candidate search with five folds is 1,000 fits. At 30 seconds each that is over eight hours on one core and roughly 16 minutes on 32 cores, assuming memory keeps up.
How much memory should I plan?
Each worker process may hold its own copy of the training data, so multiply. A 4 GB float64 matrix searched with 32 workers can need over 100 GB if copies are made. Joblib memory-maps large NumPy arrays to share them between workers, which helps, but cast to float32 where the estimator accepts it and drop unused columns before fitting. That is why we suggest the 128 GB and 256 GB machines for wide searches.
| Use | Machine | Cores and memory |
|---|---|---|
| Exploration and small searches | ESSENTIAL-M | 12 cores, 64 GB DDR5 |
| Daily retraining jobs | ESSENTIAL-L | 16 cores, 128 GB DDR5 |
| Wide searches on large tables | ESSENTIAL-9 | 48 cores, 256 GB DDR4 |
| Team platform with many users | ENTERPRISE-a3 2026 | 32 cores, 128 GB DDR5 |
Is clock speed or core count more useful?
Both, depending on the phase. A single gradient boosting fit with OpenMP benefits from fast cores and large caches, where the Ryzen 9000 and EPYC 4005 chips shine. A search over hundreds of candidates benefits from sheer count, where the older 48 core ESSENTIAL-9 at $153.00 a month gives a lot of parallel fits for the money.
How do I save and load trained models?
With joblib for scikit-learn objects, keeping the library version alongside, since pickled models are only guaranteed to load in the same version. For language-neutral serving, convert to ONNX with skl2onnx and run it under ONNX Runtime, which also loads faster.
import joblib, sklearn
joblib.dump({"model": search.best_estimator_, "sklearn": sklearn.__version__}, "/srv/models/churn-2026-12.joblib", compress=3)
How do I run jobs unattended?
Use systemd timers or a scheduler such as Airflow, log every run's parameters and scores, and write results to the local NVMe pair. Keep a copy of models and training snapshots on a second server, since we do not sell backup storage. See NumPy number crunching, TensorFlow on CPU servers and Big data and analytics for neighbouring tools.
Machines for scikit-learn
Lowest monthly price of each model across its data centres; the model page shows the price in every location.
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-M | AMD Ryzen 9 9900X | 12 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $70.80 |
| ESSENTIAL-L | AMD Ryzen 9 9950X | 16 | 128 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $106.20 |
| ESSENTIAL-5 | AMD EPYC 7413 | 24 | 128 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $120.00 |
| ESSENTIAL-9 | AMD EPYC 7642 | 48 | 256 GB | 2x 480 GB SSD SATA | 1 Gbps unmetered | $153.00 |
| BUSINESS-4 2024 | AMD EPYC 4584PX | 16 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $180.60 |
| ENTERPRISE-a3 2026 | AMD EPYC TURIN 9355 | 32 | 128 GB | 2x 1.92 TB SSD NVMe | 5 Gbps unmetered | $481.80 |
Count fits in your search, divide by cores, and check memory per worker before ordering.
Related pages
NumPy number crunching
Speed up NumPy on dedicated hardware: BLAS backends, thread variables, memory bandwidth, float32 versus float64, memmap for big arrays and scaling past one process.
Read moreTensorFlow on CPU servers
Serve and train TensorFlow models on many-core CPUs: oneDNN kernels, thread settings, TensorFlow Serving, batching and when a CPU machine is the right call.
Read moreBig data and analytics
High core EPYC machines and dense disk chassis for Spark, ClickHouse and data lake clusters.
Read moreCores or clock speed: which to buy
How to tell whether your software wants many cores or a few fast ones, with worked numbers from machines on our list.
Read moreQuestions and answers
Does scikit-learn use a GPU?
No, scikit-learn runs on the CPU. Its parallelism comes from n_jobs worker processes and OpenMP or BLAS threads.
What does n_jobs=-1 do?
It uses every available core for the parallel part of the task, such as cross-validation folds or trees in a forest.
Why does my search get slower with more cores?
Usually thread oversubscription: workers each start many BLAS or OpenMP threads. Limit inner threads to one with threadpoolctl.
How much RAM do I need for parallel model searches?
Plan for the dataset size times the number of workers in the worst case, then reduce with float32 data and memory mapping.
How should I store trained scikit-learn models?
Save them with joblib along with the library version, or convert them to ONNX for language-neutral serving.