-
Notifications
You must be signed in to change notification settings - Fork 73
Add GPU benchmarks support to readme #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
672c8cc
19bc2e7
53b4200
cbd99b1
becfbde
9874958
0fe0ab4
9ef18ab
ece84d9
6568e48
9f133ef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -26,11 +26,10 @@ We publish blogs on Medium, so [follow us](https://medium.com/intel-analytics-so | |||||
|
||||||
## Table of content | ||||||
|
||||||
* [Prerequisites](#prerequisites) | ||||||
* [How to create conda environment for benchmarking](#how-to-create-conda-environment-for-benchmarking) | ||||||
* [How to enable daal4py patching for scikit-learn benchmarks](#how-to-enable-daal4py-patching-for-scikit-learn-benchmarks) | ||||||
* [Running Python benchmarks with runner script](#running-python-benchmarks-with-runner-script) | ||||||
* [Supported algorithms](#supported-algorithms) | ||||||
* [Benchmark supported algorithms](#benchmark-supported-algorithms) | ||||||
* [Intel(R) Extension for Scikit-learn* support](#intelr-extension-for-scikit-learn-support) | ||||||
* [Algorithms parameters](#algorithms-parameters) | ||||||
|
||||||
## How to create conda environment for benchmarking | ||||||
|
@@ -67,7 +66,7 @@ Run `python runner.py --configs configs/config_example.json [--output-file resul | |||||
|
||||||
runner options: | ||||||
* ``configs`` : configuration files paths | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* ``no-intel-optimized`` : using Scikit-learn without Intel(R) Extension for Scikit-learn*. Now avalible for scikit-learn benchmarks. Default starts with using Intel(R) Extension for Scikit-learn*. | ||||||
* ``no-intel-optimized`` : using Scikit-learn without [Intel(R) Extension for Scikit-learn*](#intelr-extension-for-scikit-learn-support). Now available for [scikit-learn benchmarks](https://github.com/IntelPython/scikit-learn_bench/tree/master/sklearn_bench). Default running with using Intel(R) Extension for Scikit-learn. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* ``output-file``: output file name for result benchmarks. Default is `result.json` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* ``report``: create an Excel report based on benchmarks results. Need library `openpyxl`. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* ``dummy-run`` : run configuration parser and datasets generation without benchmarks running. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
@@ -108,6 +107,17 @@ The configuration of benchmarks allows you to select the frameworks to run, sele | |||||
|**[GradientBoostingClassifier](https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.GradientBoostingClassifier.html)**|gbt|:x:|:x:|:x:|:white_check_mark:| | ||||||
|**[GradientBoostingRegressor](https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.GradientBoostingRegressor.html)**|gbt|:x:|:x:|:x:|:white_check_mark:| | ||||||
|
||||||
## Intel(R) Extension for Scikit-learn support | ||||||
|
||||||
By default scikit-learn benchmark launches using [Intel(R) Extension for Scikit-learn](https://github.com/intel/scikit-learn-intelex) on the CPU (use ``no-intel-optimized`` option to run without extention). Some benchmarks have a GPU support: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure this is correct sentence. Maybe change by "The launches of scikit-learn benchmark use ... by default"? |
||||||
|
||||||
* dbscan | ||||||
* kmeans | ||||||
* linear | ||||||
* log_reg | ||||||
|
||||||
A configuration file that contains all these benchmarks can be found [here](https://github.com/IntelPython/scikit-learn_bench/blob/master/configs/skl_xpu_config.json). You can use this file to run these benchmarks on both CPU and GPU. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add the command to run this config and get a report There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
## Algorithms parameters | ||||||
|
||||||
You can launch benchmarks for each algorithm separately. | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -27,6 +27,7 @@ Refer to the tables below for descriptions of all fields in the configuration fi | |||||
|data-order| array[string] | **REQUIRED** input data order. Data order: *C* (row-major, default) or *F* (column-major) | | ||||||
|dtype| array[string] | **REQUIRED** input data type. Data type: *float64* (default) or *float32* | | ||||||
|check-finitness| array[] | Check finiteness in sklearn input check(disabled by default) | | ||||||
|device| array[string] | For scikit-learn only. The list of devices to run the benchmarks on. It can be *None* (default, run on CPU without sycl context) or one of the types of sycl devices: *cpu*, *gpu*, *host*. Please reffer to [SYCL specification](https://www.khronos.org/files/sycl/sycl-2020-reference-guide.pdf) for details| | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
### Case Object | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.