Buddy Codesign is a hardware–software co-design platform for AI workloads, built around the Buddy compiler ecosystem. It brings together model preparation, compiler transformations, runtime execution, and hardware evaluation to explore how AI models map onto different computing architectures. The goal is to connect model requirements with hardware capabilities throughout the development process. Quantization, data layout, computation partitioning, memory management, and execution scheduling are developed together with the target hardware, using execution results and traces to guide further refinement.
1. Environment Dependencies
We use Nix Flake as our main build system. If you have not installed nix, install it following the guide, and enable flake following the wiki. Or you can try the installer provided by Determinate Systems, which enables flake by default.
2. Initialize Environment
cd buddy-codesign
./scripts/nix/build-all.shAfter the first time installation, you can enter the environment anytime by running:
nix developThen, you can start running the examples below.