cuML [alpha] - RAPIDS Machine Learning Library
Switch branches/tags
Nothing to show
Clone or download
dantegd Merge pull request #7 from daxiongshu/faiss-knn
Add Faiss knn connection to cuML
Latest commit ac3ad9f Oct 18, 2018

README.md

cuML (v0.1 Alpha)

Machine learning is a fundamental capability of RAPIDS. cuML is a suite of libraries that implements a machine learning algorithms within the RAPIDS data science ecosystem. cuML enables data scientists, researchers, and software engineers to run traditional ML tasks on GPUs without going into the details of CUDA programming.

The cuML repository contains:

  1. python: Python based GPU Dataframe (GDF) machine learning package that takes cuDF dataframes as input. cuML connects the data to C++/CUDA based cuML and ml-prims libraries without ever leaving GPU memory.

  2. cuML: C++/CUDA machine learning algorithms. This library currently includes the following five algorithms; a. Single GPU Truncated Singular Value Decomposition (tSVD), b. Single GPU Principal Component Analysis (PCA), c. Single GPU Density-based Spatial Clustering of Applications with Noise (DBSCAN), d. Single GPU Kalman Filtering, e. Multi-GPU K-Means Clustering.

  3. ml-prims: Low level machine learning primitives used in cuML. ml-prims is comprised of the following components; a. Linear Algebra, b. Statistics, c. Basic Matrix Operations, d. Distance Functions, e. Random Number Generation.

Available Algorithms for version 0.1alpha:

  • Truncated Singular Value Decomposition (tSVD)

  • Principal Component Analysis (PCA)

  • Density-based spatial clustering of applications with noise (DBSCAN)

Upcoming algorithms for version 0.1:

  • K-Means Clustering

  • Kalman Filter

More ML algorithms in cuML and more ML primitives in ml-prims are being added currently. Example notebooks are provided in the python folder to test the functionality and performance of this v0.1 alpha version. Goals for future versions include more algorithms and multi-gpu versions of the algorithms and primitives.

The installation option provided currently consists on building from source. Upcoming versions will add pip and conda options, along docker containers. They will be available in the coming weeks.

Setup

Dependencies

To use cuML, it must be cloned and built in an environment that already has the dependencies, including cuDF and its dependencies.

List of dependencies:

  1. zlib
  2. cmake (>= 3.8, version 3.11.4 is recommended and there are issues with version 3.12)
  3. CUDA (>= 9.0)
  4. Cython (>= 0.28)
  5. gcc (>=5.4.0)
  6. cuDF

Setup steps

To clone:

git clone --recurse-submodules https://github.com/rapidsai/cuml.git

To build the python package, in the repository root folder:

python setup.py install

Building CuML:

Running tests

To test the C++ algorithms using googletests, in the repository root folder:

$ cd cuML
$ mkdir build
$ cd build
$ cmake ..
$ make -j
$ ./ml_test

Python Notebooks

Demo notebooks can be found in python/notebooks folder.

External

The external folders contains submodules that this project in-turn depends on. Appropriate location flags will be automatically populated in the main CMakeLists.txt file for these.

Current external submodules are:

Contributing

Please use issues and pull requests to report bugs and add functionality.

Contact

Find out more details on the RAPIDS site