Ethos-U Vela

raw JSON →
5.0.0 verified Fri May 01 auth: no python

Neural network model compiler for Arm Ethos-U NPUs. Version 5.0.0, released approximately monthly.

pip install ethos-u-vela
error ModuleNotFoundError: No module named 'ethosu'
cause Incorrect import path. The module is 'vela', not 'ethosu'.
fix
Use 'import vela' instead of 'from ethosu import vela'.
error bash: vela: command not found
cause After version 4.0.0, the CLI command is 'ethos-u-vela' instead of 'vela'.
fix
Run 'ethos-u-vela' instead of 'vela', or ensure the vela script is in your PATH (pip install --user might help).
breaking The CLI entry point changed from 'vela' to 'ethos-u-vela' after version 3.x. Running 'vela' directly may fail.
fix Use 'ethos-u-vela' as the command or ensure the vela script is in PATH.
deprecated Support for TensorFlow 1.x models was removed in v4.0.0. Only TFLite models (TensorFlow 2.x) are accepted.
fix Convert your model to TFLite format using TensorFlow 2.x.
gotcha The package name is 'ethos-u-vela' but the importable module is 'vela'. This confuses new users.
fix Use 'import vela' after 'pip install ethos-u-vela'.

After installing ethos-u-vela, use the vela module to compile TFLite models for Ethos-U NPUs.

import vela
# Compile a TFLite model
vela.main(['--output-dir', './output', 'model.tflite'])