Skip to content
heliaAOT
API Reference
HELIA HUB

Configuration

A conversion is described by the configuration model below. Write settings in a YAML file passed to --path; every setting except result_views and the reserved settings also has a CLI flag, such as --model.path. A structured setting, such as --operators, --transforms, --memory.tensors, --memory.constraints or --test.state-feedback, takes JSON on the command line, one value per list entry; YAML is easier to read and review for those. Explicit CLI values override matching YAML settings; see the configuration guide for precedence and validation.

The tables are generated from the configuration model. Use the configuration guide for complete examples, precedence and rule matching.

The same two settings, first as a configuration file and then as flags:

model:
path: model.tflite
module:
type: zephyr
Terminal window
helia-aot convert --model.path model.tflite --module.type zephyr
Setting Type Default Constraints Command line Description
path Path — — --path Path to yaml configuration
model ModelArgs the defaults below — configuration file only Model configuration
module ModuleArgs the defaults below — configuration file only Module configuration
test TestArgs the defaults below — configuration file only Test configuration
transforms list of TransformSpec the defaults below — --transforms Transforms configuration
memory MemoryArgs the defaults below — configuration file only Memory configuration
platform PlatformArgs the defaults below — configuration file only Target platform configuration
operators list of OperatorRuleset the defaults below — --operators Operator attributes and optimization knob overrides
documentation DocumentationArgs the defaults below — configuration file only Documentation configuration
optimization OptimizationArgs the defaults below — configuration file only Optimization goal, approximation gate and knobs
verbose int 1 ≥ 0; ≤ 3 --verbose Verbosity level: 0 errors only, 1 stage milestones, 2 debug details, 3 debug details with each AIR operator’s tensors and options
force bool false — --force / --no-force Force conversion even if output exists
keep_work_dir bool false — --keep-work-dir / --no-keep-work-dir Keep the temporary work directory and log its path
result_views bool false — configuration file only Fill the operators, tensors, regions and placements views of the ConversionResult that AotConverter.convert() returns
log_file Path — — --log-file Optional log file path
Setting Type Default Constraints Command line Description
model.path Path model.tflite — --model.path Path to target model file
model.preparation PreparationArgs | CustomPreparationArgs the defaults below — --model.preparation Opt-in accelerator preparation or verified record replay
model.subgraph int 0 ≥ 0 --model.subgraph Subgraph index
model.type ModelType — one of tflite, litert --model.type Model file format: tflite or litert; without it, the file extension decides
model.name str model — --model.name Model name
model.description str — — --model.description Description of the model
model.version str — — --model.version Model version; without it, the LiteRT schema version the model file records
Setting Type Default Constraints Command line Description
model.preparation.backend Literal['ethos-u'] — required configuration file only Built-in Ethos-U preparation backend
model.preparation.target str — min_length 1; required configuration file only Modeled accelerator identity
model.preparation.family str — required configuration file only Modeled accelerator family, such as ethos-u55
model.preparation.macs int — > 0; required configuration file only Modeled accelerator MACs per cycle
model.preparation.compile EthosCompileArgs the defaults below — configuration file only Compile an original model. Omit to inspect a retained preparation record at model.path.
Setting Type Default Constraints Command line Description
model.preparation.compile.soc Path — required configuration file only Compiler SoC definition YAML
model.preparation.compile.mode str — min_length 1; required configuration file only Operating mode in the compiler SoC
model.preparation.compile.const str — min_length 1; required configuration file only Compiler memory for constants
model.preparation.compile.arena str — min_length 1; required configuration file only Compiler memory for activations
model.preparation.compile.cache str — min_length 1; required configuration file only Compiler memory for the cache
model.preparation.compile.memory_mode str — min_length 1; required configuration file only Vela memory mode for this placement
model.preparation.compile.arena_cache_size int 0 ≥ 0; strict true configuration file only Requested Vela arena-cache size in bytes
model.preparation.compile.policy_id str — min_length 1; required configuration file only Identity of the modeled compiler policy
model.preparation.compile.evidence_root Path — required configuration file only Directory for fresh retained preparation runs
model.preparation.compile.fences helia_aot.cli.defines.EthosExplicitFenceArgs | helia_aot.cli.defines.EthosBudgetFenceArgs | None the defaults below — configuration file only Split an original model at explicit boundaries or by an estimated-cycle budget
Setting Type Default Constraints Command line Description
model.preparation.compile.fences.boundaries tuple[Annotated[int, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True), Ge(ge=0)])], ...] — required configuration file only Zero-based original operator indices after which to split the command stream
Setting Type Default Constraints Command line Description
model.preparation.compile.fences.cycle_budget int — > 0; strict true; required configuration file only Estimated cycles per command stream
model.preparation.compile.fences.min_coverage float 1 ≥ 0; ≤ 1; strict true configuration file only Minimum fraction of estimated cycles attributed to original operators
Setting Type Default Constraints Command line Description
model.preparation.backend str — min_length 1; required configuration file only Custom preparation backend name
model.preparation.options dict[str, Any] {} — configuration file only Settings interpreted by this backend
Setting Type Default Constraints Command line Description
module.path Path output.zip — --module.path Output path for the generated module. Use a directory for an unpacked module, a ‘.zip’ suffix for a generic zip archive, or a ‘.pack’ suffix for an Open-CMSIS-Pack archive (requires module.type=cmsis_pack).
module.type ModuleType cmake one of zephyr, cmake, nsx, cmsis_pack --module.type Module type: cmake, zephyr, nsx or cmsis_pack. cmsis_pack is experimental.
module.name str helia_aot_nn pattern ^[A-Za-z_][A-Za-z0-9_-]*$ --module.name Module name
module.prefix str aot pattern ^[A-Za-z_][A-Za-z0-9_]*$ --module.prefix Prefix added to sources for unique namespace
module.schedule ScheduleMode table one of table, static --module.schedule Operator dispatch shape in the generated model: ‘table’ (default) keeps the runtime function-pointer table and per-node callback seam; ‘static’ emits straight-line direct calls (no table, no loop, no indirect dispatch).
module.zephyr_dtcm_bytes int — ≥ 0 --module.zephyr-dtcm-bytes Size in bytes of an application-provided Apollo4 Plus Zephyr DTCM linker region, before platform.reserve and memory.constraints. Omit to offer the stock EVB layout snippet.
module.transfer_provider TransferProviderMode auto one of auto, none --module.transfer-provider Experimental. The transfer provider emitted beside a module with ‘dma’ units: ‘auto’ emits the module type’s provider when the type has one (‘nsx’: on nsx-psram’s asynchronous read; ‘cmake’, ‘cmsis_pack’ and ‘zephyr’: none today), ‘none’ emits no provider for an application that binds its own. No effect without ‘dma’ units.
Setting Type Default Constraints Command line Description
test.enabled bool false — --test.enabled / --no-test.enabled Include test case
test.tolerance float 1 allow_inf_nan false; ≥ 0 --test.tolerance Test tolerance
test.skip_verification bool false — --test.skip-verification / --no-test.skip-verification Skip runtime output verification
test.golden_data Path — — --test.golden-data Golden input/output npz file
test.num_iterations int 1 ≥ 1; ≤ 2147483647 --test.num-iterations Number of times to run the same stimulus through the model
test.state_feedback list[tuple[int, int]] [] — --test.state-feedback (output_index, input_index) pairs copied back between iterations for streaming recurrent-state carry
Setting Type Default Constraints Command line Description
transforms[].name str * — configuration file only Name of the transform
transforms[].enabled bool true — configuration file only Whether the transform is enabled
transforms[].options dict[str, float | int | str | bool | list[float | int | str | bool] | dict[str, float | int | str | bool]] {} — configuration file only Additional options for the transform
Setting Type Default Constraints Command line Description
memory.planner MemoryPlannerType hill_climb one of greedy, greedy_by_size, hill_climb --memory.planner Memory planner strategy. greedy_by_size is experimental.
memory.planner_options dict[str, Any] {} — --memory.planner-options Planner tunables as JSON, validated against the selected planner’s option schema (hill_climb: iterations, seed, max_stall_iterations)
memory.constraints list of MemoryConstraint the defaults below — --memory.constraints Memory constraints (ordered by preference)
memory.tensors list of AttributeRuleset the defaults below — --memory.tensors Tensor attributes
memory.stream_pool StreamPoolArgs the defaults below — --memory.stream-pool Experimental. The stream pool that constants with residency stream are copied into: its bytes, and optionally its memory (dtcm, the default and the only accepted value). Its alignment is derived and stated as <prefix>_arena_pool_dtcm_alignment and the report’s stream_pool.alignment. Reserved in the memory’s budget before planning and emitted as a region the application binds in both arena modes
memory.allocate_arenas bool true — --memory.allocate-arenas / --no-memory.allocate-arenas If true, the module will use internal, statically allocated arenas. If false, the caller must bind every region via <prefix>_bind_arena() / <prefix>_bind_arenas() before model_init.
memory.dump_residency_json bool false — --memory.dump-residency-json / --no-memory.dump-residency-json If true, write a machine-readable residency report (<prefix>_residency.json) alongside the emitted module. Mirrors the verbose log summary as JSON for tooling that needs to introspect arena layout, staged-vs-cold residency, and per-tensor placement post-planning.
Setting Type Default Constraints Command line Description
memory.constraints[].name MemoryType — one of mram, sram, dtcm, itcm, dram, psram, hblram; required configuration file only Memory type (e.g., DTCM, ITCM)
memory.constraints[].max_size int — — configuration file only Maximum size in bytes, or None for no limit
memory.constraints[].arena_alignment int — — configuration file only Optional per-arena alignment floor in bytes. When set, applied to both the arena base symbol and every slot. When None, only the 16-byte implementation floor applies to the base; per-slot alignment is driven by platform / dtype / tensor hints.
Setting Type Default Constraints Command line Description
memory.tensors[].type str * — configuration file only Entity type (e.g. CONV_2D) or * for all
memory.tensors[].id str | list[str] | None — — configuration file only Entity identifier(s)
memory.tensors[].attributes dict[str, float | int | str | bool] {} — configuration file only Entity attributes
Setting Type Default Constraints Command line Description
memory.stream_pool.memory MemoryType dtcm one of mram, sram, dtcm, itcm, dram, psram, hblram configuration file only The memory the pool lives in: dtcm
memory.stream_pool.bytes int — > 0; required configuration file only Pool size in bytes
Setting Type Default Constraints Command line Description
platform.name str apollo510_evb — --platform.name Target platform name; with platform.facts catalog, a helia-platforms board, part, SoC, implementation or composition id, or an alias
platform.cm55_during_npu Cm55DuringNpu undeclared one of awake, may_sleep, undeclared --platform.cm55-during-npu Application guarantee for the CM55 during Atomiq NPU work, through driver completion.
platform.facts PlatformFacts registered one of registered, catalog --platform.facts Experimental. Where the configuration comes from: registered (the registry entry or the custom fields) or catalog (derived from the helia-platforms catalog target platform.name selects)
platform.boot str — — --platform.boot Experimental. With platform.facts catalog: a boot configuration the target defines, such as sbl; the target’s default when unset
platform.addons list[str] [] — --platform.addons Experimental. With platform.facts catalog: helia-platforms add-on ids fitted to a board target
platform.reserve dict[helia_aot.platforms.defines.MemoryType, int] {} — --platform.reserve Experimental. With platform.facts catalog: bytes per memory reserved for the application, subtracted once from the derived size
platform.cpu str — — --platform.cpu CPU core type (e.g., cortex-m55); refused with platform.facts catalog, which gives the core
platform.speeds list[int] [] — --platform.speeds Deprecated since 0.32.0, removed in the next major release: remove it; no conversion reads it. Declared clock speeds in MHz; refused with platform.facts catalog
platform.memories dict[helia_aot.platforms.defines.MemoryType, int] {} — --platform.memories Memory sizes in bytes; refused with platform.facts catalog, where platform.reserve lowers a budget
platform.capabilities list[helia_aot.platforms.defines.SocCapability] [] — --platform.capabilities List of SoC capabilities; with platform.facts catalog, a restriction of the derived set, where an empty list is no restriction
platform.preferred_memory_order list[helia_aot.platforms.defines.MemoryType] [] — --platform.preferred-memory-order Preferred memory order for allocations; refused with platform.facts catalog, where memory.constraints orders placement
platform.min_alignment int — — --platform.min-alignment Minimum alignment requirement in bytes; with platform.facts catalog, it replaces the derived floor
platform.overlay Path — — --platform.overlay helia-platforms overlay file that defines platform.name, or with platform.facts catalog adds entries to the catalog; relative to the configuration file that sets it, or to the working directory for the flag
Setting Type Default Constraints Command line Description
operators[].type str * — configuration file only Entity type (e.g. CONV_2D) or * for all
operators[].id str | list[str] | None — — configuration file only Entity identifier(s)
operators[].attributes dict[str, float | int | str | bool] {} — configuration file only Entity attributes
operators[].optimization OperatorOptimization the defaults below — configuration file only Optimization knob overrides for the matched operators
Setting Type Default Constraints Command line Description
operators[].optimization.accumulation Accumulation — one of auto, precise, fast configuration file only Override of optimization.accumulation
operators[].optimization.kernel KernelChoice — one of auto, specialized, generic configuration file only Override of optimization.kernel
Setting Type Default Constraints Command line Description
documentation.html bool false — --documentation.html / --no-documentation.html Experimental. Generate an offline HTML model report
Setting Type Default Constraints Command line Description
optimization.goal OptimizationGoal balanced one of latency, balanced, size, accuracy --optimization.goal What auto knob values favor: latency, balanced (today’s defaults), size or accuracy
optimization.allow_approximate bool false — --optimization.allow-approximate / --no-optimization.allow-approximate Allow auto knob values that change numerics relative to the knob’s default (e.g. fast accumulation)
optimization.accumulation Accumulation auto one of auto, precise, fast --optimization.accumulation FP16 fully connected and depthwise accumulation: precise (four-tap FP32 folding on eligible packed fully connected layers, otherwise standard; the default depthwise entry), fast (legacy fully connected routing; the FP16-lane depthwise entry; approximate where alternatives apply) or auto; FP16 convolution packs at every setting
optimization.kernel KernelChoice auto one of auto, specialized, generic --optimization.kernel Int8 convolution, depthwise, fully connected and bilinear resize entry: specialized (shape-specialized ns-cmsis-nn direct entries where they apply), generic (the general entries, fewer kernels linked) or auto; both are exact
optimization.budget dict[str, float] — — configuration file only Reserved: not implemented yet. Constraints for the optimizer, e.g. accuracy_drop or tcm_bytes
optimization.plan Path — — --optimization.plan Experimental. Path to a plan whose schedule and declared placement, operator knob and direct-entry choices the conversion applies