Skip to content

Set up CREST

Requirements

  • Git, Conda, and Make. The supplied environment installs Python 3.11 and the project's Python dependencies.
  • Prepare data for the workload you choose. The built-in odometry example uses OxIOD, and the audio classification example uses UrbanSound8K. For another dataset, see the dataset adapter guide.
  • For hardware evaluation, a supported target board and its build/programming tools. Energy measurements also need the CREST harness and INA228 monitor.
  • A GPU is optional. The hardware-free example below can run on a CPU.
  • Provider credentials are needed only for live LLM candidate generation.

Environment

git clone --recurse-submodules https://github.com/nesl/crest.git
cd crest
conda env create -f environment.yml -n crest
conda activate crest
make install

For an existing clone without submodules, run git submodule update --init --recursive. The base environment supports CPU execution. On a compatible NVIDIA GPU host, install the TensorFlow CUDA dependencies and verify GPU detection.

if tf_version=$(python -c 'from importlib.metadata import version; print(version("tensorflow"))' 2>/dev/null); then
  python -m pip install "tensorflow[and-cuda]==${tf_version}" &&
    python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
else
  echo "TensorFlow is missing from this Python environment. Create and activate the crest environment as shown above." >&2
fi

Repeat the CUDA installation after recreating the environment. If nvidia-smi sees the GPU but TensorFlow returns [], check that the CUDA extra is installed.

Prepare data for an example workload

For the built-in odometry example, obtain the OxIOD Complete Dataset archive using the dataset instructions, then prepare it from the repository root.

make prepare-dataset OXIOD_ZIP=/path/to/OxIOD.zip

For the UrbanSound8K audio classification example, follow the dataset guide to obtain the audio and prepare cached log-mel features.

make prepare-audio-dataset

Download options, dataset terms, paths, and fold-rotation caches are documented in the dataset guide.

Run a first study

For more information, read the full project README on GitHub and the full getting-started guide on GitHub.