Model Conversion and Compilation

After preparing the floating-point model, we can start the model conversion and compilation work. As we mentioned before, Horizon supports PTQ & QAT two paths for model conversion and compilation.

The whole process of model conversion compilation includes the following stages:

model_conversion_compilation

After the model has been successfully converted and compiled to generate the required hbm model, we support you to view it visually through the hb_model_info and hrt_model_exec tools with the following reference commands:

  • The hb_model_info tool

    hb_model_info -v model.hbm
  • The hrt_model_exec tool

    hrt_model_exec model_info --model_file model.hbm