Simplicity Machine Learning#

Simplicity Machine Learning is a suite of tools to ease the deployment of machine learning models built with TensorFlow Lite for Microcontrollers on to Silicon Labs Devices. It is available as a GUI and a CLI. The GUI displays all the tools into one interface, whereas the CLI displays them as subcommands of the sml command.

Simplicity Machine Learning tool helps analyze and optimize TensorFlow Lite for Microcontrollers (.tflite) models on Silicon Labs devices. The tool provides layer-by-layer visibility into model execution. It helps to identify performance bottlenecks, evaluate memory and processing requirements, and understand execution trade-offs between the ARM Cortex-M CPU and the Matrix Vector Processor (MVP).

Additionally, the tool can also convert PyTorch (.pt, .pth) and ONNX (.onnx) models to TensorFlow Lite format. .

Simplicity Machine Learning GUISimplicity Machine Learning GUI

To get started, install the Simplicity Machine Learning tool by performing the following installation steps.

Installation#

Using Simplicity Installer#

  1. Download Simplicity Installer using this link for your OS.

  2. Install the Simplicity Installer.

  3. Open the Simplicity Installer and navigate to Installation Wizard.

    Installation WizardInstallation Wizard

  4. Click the Advanced tile.

    Advanced TileAdvanced Tile

  5. Search for Simplicity Machine Learning:

    1. Click the search icon.

    2. Type Simplicity Machine Learning in the search box.

    3. Select the latest Simplicity Machine Learning GUI or CLI version by selecting the checkbox next to it. Versioning is based on semantic versioning.

    4. Accept Terms of Service and License Agreement by selecting the checkbox at the bottom.

    5. Click the Install button.

      Search and Install Simplicity Machine LearningSearch and Install Simplicity Machine Learning

      Installation should progress, as shown below.

      Simplicity Machine Learning Installation ProgressSimplicity Machine Learning Installation Progress

  6. After a successful installation, the following screen is displayed.

    Simplicity Machine Learning Installation successfulSimplicity Machine Learning Installation successful

  7. If you installed the CLI version (sml-cli), add its location to your "PATH" (or "Path" on Windows) environment variable. You can find the location using slt where sml-cli.

  8. Verify the installed version:

    sml --version

    Displayed version must be 1.1.0-beta or later.

Using SLT on the Command Line#

  1. Download Silicon Labs Tool (SLT) using this link for your OS.

  2. Unzip the downloaded zip file to your preferred location. Add this location to your PATH (or "Path" on Windows) environment variable so that slt command is available globally.

  3. Install Simplicity Machine Learning using slt install sml for the GUI version or slt install sml-cli for the CLI version.

  4. If you installed the CLI, add its location to your PATH if needed. You can find the location using slt where sml-cli.

  5. Verify the installed version:

    sml --version

    The reported version must be 1.1.0-beta or later.

Using the Tool#

For detailed instructions on how to use the tool, see Simplicity Machine Learning Guide