Skip to main content

LightOn technologies for Large scale Machine Learning with Optical Processing Unit

Project description

LightOnML library

Twitter Follow PyPi Version Python Versions

LightOnML is a high level machine learning-oriented API that allows to perform random projections on LightOn’s optical processing units (OPUs). LightOn’s OPUs are available through LightOn’s Cloud service.


  • Run large-scale non-linear and linear random projections using LightOn’s Aurora OPUs
  • Simulate these projections on any machine without access to an OPU
  • Encode input data in a binary form using various encoders, for OPU input


lightonml doesn't require access to an OPU for some functionalities, but for performing computations on an OPU you'll need one. Otherwise, a simulated OPU can be used.

To install, use pip:

pip install lightonml

Optional dependencies are :

  • torch, required for the encoder classes, and the PyTorch OPUMap.
  • scikit-learn, required for using the corresponding OPUMap to work.

Documentation, examples and help

Main documentation can be found at the API docs website.

Check the examples directory in the repo, if you don't have access to an OPU you can run the code locally with a simulated OPU

For getting help on the LightOn Cloud service check the Community website

For help on the library itself, you can use issues on this repository.

Access to Optical Processing Units

To request access to LightOn Cloud and try our photonic co-processor, please visit:

For researchers, we also have a LightOn Cloud for Research program, please visit for more information.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

lightonml-1.4.3-py3-none-any.whl (68.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page