Skip to content

Workload and training

A dataset loads the inputs, a task defines the outputs and metrics, and a model family defines which architectures CREST can explore. All three are selected explicitly.

Config field OxIOD desktop example Meaning
dataset.name oxiod Adapter that prepares the input windows
task.name odometry_regression Target definition and evaluation contract
model.family odom_tcn Model builder and search space

Set a training budget

training.nas_epochs controls training per search candidate. training.model_epochs controls final retraining. In a constrained study, training.nas_trials is the target number of feasible completed trials and training.max_total_trials caps all attempts.

Component fields and example YAML

Keys

  • dataset.name
  • dataset.params
  • task.name
  • task.params
  • model.family
  • model.params
  • model.search

For audio_dscnn, model.search: {} means "use the model-family default search surface" described in the audio model-family guide. Add keys under model.search only when you want to narrow that default surface.

Validation notes

  • dataset, task, and model are required top-level blocks
  • dataset.params is required for the built-in oxiod dataset path
Training and quantization fields

training.random_seed optionally resets Python, NumPy and TensorFlow to the same integer seed before each candidate evaluation and final fit. Acceptable values are integers in [0, 2**32). Omission preserves unseeded behavior. The seed is independent of trial number and optimizer.llm.random_seed, which controls local proposal fallback sampling. training.deterministic_ops: true additionally asks TensorFlow for deterministic operations and requires a training seed. It is process-wide and may reject unsupported kernels. Fixed seeds alone do not promise bitwise-identical GPU results.

The configured randomness policy is recorded in trial attributes and optimizer identity, with a .randomness.json sidecar for final fits. Changing the policy requires a fresh study. Other training settings are not covered by this identity check, so retain the original configuration when extending an experiment.

The training block owns the main NAS/training runtime switches.

Common keys in the shipped config

  • training.nas_epochs
  • training.model_epochs
  • training.nas_trials
  • training.max_total_trials
  • training.quantization
  • training.latency_proxy_max_flops
  • training.train
  • training.energy_aware
  • training.input_mode

Runtime behavior

  • training.nas_multiobjective_population_size sets the NSGA-II population size (default 50, minimum 2). TPE ignores this setting. Both samplers use the remaining trial budget to size each search round.
  • training.energy_aware defaults to false when omitted
  • training.quantization is required and must use the mapping shape with mode, search, and non-empty choices. The main measured-board configs search choices: [float, int8_ptq] so float32 and int8 PTQ exports can be compared on the same backend.
  • Supported quantization modes are float and int8_ptq. Enabling training.quantization.search: true samples quantization_mode from choices. This expands the effective NAS search space and usually needs a larger trial budget. Mixed float/int8_ptq studies also conflate architecture quality with quantization effects, so compare them deliberately.
  • int8_ptq export uses full-integer TensorFlow Lite conversion with int8 inputs and outputs. Representative calibration data is taken from the explicit calibration split when available, otherwise the training split, and conversion samples up to 1000 windows evenly across that split. This avoids calibrating on one contiguous prefix of an ordered time-series split.
  • HIL metrics are deployment-mode preflight metrics collected before training. Per-trial NAS scoring evaluates the trained checkpoint with host-side TFLite on the validation split. Final fixed-split reporting evaluates the selected trained TFLite model on the test split.
  • Some closeout artifact paths are Keras-derived unless the path explicitly requests TFLite evaluation.
  • training.input_mode defaults to uniform when omitted
  • training.input_mode supports dataset-agnostic uniform plus dataset-specific analysis modes including oxiod_representative, oxiod_real, urbansound8k_representative, and urbansound8k_real
  • training.max_total_trials defaults to training.nas_trials * 2 when omitted
  • training.nas_trials is the total COMPLETE trial target, or the total feasible COMPLETE target when nas.feasibility.rules is enabled. Without feasibility, penalized multi-objective COMPLETE trials also count toward that target.
  • training.max_total_trials is a total attempt cap. All stored trials, including failed, pruned, infeasible, RUNNING, and reserved WAITING trials, consume it. Constrained runs usually need a larger attempt cap than the completion target. See optimizer resume behavior before extending a study.
Fold rotation in the UrbanSound8K example

The UrbanSound8K audio example can report final results across dataset folds.

  • task.params.evaluation.protocol: fixed_split | fold_rotation
  • task.params.evaluation.fold_rotation.test_folds, defaulting to all 10 UrbanSound8K folds.
  • dataset.params.fold_rotation_cache_dir, required only when fold rotation is enabled.

The fixed dataset.params.cache_dir remains the source for NAS, HIL runs, and deployable export. Fold rotation runs after the fixed-split final checkpoint and does not export per-fold models. task.params.evaluation.protocol: fold_rotation is single-objective only. Multi-objective NAS fails during config validation. The dataset owns where fold-specific caches live. The task owns whether final reporting rotates through those folds.

Extend a component · Choose objectives

For more information, read the full config README on GitHub.