heliaPROFILER
hpx profiles LiteRT (.tflite) and ExecuTorch (.pte) models on real
Ambiq Apollo silicon.
One command resolves an inference engine, builds temporary NSX firmware,
flashes the target, captures measurements, and writes a portable result bundle.
Alpha. heliaPROFILER is pre-1.0. Breaking changes may land on minor versions until v1.0. Pin an exact version in production pipelines.
📖 Full docs: https://ambiqai.github.io/helia-profiler/
Why hpx
- Per-layer PMU breakdowns — cycles, instructions, cache, and (on Cortex-M55 boards) MVE and memory counter groups, one row per layer.
- Power & energy per inference — GPIO-gated Joulescope capture (JS110/JS220/JS320) uses a dedicated transport-free firmware image to isolate the inference window from setup/teardown and capture traffic.
- Four engines —
tflm(vanilla TFLM baseline),helia-rt(Ambiq's optimized TFLM interpreter), andhelia-aot(Ambiq's ahead-of-time model compiler), plusexecutorchfor Cortex-M PTE programs, selected explicitly per run. - Multiple toolchains —
arm-none-eabi-gcc,armclang, and ATfE, so you can compare build/runtime trade-offs without changing your model. - Memory placement control — place the heliaRT tensor arena in TCM, SRAM, or PSRAM and weights in TCM, SRAM, MRAM, or PSRAM; heliaAOT exposes per-tensor placement through its engine configuration.
- Four capture transports — lossless RTT by default, plus USB CDC, UART, and diagnostic SWO, with probe, port, and target-reset helpers for bring-up.
- Host-only model analysis — inspect MACs, parameters, tensor sizes, and heliaAOT graph transforms without connecting hardware.
- Run comparison and regression policy — compare two result bundles, inspect the largest layer deltas, and apply versioned metric thresholds.
- Model Explorer overlays — export per-layer metrics as JSON overlays for Model Explorer.
- Config-file driven — a frozen, immutable
hpx.ymlschema merges with CLI flags, with strict validation and did-you-mean suggestions for typos. - Multi-board — Apollo3, Apollo4, and Apollo5-family EVBs. Run
hpx boardsfor the exact list your install supports. - Verifiable result bundles — summaries, per-layer data, provenance, validity/comparability issues, and a SHA-256 manifest designed for scripts as well as people.
- Typed Python API — call
profile()directly or use immutable, branchableSessionworkflows in notebooks and automation.
Install
See the Quick install for Nix, uv, and pip setup.
Quick taste
hpx doctor # check toolchain + dependencies
hpx profile model.tflite # profile with defaults
hpx profile model.tflite --power # add Joulescope power capture
hpx profile --config hpx.yml # reproducible, config-driven run
hpx analyze model.tflite # inspect the model without hardware
hpx compare results/baseline results/change # compare two completed runs
hpx profile defaults to heliaRT, GNU Arm, RTT, apollo510_evb, per-layer
CPU counters, 100 measured iterations, and 5 warmups. Select a different
engine, board, toolchain, transport, memory plan, PMU selection, or output
directory explicitly on the command line or in YAML.
Layer Op ARM_PMU_CPU_CYCLES ARM_PMU_INST_RETIRED
0 CONV_2D 123,456 98,765
1 DEPTHWISE_CONV_2D 45,678 34,567
...
Power: 1.234 mA avg 12.345 mW avg x.xxx µJ / inference
(Illustrative sample only — see Getting Started for a real walkthrough.)
Development
uv sync --locked --all-groups
uv run ruff check src tests tools
uv run pytest -q
uv run mkdocs build --strict
Repository workflows use the committed uv.lock for reproducibility. PyPI
installations continue to resolve the compatible dependency ranges published in
pyproject.toml.
License
Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file helia_profiler-0.1.5.tar.gz.
File metadata
- Download URL: helia_profiler-0.1.5.tar.gz
- Upload date:
- Size: 698.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
091ab944712faef1a4dc2291bce4b19c2952802fe306b6cf8fb7e944f3017a8a
|
|
| MD5 |
ad1d8cf1050a2502e034867ae79ad3ac
|
|
| BLAKE2b-256 |
b9095c64996dcf606153b9bd21413a9c65c44d710b13e5c18581ce0d0e076b6d
|
File details
Details for the file helia_profiler-0.1.5-py3-none-any.whl.
File metadata
- Download URL: helia_profiler-0.1.5-py3-none-any.whl
- Upload date:
- Size: 590.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39fe9daafb1f01bf137b19022b2873360eff442ee688d69285bd14d5cba74943
|
|
| MD5 |
8ab4d353763bc422badfb77ed82166da
|
|
| BLAKE2b-256 |
0274d01179b323db60f24e83e41b6aed530baae27d79f7232fe77fd5301af6c2
|