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 Common errors
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).
Warnings
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'.
Imports
- vela
import vela - vela.vela wrong
from ethosu import velacorrectimport vela
Quickstart
import vela
# Compile a TFLite model
vela.main(['--output-dir', './output', 'model.tflite'])