The compilation termination occurs because the HEF build process requires significantly more memory than the original model size. While your 1.2GB quantized HAR file is within acceptable parameters, the compilation process (including graph transformations, packing optimizations, and temporary buffer allocation) can require several times the model size in RAM. Large backbone models like YOLOv8x can demand tens of gigabytes during peak compilation phases.
WSL2 environments are particularly susceptible to this issue as they operate with limited memory allocation from the host system and often lack adequate swap space configuration.
Diagnostic Steps
Execute the following command in a separate terminal during compilation: