Skip to content
heliaPROFILER
Reference
HELIA

hpx freeze

Freeze a resolved run plan to JSON for hpx build

function

Freeze a resolved run plan to JSON for hpx build

src/helia_profiler/cli/run_app.py:95

hpx freeze [OPTIONS] [MODEL]
hpx freeze arguments
ArgumentTypeDescription
modelOptional[Path]Path to .tflite or .pte model file
hpx freeze options
OptionTypeDefaultDescription
--output, -oPathWhere to write the plan (JSON) Required.
--config, -cOptional[Path]YAML config file (hpx.yml)
--verbose, -vint0Increase verbosity
--iterationsOptional[int]Timed iterations (default: 100)
--warmupOptional[int]Warmup iterations (default: 5)
hpx freeze engine
OptionTypeDescription
--enginelitert | helia-rt | helia-aot | executorchInference engine (default: helia-rt)
--backendOptional[str]Kernel backend (engine.backend). Run builds need helia for helia-rt and cmsis_nn for litert.
--engine-configOptional[Path]Engine-specific YAML config
--arena-sizeOptional[int]Tensor arena size in bytes
--arena-locationtcm | sram | psramTensor arena placement. Omit to let the engine and memory planner choose.
--weights-locationtcm | sram | mram | psramModel weights placement. Omit to let the engine and memory planner choose.
--core-overridecm4 | cm55Select the core library in an explicit heliaRT prebuilt distribution.
hpx freeze target hardware
OptionTypeDescription
--boardOptional[str]Target board (default: apollo510_evb)
--toolchainOptional[str]Toolchain (default: arm-none-eabi-gcc; run builds use atfe)
--cpu-clockOptional[str]CPU clock speed (board-specific, e.g. 'lp'/'hp'; run builds use lp)
hpx freeze examples
Takes the config file and the engine, target and profiling options of hpx profile, plus --backend, and writes the resolved plan with the model's hash and the toolchain and runtime identities, so any host can build the same run.
Example:
hpx freeze model.tflite --engine helia-rt --backend helia \
--toolchain atfe --cpu-clock lp --arena-size 131072 \
--arena-location sram --weights-location mram -o plan.json

Machine-readable: cli.json · freeze.md, complete and lossless.