Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.12 KB

File metadata and controls

32 lines (25 loc) · 1.12 KB

Bundle Format

The "bundle format" is a model packaging format that includes chip-specific compiled artifacts.

The bundle format can be in one of two structures:

  • a directory with the necessary files in it
  • a tar archive containing the files with the extension .bundle

Directory Structure

The directory structure for a bundle is as follows:

├── info.json
├── metadata.json
├── module.onnx
├── nodeList.json
├── bundles/
│   ├── functionA_xxxxx/
│   │   ├── compiled_bundle.bin
│   │   └── kernels.elf
│   ├── functionB_xxxxx/
│   │   ├── compiled_bundle.bin
│   │   └── kernels.elf
  • info.json: key information about the bundle. Includes references to the functions, the name of the model file and the name of the nodelist, as well as inputs and outputs.
  • metadata.json: metadata about the model, such as input files, creation time, compilation tool version.
  • nodeList.json: a list of the nodes in the model.
  • bundles/: a directory containing subdirectories for each function, each with its own compiled bundle and kernel files.