Run with hardware
Prepare the hardware
Install tools on the machine connected to the board. The hardware guide covers board packages, vendor tools, measurement requirements, and troubleshooting. The firmware guide covers target and harness firmware.
For Arduino targets, bootstrap the CLI and reactivate the environment.
make arduino-setup
conda deactivate
conda activate crest
arduino-cli --config-file tools/arduino-cli.yaml version
Install the board core specified by the hardware guide. For Nano 33 BLE.
arduino-cli core install arduino:mbed_nano --config-file tools/arduino-cli.yaml
For STM32, first install the required host tools, including ST Edge AI for model deployment, then bootstrap the workspace.
make stm32-setup
Run the server and client
Use matching configuration settings on the training host and board-connected host. This example uses the STM32 config. Substitute your board's config.
1. Start the HIL server on the device host
conda activate crest
python src/hil_server.py --config src/config/nas_config_stm32.yaml
2. Connect the hosts
If training runs on another machine, open a reverse SSH tunnel from the device host to the training host and leave it open.
ssh -R "6001:127.0.0.1:6001" user@gpu-server
Replace user@gpu-server with your training-host login.
The default connection uses 127.0.0.1:6001.
Skip the tunnel when the client and server run on the same machine.
3. Run the client on the training host
conda activate crest
python src/nas_model_client.py \
--config src/config/nas_config_stm32.yaml \
--smoke-test 3 --study-name smoke_run
For a full run, omit --smoke-test and use a fresh study name.
Native Optuna defaults to multivariate TPE for both single-objective and multi-objective searches. Set optimizer.sampler: nsga2 in the experiment YAML to use NSGA-II.
Start a new study when moving a v0.2.0 campaign from NSGA-II to TPE so the archived study retains its original sampler identity.
For LLM generation, follow the LLM guide for configuration and credentials.
4. Outputs
Results use the configured outputs.models_dir and outputs.candidate_dir.
Typical study files include optuna.db, trials.csv, train_history.json, summary.json, and exported model artifacts.
Smoke runs use optuna_smoke_test.db and append the device name to the supplied study name.
LLM runs also write request and proposal records under llm_optimizer/.
For more information, read the full getting-started guide on GitHub.