Algorithm model operation management and control method and system of backbone open architecture
By adopting an open framework conversion and operation management and control system in the algorithm model framework, the problem of model compatibility and operational stability between different platforms is solved, efficient deployment and flexible optimization are achieved, personalized needs are met, and development costs are reduced.
Patent Information
- Application Number
- CN202410609467.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-30
AI Technical Summary
Existing algorithm model frameworks and tools have deficiencies in model transplantation compatibility, operation control, and flexibility, resulting in difficulty in transplanting models between different platforms and environments, runtime anomalies, high security risks, and difficulty in meeting personalized needs.
An open framework is used to convert, optimize and package algorithm models, standardized interfaces and container technology are used to manage computing resources, real-time monitoring, exception handling and security are achieved through the operation management and control system, and flexible configuration and optimization are performed based on feedback information.
It improves the versatility and compatibility of the model, ensures the stability and security of operation, meets the personalized needs of different scenarios, and reduces development and maintenance costs.
Abstract
Description
Technical Field
[0001] The present invention relates to an algorithm model operation control method and an algorithm model operation control system implemented based on the method. Background Art
[0002] With the development of artificial intelligence technology, algorithm models have been widely used in various fields, such as image recognition, speech recognition, natural language processing, etc. In order to achieve rapid development and deployment of algorithm models, some specialized frameworks and tools are needed, such as TensorFlow, PyTorch, ONNX, etc. These frameworks and tools can provide some basic functions, such as model building, training, testing, conversion, optimization, etc.
[0003] However, existing frameworks and tools also have some problems and limitations, such as: 1) There is a lack of unified standards and interfaces between different frameworks and tools, resulting in poor portability and compatibility of models between different platforms and environments; 2) Existing frameworks and tools often only focus on the functions and performance of the model itself, but ignore the management and monitoring of the model during operation, which may lead to risks such as anomalies, errors or attacks during model operation; 3) Existing frameworks and tools often lack flexibility and scalability, making it difficult to meet the personalized needs and customized development of different users and scenarios. Summary of the invention
[0004] The technical problem to be solved by the present invention is: there are some problems and limitations in the existing frameworks and tools.
[0005] In order to solve the above problems, the technical solution of the present invention is to provide an algorithm model operation control method based on an open framework, which is characterized by comprising the following steps:
[0006] Step 1: Convert the algorithm model into an open framework format and optimize and compress it to adapt to different platforms and environments;
[0007] Step 2: Package the converted algorithm model into an SDK or Service. Select appropriate hardware and software environments according to different deployment scenarios, and optimize and deploy the algorithm model based on the characteristics of the target platform and environment.
[0008] Step 3: During the operation of the algorithm model:
[0009] Open up the basic capabilities of devices through standardized interfaces, and effectively isolate and manage the computing resources of devices through container technology;
[0010] Achieve high-performance reasoning capabilities of algorithm models through efficient calling interfaces and image acceleration operators;
[0011] The algorithm model is monitored, exception handling and security assurance is performed through the operation control system. The stability and security of the algorithm model operation are ensured through real-time monitoring, exception handling and security assurance mechanisms.
[0012] According to the feedback information during the operation of the algorithm model, the algorithm model is configured, adjusted and optimized through the operation control system. Through flexible configuration, dynamic adjustment and adaptive optimization mechanism, parameter adjustment, performance optimization and effect evaluation can be achieved during the operation of the algorithm model.
[0013] Preferably, in step 1, the open framework is Pytorch or Tensorflow.
[0014] Preferably, in step 3, the basic capabilities include image processing, encoding and decoding, storage, and transmission.
[0015] Another technical solution of the present invention is to provide an algorithm model operation control system based on an open framework, which is used to implement the above-mentioned algorithm model operation control method, including:
[0016] The conversion module is used to convert the algorithm model into an open framework format and perform optimization and compression;
[0017] The optimization module is used to package the converted algorithm model into an SDK or Service, optimize the algorithm model according to the characteristics of the target platform and environment, and deploy the algorithm model on the appropriate hardware device and software environment;
[0018] The monitoring module is used to monitor, handle exceptions and ensure safety of the algorithm model during its operation;
[0019] The configuration module is used to configure, adjust and optimize the algorithm model according to the feedback information during the operation of the algorithm model.
[0020] Compared with the prior art, the present invention can: realize efficient conversion, optimization and deployment of algorithm models between different platforms and environments; realize real-time monitoring, exception handling and security assurance during the operation of the algorithm model; and realize flexible configuration, dynamic adjustment and adaptive optimization during the operation of the algorithm model. Specifically, compared with the prior art solutions, the present invention has the following beneficial effects:
[0021] 1) By using open frameworks such as Pytorch or Tensorflow, efficient conversion, optimization and deployment of algorithm models between different platforms and environments are achieved, which improves the versatility and compatibility of algorithm models and reduces the cost and difficulty of development and maintenance;
[0022] 2) By using operation control methods and systems, real-time monitoring, exception handling and security assurance are achieved during the operation of the algorithm model, which improves the stability and reliability of the algorithm model and prevents the risk of errors or attacks on the algorithm model;
[0023] 3) By using operation control methods and systems, flexible configuration, dynamic adjustment and adaptive optimization of the algorithm model can be achieved during its operation, which improves the flexibility and adaptability of the algorithm model and meets the personalized needs and customized development of different users and scenarios. DETAILED DESCRIPTION
[0024] The present invention is implemented based on the following principles:
[0025] 1) An algorithm model conversion module based on an open framework, responsible for converting the algorithm model into a unified format and performing optimization and compression;
[0026] 2) The algorithm model packaging module based on the open framework is responsible for packaging the converted algorithm model into SDK or Service and selecting the appropriate hardware equipment and software environment;
[0027] 3) An algorithm model operation control system based on an open framework is responsible for providing various basic capabilities of the equipment, high-performance reasoning capabilities, real-time monitoring, exception handling, security assurance, flexible configuration, dynamic adjustment and adaptive optimization functions during operation.
[0028] Based on the above principles, one aspect of this embodiment is to provide an algorithm model operation management and control method based on an open framework, comprising the following steps:
[0029] Step 1: Convert the algorithm model into the format of an open framework (such as Pytorch or Tensorflow), and optimize and compress it to adapt to different platforms and environments.
[0030] Step 2: Package the converted algorithm model into an SDK or Service. Select appropriate hardware devices and software environments (such as IPC / NVR, GPU / CPU / NPU, etc.) according to different deployment scenarios. Optimize and deploy the algorithm model according to the characteristics of the target platform and environment.
[0031] Step 3: During the operation of the algorithm model:
[0032] The basic capabilities of the device, such as image processing, encoding and decoding, storage, and transmission, are exposed through standardized interfaces, and the computing resources of the device are effectively isolated and managed through container technology.
[0033] Achieve high-performance reasoning capabilities of algorithm models through efficient calling interfaces and image acceleration operators;
[0034] The algorithm model is monitored, exception handling and security assurance is performed through the operation control system. The stability and security of the algorithm model operation are ensured through real-time monitoring, exception handling and security assurance mechanisms.
[0035] According to the feedback information during the operation of the algorithm model, the algorithm model is configured, adjusted and optimized through the operation control system. Through flexible configuration, dynamic adjustment and adaptive optimization mechanism, parameter adjustment, performance optimization and effect evaluation can be achieved during the operation of the algorithm model.
[0036] Another aspect of this embodiment is to provide an algorithm model operation management and control system based on an open framework, including:
[0037] The conversion module is used to convert the algorithm model into the format of an open framework (such as Pytorch or Tensorflow, etc.), and optimize and compress it to adapt to different platforms and environments.
[0038] The optimization module is used to package the converted algorithm model into an SDK or Service, optimize the algorithm model according to the characteristics of the target platform and environment, and deploy the algorithm model on the appropriate hardware device and software environment.
[0039] The monitoring module is used to monitor, handle exceptions and ensure security of the algorithm model during its operation.
[0040] The configuration module is used to configure, adjust and optimize the algorithm model according to the feedback information during the operation of the algorithm model.
Claims
1. A method for controlling the operation of an algorithm model based on an open framework, characterized in that: The following steps are involved: Step 1: Convert the algorithm model into an open framework format and optimize and compress it to adapt to different platforms and environments; Step 2: Package the converted algorithm model into an SDK or Service. Select appropriate hardware and software environments according to different deployment scenarios, and optimize and deploy the algorithm model based on the characteristics of the target platform and environment. Step 3: During the operation of the algorithm model: Open up the basic capabilities of devices through standardized interfaces, and effectively isolate and manage the computing resources of devices through container technology; Achieve high-performance reasoning capabilities of algorithm models through efficient calling interfaces and image acceleration operators; The algorithm model is monitored, exception handling and security assurance is performed through the operation control system. The stability and security of the algorithm model operation are ensured through real-time monitoring, exception handling and security assurance mechanisms. According to the feedback information during the operation of the algorithm model, the algorithm model is configured, adjusted and optimized through the operation control system. Through flexible configuration, dynamic adjustment and adaptive optimization mechanism, parameter adjustment, performance optimization and effect evaluation can be achieved during the operation of the algorithm model.
2. The algorithm model operation control method based on an open framework as claimed in claim 1, characterized in that: In step 1, the open framework is Pytorch or Tensorflow.
3. The algorithm model operation control method based on an open framework as claimed in claim 1, characterized in that: In step 3, the basic capabilities include image processing, encoding and decoding, storage, and transmission.
4. An algorithm model operation control system based on an open framework, used to implement the algorithm model operation control method according to claim 1, comprising: The conversion module is used to convert the algorithm model into an open framework format and perform optimization and compression; The optimization module is used to package the converted algorithm model into an SDK or Service, optimize the algorithm model according to the characteristics of the target platform and environment, and deploy the algorithm model on the appropriate hardware device and software environment; The monitoring module is used to monitor, handle exceptions and ensure safety of the algorithm model during its operation; The configuration module is used to configure, adjust and optimize the algorithm model according to the feedback information during the operation of the algorithm model.
