Machine Learning Accelerator
The Object Mount Machine Learning Accelerator (Object Mount MLA) is a software library that accelerates existing machine learning models by leveraging Object Mount’s enhanced data retrieval and storage technology.
Enterprise Feature
The Object Mount MLA library is only available to Object Mount for Linux users with an Enterprise License Key.
Requirements
Python 3.7 or higher is required to use the Object Mount Machine Learning Accelerator.
If you require previous versions of Python 3, reach out to our Support Team.
Supported Functions
The Object Mount MLA has been tested with the following data loading functions:
opennumpy.loadfilenumpy.loadnumpy.loadtxtPIL.Image.opentorchaudio.load
It may also work with additional data loading functions.
Contact our Support Team for assistance with using additional functions.
Installation and Usage
Installation:
To use Object Mount MLA you myst install the dependencies in your environment.
Use
pipto do so:Set Environment Variables:
Then set the following environment variables:
CUNO_SPEEDUP_PYTHON=1PYTHONPATH="<path to the Object Mount MLA>${PYTHONPATH+:$PYTHONPATH}"
The
CUNO_SPEEDUP_PYTHONvariable signals Object Mount MLA to enable specific Machine Learning optimizations.The
PYTHONPATHalteration causes Python to load the Object Mount MLA’ssitecustomize.pyfile first.
When finished, you can begin using Object Mount. All standard Object Mount deployment modes are support, including Direct Interception and Object Mount on FUSE.
Use the examples below for details on using Object Mount within your specific deployment mode.
Object Mount MLA with Direct Interception Mode
Object Mount’s Direct Interception Mode is easily activate by running the cuno command to invoke a new Object Mount-wrapped shell.
If using the Object Mount CLI (cuno) is not an option, you can use cuno run to enable Object Mount for a single command.
You can also set the LD_PRELOAD environment variable directly: e.g.: LD_PRELOAD=<path to your Object Mount installation>/lib/cuno.so.
See the “User-Mode library: LD_PRELOAD” section in the Advanced Guide article: Advanced Loading Options for additional details on using LD_PRELOAD.
Example Usage:
Activating a shell with Object Mount as an example:
Object Mount MLA with Object Mount on FUSE
To use Object Mount MLA with Object Mount on FUSE you will need to configure your Python scripts to look for data inside the mount.
Example Usage:
Mount an S3 bucket named dataset_bucket at the location $HOME/cloudmount: