Operator Compilation Separation for Smaller AI Model Files

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing AI models have large model files due to multiple operators, leading to excessive memory usage and inefficient repeated compilations when operators are updated.

Innovation Solution

Separate deployment of executable files and model files between a host and terminal device, allowing flexible management and update of operators, reducing model file size and avoiding repeated compilations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If multiple operators are compiled into a single model file, then the AI model can be executed, but the model file size becomes excessively large and occupies large memory space

Engineering Contradiction:
Improvemodel execution capabilityVSAvoidmodel file size
Core Design Contradiction:
Ease of manufactureVSWeight of stationary object

Solution Approach 1:

The patent divides the compilation process into two independent parts: operator compilation and model compilation. Operators are compiled separately into executable files, while the model is compiled into a separate model file that only contains model parameters and structure. This segmentation eliminates the need to include all operator binaries within the model file, significantly reducing model file size while maintaining execution capability through separate operator loading.

Inventive Principle:
Principle #1Segmentation

2Adaptability or versatility

If the entire AI model and operators are recompiled when one operator is updated, then the model can be updated, but a large amount of repeated compilation occurs resulting in low compilation efficiency

Engineering Contradiction:
Improveoperator update capabilityVSAvoidcompilation efficiency
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

By separating operator compilation from model compilation, the system enables independent updates of operators without triggering model recompilation. Each operator has its own executable file that can be updated independently, while the model file remains unchanged. This modular approach eliminates redundant compilation operations and significantly improves compilation efficiency.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent extracts operator executable files from the model file structure. Operators are compiled into separate executable files that are loaded dynamically during model execution. This extraction allows operator updates without affecting the model file, enabling efficient updates by only recompiling the specific operator that needs updating rather than the entire model.

Inventive Principle:
Principle #2Taking out (Extraction)

3Reliability

If operator executable files are included within the model file, then the model can be self-contained, but the model file size increases and resource waste occurs

Engineering Contradiction:
Improvemodel self-containmentVSAvoidresource waste
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

The patent extracts operator executable files from the model file, creating a separate operator loading mechanism. The model file contains only essential model data and structure, while operators are loaded from separate executable files during runtime. This extraction reduces the model file size and eliminates resource waste from storing redundant operator code, while maintaining self-containment through separate operator loading pathways.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS20250251983A1Operator Compilation Method and Apparatus
Publication Date: 2025.08.07 HUAWEI TECH CO LTD
  • US20250251983A1 patent drawing
  • US20250251983A1 patent drawing
  • US20250251983A1 patent drawing

AI summary

This application provides an operator compilation method and apparatus. The method includes: A first device obtains a first executable file, and sends the first executable file to a second device, where the first executable file is a binary file obtained through compilation of a first operator. In addition, the first device obtains a model file, and sends the model file to the second device, where the model file is a binary file obtained through compilation of an AI model, and the model file includes execution logic of the first executable file. In this way, the first device configures an executable file of an operator to be outside the model file of the AI model, so that a size of the model file of the AI model can be effectively reduced, to help update and manage the operator and the AI model.