Multimodal model deployment system, method, electronic device and readable storage medium

Through the multi-modal model deployment system, the model management module and the multi-module structure combination module are used to combine multi-modal models of different structures, and the deployment efficiency is improved through the unified deployment scheme and the model acceleration module, which solves the problem of inflexible deployment of multi-modal models. and low efficiency issues.

CN118095413BActive Publication Date: 2024-09-06DARK MATTER ARTIFICIAL INTELLIGENT (BEIJING) TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410232871.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-01
Publication Date
2024-09-06
Estimated Expiration
2044-03-01

AI Technical Summary

Technical Problem

The deployment of multi-modal models has problems such as inflexibility and low deployment efficiency. Especially when the model structure continues to increase and computing resources are limited, it is impossible to quickly switch to load models.

Method used

Provides a multi-modal model deployment system, including a model management module, a multi-module structure combination module and a model deployment module. By pre-storing multiple model substructures and target directed acyclic graphs, it can combine different structures according to deployment requirements. Target multi-modal model structure and deploy it using a unified deployment scheme, supporting model acceleration and memory storage to improve efficiency.

Benefits of technology

It improves the deployment flexibility and efficiency of multi-modal models, reduces engineering costs, supports automated model acceleration, and saves model loading time during deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118095413B
    Figure CN118095413B
Patent Text Reader

Abstract

The present application provides a deployment system, method, electronic device and readable storage medium for a multimodal model. When a model deployment requirement is received, the model management module determines at least one target model type substructure corresponding to the model deployment requirement from a plurality of pre-stored model substructures, and sends at least one target model type substructure and the stored target directed acyclic graph to a multi-module structure combination module; after receiving at least one target model type substructure, the multi-module structure combination module combines at least one target model type substructure to generate a target multimodal model structure, and then sends the target multimodal model structure to the model deployment module, which deploys the target multimodal model according to the underlying basic configuration information and the target multimodal model structure. In this way, the flexibility and efficiency of the deployment of the multimodal model can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a deployment system, method, electronic device, and readable storage medium of a multimodal model. Background Art

[0002] Multimodal model tasks involve a variety of deep learning technologies, such as speech recognition, natural language processing, computer vision, etc., so when processing related tasks, multimodal models will also input data of multiple modalities, such as speech, text, images, etc. The output of multimodal models is generally text-based, but with the development of science and technology, the output of multimodal models is also developing in the direction of multiple output methods. Since the deployment plan of the model requires different deployment settings for different structures, it is not flexible enough. Therefore, the deployment of multimodal models also has the problems of inflexibility and low deployment efficiency. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a deployment system, method, electronic device and readable storage medium for a multimodal model. When a model deployment requirement is received, the model management module of the multimodal model deployment system stores multiple model substructures, and then combines target multimodal model structures of different structures according to the multi-module structure combination module, and deploys them through the model deployment module. Multimodal models of different structural combinations can be deployed using a unified deployment plan based on the deployment system, which helps to improve the flexibility and efficiency of the deployment of the multimodal model.

[0004] In a first aspect, an embodiment of the present application provides a deployment system for a multimodal model, the deployment system comprising a model management module, a multi-module structure combination module, and a model deployment module;

[0005] The model management module is used to determine at least one target model type substructure to be deployed from a plurality of pre-stored model substructures according to model deployment requirements; and send the at least one target model type substructure and a target directed acyclic graph to the multi-module structure combination module; the target directed acyclic graph records the upstream and downstream relationships of the model type substructures;

[0006] The multi-module structure combination module is used to combine the at least one target model type substructure according to the upstream and downstream relationship of the model type substructure in the target directed acyclic graph, or a preset model structure, to obtain a target multimodal model structure; and send the target multimodal model structure to the model deployment module;

[0007] The model deployment module is used to deploy the target multimodal model based on the underlying basic configuration information and the target multimodal model structure.

[0008] In a possible implementation, the model management module is further used to:

[0009] The category to which the model structure to be registered belongs is determined, and the model structure to be registered is stored in a database table corresponding to the corresponding category to obtain a plurality of pre-stored model substructures.

[0010] In a possible implementation, three database tables are associated with each category type, which are respectively used to store the model structure name information of the model structure to be registered, the input and output dimension information of the model structure to be registered, the size information of the model structure to be registered, and the upstream and downstream relationships of the model structure to be registered.

[0011] In a possible implementation, the categories include encoder categories, adapter categories, complex large model categories, and decoder categories; the model management module is used to construct the target directed acyclic graph through the following steps:

[0012] Determine the category to which each pre-stored model substructure belongs and the input and output dimensions corresponding to each model substructure;

[0013] If the model substructure belongs to the adapter type or the complex large model type, determine the target model category name that is consistent with the input and output dimensions of the model substructure according to the input and output dimensions of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to the preset substructure upstream and downstream relationship to obtain the target directed acyclic graph;

[0014] If the model substructure belongs to the encoder type, determine the target model category name that matches the output dimension of the model substructure according to the output dimension of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to a preset substructure upstream and downstream relationship to obtain the target directed acyclic graph;

[0015] If the model substructure belongs to the decoder type, determine the target model category name that matches the input dimension of the model substructure based on the input dimension of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to the preset substructure upstream and downstream relationship to obtain the target directed acyclic graph.

[0016] In a possible implementation, the preset substructure upstream and downstream relationship is that the encoder type is upstream of the adapter type, the adapter type is upstream of the complex large model type, and the complex large model type is upstream of the decoder type.

[0017] In a possible implementation, the deployment system further includes a model acceleration module, and the model acceleration module is used to:

[0018] Detecting whether the target multimodal model structure meets the model acceleration condition;

[0019] If the target multimodal model structure meets the model acceleration condition, determining a target model type substructure that needs to be accelerated in the target multimodal model structure, and a target structure name of the target model type substructure;

[0020] Detecting whether the target structure name is included in a pre-stored model acceleration table;

[0021] If the pre-stored model acceleration table contains the target structure name, the target model type substructure is accelerated.

[0022] In a possible implementation, the deployment system further includes a model memory storage module, and the model memory storage module is used to:

[0023] A plurality of to-be-deployed model substructures are stored in the memory in advance; the to-be-deployed model substructures are model substructures whose usage probabilities are greater than a preset usage probability threshold.

[0024] In a possible implementation, the model deployment module is further used to:

[0025] Detecting whether there is a target model type substructure consistent with the to-be-deployed model substructure in each target model type substructure in the target multimodal model structure;

[0026] Loading a target model type substructure consistent with the model substructure to be deployed from the memory and model deployment;

[0027] The target model type substructure that is inconsistent with the model substructure to be deployed is loaded from the disk and the model is deployed.

[0028] In a possible implementation, the model deployment module is further used to:

[0029] For each target model type substructure in the target multimodal model structure, an internal interface is set to obtain input and output information of the corresponding target model type substructure through the internal interface, and adjust the target model type substructure based on the input and output information.

[0030] In a possible implementation, the model deployment module is further used to:

[0031] An external interface of the target multimodal model is set to provide a prediction function of the target multimodal model through the external interface.

[0032] In a second aspect, an embodiment of the present application further provides a deployment of a multimodal model, which is applied to the deployment system described in any one of the first aspects, and the deployment method includes:

[0033] Control the model management module to determine at least one target model type substructure to be deployed from a plurality of pre-stored model substructures according to model deployment requirements; and send the at least one target model type substructure and a target directed acyclic graph to the multi-module structure combination module; the target directed acyclic graph records the upstream and downstream relationships of the model type substructures;

[0034] Controlling the multi-module structure combination module to combine the at least one target model type substructure according to the upstream and downstream relationship of the model type substructure in the target directed acyclic graph, or a preset model structure, to obtain a target multimodal model structure; and sending the target multimodal model structure to the model deployment module;

[0035] The model deployment module is controlled to deploy the target multimodal model based on the underlying basic configuration information and the target multimodal model structure.

[0036] In the third aspect, an embodiment of the present application also provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the multimodal model deployment method as described in the second aspect.

[0037] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the multimodal model deployment method as described in the second aspect are executed.

[0038] The deployment system, method, electronic device and readable storage medium of the multimodal model provided by the embodiment of the present application, when receiving the model deployment requirement, the model management module determines at least one target model type substructure corresponding to the model deployment requirement from the pre-stored multiple model substructures, and sends at least one target model type substructure and the stored target directed acyclic graph to the multi-module structure combination module; after receiving at least one target model type substructure, the multi-module structure combination module combines at least one target model type substructure to generate a target multimodal model structure, and then sends the target multimodal model structure to the model deployment module, and the model deployment module deploys the target multimodal model according to the underlying basic configuration information and the target multimodal model structure. In this way, when receiving the model deployment requirement, the model management module of the deployment system of the multimodal model stores multiple model substructures, and then combines the target multimodal model structure of different structures according to the multi-module structure combination module, and deploys it through the model deployment module, and can deploy multimodal models of different structural combinations according to a unified deployment scheme of the deployment system, which helps to improve the flexibility and efficiency of the deployment of the multimodal model.

[0039] Furthermore, the deployment system also includes a model acceleration module, which is responsible for accelerating the target multimodal model structure combined by the multi-module structure combination module, which can reduce engineering costs, support automated model acceleration, and further improve model deployment efficiency.

[0040] Furthermore, a model memory storage module is also provided in the deployment system provided in the embodiment of the present application, which can pre-store the substructures of the model to be deployed with a higher probability of use or a higher number of uses in the memory, so that when the model is deployed, the model substructure can be directly loaded from the memory, further saving model deployment time.

[0041] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 One of the structural schematic diagrams of a multimodal model deployment system provided in an embodiment of the present application;

[0044] Figure 2A schematic diagram of the structure of the model management module provided in the embodiment of the present application;

[0045] Figure 3 A schematic diagram of the structure of a multi-module structure combination module provided in an embodiment of the present application;

[0046] Figure 4 A second structural diagram of a multimodal model deployment system provided in an embodiment of the present application;

[0047] Figure 5 A schematic diagram of the structure of the model acceleration module provided in the embodiment of the present application;

[0048] Figure 6 A schematic diagram of the structure of the model deployment module provided in the embodiment of the present application;

[0049] Figure 7 A third structural diagram of a multimodal model deployment system provided in an embodiment of the present application;

[0050] Figure 8 A schematic diagram of the structure of the memory pool provided in the embodiment of the present application;

[0051] Fig. 9 A flowchart of a method for deploying a multimodal model provided in an embodiment of the present application;

[0052] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0053] Icons: 100-deployment system; 110-model management module; 111-model management unit; 112-target directed acyclic graph unit; 120-multi-module structure combination module; 130-model deployment module; 140-model acceleration module; 150-model memory storage module; 1000-electronic device; 1010-processor; 1020-memory; 1030-bus. DETAILED DESCRIPTION

[0054] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0055] First, the application scenarios to which the present application is applicable are introduced. The present application can be applied in the field of computer technology.

[0056] Multimodal model tasks involve a variety of deep learning technologies, such as speech recognition, natural language processing, computer vision, etc., so when processing related tasks, multimodal models will also input data of multiple modalities, such as speech, text, images, etc. The output of multimodal models is generally text-based, but with the development of science and technology, the output of multimodal models is also developing in the direction of multiple output methods.

[0057] That is, as related technologies continue to develop, the output will also increase in diversity, providing support for multiple modalities. Different input modalities generally use different pre-processing to encode the corresponding modalities. Multi-modality may involve feature association and fusion, and different modalities will also involve decoding of corresponding modalities. For example, text data needs to be encoded into feature data that can be used by the model first, and the result features of the model output also need to be decoded into readable text. Therefore, multi-modal large models are diverse in terms of processable tasks and model architecture.

[0058] As technology continues to develop, some related problems have also emerged: (1) Multimodal tasks are constantly enriched, and model structures are constantly increasing. When deploying models, there is no unified and universal deployment solution and a lack of flexible structural combination methods; (2) Large multimodal models will use a lot of computing resources, and when GPU computing resources are limited, it is impossible to quickly switch and load models; the deployment of multimodal models also has the problems of inflexibility and low deployment efficiency.

[0059] Based on this, an embodiment of the present application provides a multimodal model deployment system to improve the flexibility and efficiency of the deployment of the multimodal model.

[0060] Furthermore, a multimodal model deployment system 100 disclosed in the present application is introduced.

[0061] See also Figure 1 , Figure 1 This is one of the structural diagrams of a multimodal model deployment system 100 provided in an embodiment of the present application. Figure 1 As shown in , the deployment system includes a model management module 110 , a multi-module structure combination module 120 and a model deployment module 130 .

[0062] Specifically, when a model deployment requirement is received, the model management module 110 determines at least one target model type substructure corresponding to the model deployment requirement from a plurality of pre-stored model substructures, and sends the at least one target model type substructure and the stored target directed acyclic graph to the multi-module structure combination module 120; after receiving the at least one target model type substructure, the multi-module structure combination module 120 combines the at least one target model type substructure to generate a target multimodal model structure, and then sends the target multimodal model structure to the model deployment module 130. The model deployment module 130 deploys the target multimodal model according to the underlying basic configuration information and the target multimodal model structure, and completes the deployment of the multimodal model. Then, the user can use the deployed target multimodal model through the provided external interface to obtain the inference result.

[0063] In the embodiment of the present application, the deployed model is a multimodal model. The multimodal model tasks involve a variety of deep learning technologies, such as speech recognition, natural language processing, computer vision, etc., so when processing related tasks, data of multiple modalities will also be input into the multimodal model, such as speech, text, image, etc. The output of the multimodal model is generally text-based, but with the development of science and technology, the output of the multimodal model is also developing in the direction of multiple output modes. Therefore, the deployment of the multimodal model also has the problems of inflexibility and low deployment efficiency. The multimodal model deployment system 100 provided in the embodiment of the present application can flexibly deploy the multimodal model to solve the above problems. The specific structure of the deployment system 100 will be described separately below.

[0064] In a possible implementation, the model management module 110 is mainly responsible for managing different types of substructures of the multi-model architecture, and can register and store model substructures.

[0065] Specifically, the model management module 110 is further used to: determine the category to which the model structure to be registered belongs, and store the model structure to be registered in a database table corresponding to the corresponding category to obtain a plurality of pre-stored model substructures.

[0066] In a possible implementation manner, the categories include encoder categories (Encoder), adapter categories (Adapter), complex large model categories (LM) and decoder categories (Decoder).

[0067] Specifically, the model registered and saved in the Encoder is responsible for encoding the corresponding modality, and the Adapter is responsible for the fusion of multiple modalities. After the Encoder modality is encoded, the Adapter can be used for adaptation and fusion. The adapted and fused features are passed to the LM. The LM is responsible for multi-modal decoding output, and the output of the LM can use the Decoder to decode the corresponding modality.

[0068] Furthermore, before the model is deployed, the model can be registered and stored in advance through the model management module 110. After the model substructure is stored by the model management module 110, when the multimodal model is deployed, the corresponding model substructure can be directly retrieved from the database table of the model management module 110.

[0069] In a possible implementation, when there is a model structure to be registered, it is first necessary to determine the category type described by the model structure to be registered, and then store the model structure to be registered in a database table corresponding to the corresponding category type to complete the registration and storage of the model to be registered.

[0070] Among them, three database tables are associated with each category type, which are respectively used to store the model structure name information of the model structure to be registered, the input and output dimension information of the model structure to be registered, the size information of the model structure to be registered, and the upstream and downstream relationships of the model structure to be registered.

[0071] Specifically, for example, each category is determined to be associated with three database tables, namely Database Table 1, Database Table 2 and Database Table 3; then, Database Table 1 stores the basic information of this category, including the model structure name, model input and output dimensions, model size, etc., Database Table 2 stores the model structure dimensions and model structure name of this category, and Database Table 3 stores the model structure name of this category and the upstream and downstream relationships of this model structure.

[0072] In a possible implementation, a distributed OSS object storage server may be used to store model files in the model management module 110. The management module uses the information provided during registration to define labels for the object storage. When downloading the stored model files, the file download can be completed by using the domain name of the OSS object storage server plus the object name.

[0073] In a possible implementation, the model management module 110 also stores a target directed acyclic graph that records the upstream and downstream relationships of model type substructures. When the multi-module structure combination module 120 combines multiple model substructures, the models can be combined according to the upstream and downstream relationships of the model substructures indicated by the target directed acyclic graph.

[0074] Furthermore, for the encoder type, adapter type, complex large model type and decoder type, there is a preset substructure upstream and downstream relationship between the four, that is, the preset substructure upstream and downstream relationship is that the encoder type is upstream of the adapter type, the adapter type is upstream of the complex large model type, and the complex large model type is upstream of the decoder type.

[0075] Exemplarily, the input-output relationship between categories is encoder type (Encoder) -> adapter type (Adapter) -> complex large model type (LM) -> decoder type (Decoder).

[0076] It is worth noting that in the target directed acyclic graph, the types between input and output relations can cross but cannot go back.

[0077] In a possible implementation, the target directed acyclic graph can combine the association relationships between different model substructures. After completing the registration and storage of the model to be registered, the target directed acyclic graph can be updated. The DAG automatic update module will associate two types of data tables, type 1 and type 2. The table related to type 1 stores the model structure dimensions and the model structure name, and the table related to type 2 stores the type structure name and the upstream and downstream relationships of this model structure. Both type 1 and type 2 are divided into four tables of encoder type (Encoder), adapter type (Adapter), complex large model type (LM) and decoder type (Decoder), which are used to store different types of data.

[0078] In a possible implementation, the model management module 110 is used to construct the target directed acyclic graph through the following steps:

[0079] Determine the category to which each pre-stored model substructure belongs and the input and output dimensions corresponding to each model substructure;

[0080] If the model substructure belongs to the adapter type or the complex large model type, determine the target model category name that is consistent with the input and output dimensions of the model substructure according to the input and output dimensions of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to the preset substructure upstream and downstream relationship to obtain the target directed acyclic graph;

[0081] If the model substructure belongs to the encoder type, determine the target model category name that matches the output dimension of the model substructure according to the output dimension of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to a preset substructure upstream and downstream relationship to obtain the target directed acyclic graph;

[0082] If the model substructure belongs to the decoder type, determine the target model category name that matches the input dimension of the model substructure based on the input dimension of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to the preset substructure upstream and downstream relationship to obtain the target directed acyclic graph.

[0083] In an embodiment of the present application, since different types of model substructures are located in different positions in the target directed acyclic graph, it is necessary to determine the matching downstream or upstream model substructure based on the type category of each model substructure and the input and output dimensions corresponding to each model substructure.

[0084] If the model substructure belongs to the adapter type or the complex large model type, since in the target directed acyclic graph, the adapter type and the complex large model type are in the middle of the link, the input and output dimensions of the model substructure must be consistent at the same time. If the model substructure belongs to the adapter type or the complex large model type, the output dimension of the model substructure located upstream of the adapter type or the complex large model type must be consistent with the input dimension of the adapter type or the complex large model type, and the input dimension of the model substructure located downstream of the adapter type or the complex large model type must be consistent with the output dimension of the adapter type or the complex large model type.

[0085] For example, taking the model substructure belonging to the adapter type, if the input dimension of the model substructure is 2×3 and the output dimension is 20×30, the model substructure of the encoder type located upstream of the adapter type needs to have an output dimension of 2×3, and the model substructure located downstream of the complex large model type needs to have an input dimension of 20×30, so that they can form a new target directed acyclic graph with the model substructure belonging to the adapter type.

[0086] If the model substructure belongs to the encoder type, since in the target directed acyclic graph, the encoder type is at the front of the link and all other types are located after the encoder type, it is only necessary for the input dimension of the model substructure downstream of the encoder type to be consistent with the output dimension of the encoder type.

[0087] Exemplarily, when the model substructure belongs to the encoder type, if the output dimension of the model substructure is 8×8, the model substructure located downstream of the encoder type needs to have an input dimension of 8×8 so that it can form a new target directed acyclic graph with the model substructure belonging to the encoder type.

[0088] If the model substructure belongs to the decoder type, since in the target directed acyclic graph, the decoder type is at the end of the link and all other types are located before the decoder type, it is only necessary for the output dimension of the model substructure upstream of the decoder type to be consistent with the input dimension of the decoder type.

[0089] For example, when the model substructure belongs to the decoder type, if the input dimension of the model substructure is 16×16, the model substructure located upstream of the encoder type needs to have an output dimension of 16×16 so that it can form a new target directed acyclic graph with the model substructure belonging to the decoder type.

[0090] In a possible implementation, different model structures may be combined according to the target directed acyclic graph in the model management module 110 to test and debug the different model structures and determine the model effects of the different model structures.

[0091] For example, see Figure 2 , Figure 2 A schematic diagram of the structure of the model management module 110 provided in the embodiment of the present application is shown in FIG. Figure 2 As shown, the model management module 110 includes a model management unit 111 and a target directed acyclic graph unit 112. The model management unit 111 includes storage space for encoder types, adapter types, complex large model types, and decoder types. At least one model substructure registered and stored is stored in the storage space of different types; and a plurality of model substructure combination graphs that conform to the upstream and downstream relationships of the types are stored in the target directed acyclic graph unit 112.

[0092] Furthermore, the multi-module structure combination module 120 can obtain a target multimodal model structure by combining at least one target model type substructure according to the upstream and downstream relationship of the model type substructure in the target directed acyclic graph, or a preset model structure.

[0093] In the embodiment of the present application, the multi-module structure combination module 120 inserts and removes the multi-module sub-structure registered in the model management module 110 in a plug-in manner to combine into a complete target multi-modal model structure.

[0094] In a possible implementation, in the multi-module structure combination module 120, when combining the target model type substructures, the target model type substructures may be combined according to the upstream and downstream relationships of the model type substructures in the target directed acyclic graph in the model management module 110, or may be combined according to a pre-stored preset model structure.

[0095] Exemplarily, the preset model structure may be a Large Language and Vision Assistant (LLaVA) model or an Instruction Fine-tuning Training General Vision Language Model (InstructBLIP).

[0096] For example, if it is known according to the model deployment requirements that the multimodal model to be deployed at this time supports two modal inputs, image and text, and supports text modal output, and the structure used when combining the models is InstructBLIP, then the multi-module structure combination module 120 can perform the following combination steps: (1) InstructBLIP supports two inputs, image and prompt text, the image encoder part is the vit structure, the prompt text encoder part is a universal tokenzer encoded into token_ids, the adapter part is a combination of Q-Former and FC, lm is flan-t5 or vicuna, and the decoder is also a universal text tokenzer that converts token_ids into text. First, use the model management module to register and save the encoder, adapter, lm, and decoder; (2) select the image encoder model structure and text encoder model structure belonging to InstructBLIP in the Encoder collection; (3) select the adapter belonging to InstructBLIP in the Adapter collection; (4) select the lm structure belonging to InstructBLIP in the LM collection; (5) select the text decoder structure belonging to InstructBLIP in the Decoder collection; (6) combine the encoder, adapter, lm, and decoder together in the form of a plug-in.

[0097] Among them, whether the upstream and downstream relationships and interfaces of encoder, adapter, lm, and decoder are consistent can be verified by selecting points in the target directed acyclic graph, and a predetermined structure such as LlaVA can also be configured when used.

[0098] For example, see Figure 3 , Figure 3The schematic diagram of the structure of the multi-module structure combination module 120 provided in the embodiment of the present application is as follows: Figure 3 As shown in , in the multi-module structure combination module 120, encoder 2, encoder 3, adapter 2, complex large model 1, decoder 1 and decoder 2 are combined to obtain a complete target multimodal model structure.

[0099] For further information, see Figure 4 , Figure 4 This is a second structural diagram of a multimodal model deployment system 100 provided in an embodiment of the present application. Figure 4 As shown in , the deployment system 100 also includes a model acceleration module 140; the model acceleration module 140 is responsible for accelerating the target multimodal model structure combined by the multi-module structure combination module 120, which can reduce engineering costs, support automated model acceleration, and further improve model deployment efficiency.

[0100] Specifically, the model acceleration module 140 is used to:

[0101] Detecting whether the target multimodal model structure meets the model acceleration condition;

[0102] If the target multimodal model structure meets the model acceleration condition, determining a target model type substructure that needs to be accelerated in the target multimodal model structure, and a target structure name of the target model type substructure;

[0103] Detecting whether the target structure name is included in a pre-stored model acceleration table;

[0104] If the pre-stored model acceleration table contains the target structure name, the target model type substructure is accelerated.

[0105] In an embodiment of the present application, it is necessary to store a supported acceleration list in the model acceleration module. Before accelerating the combined target multimodal model structure, it is necessary to first determine whether the target multimodal model structure meets the model acceleration conditions.

[0106] The target multimodal model structure satisfies the acceleration condition by recording the model substructures included in the target multimodal model in a pre-stored model acceleration table.

[0107] Furthermore, if it is determined that the target multimodal model structure meets the model acceleration conditions, the target model type substructure that needs to be accelerated and the target structure name of the target model type substructure are determined, the model substructure that needs to be accelerated can be determined according to the deployment requirements of the model.

[0108] Furthermore, after determining the target model type substructure that needs to be accelerated, the acceleration process can be performed normally. It is also necessary to determine whether the target structure name exists in the pre-stored model acceleration table. Only when it is determined that the target structure name exists in the model acceleration table can the target model type substructure be accelerated.

[0109] In a possible implementation, when the target multimodal model structure is processed by the model acceleration module 140, the target model type substructure that can be accelerated is accelerated by searching its own model acceleration table, and the original state is retained for the unsupported ones. At the same time, the injection of acceleration methods for new model type substructures is also supported. The acceleration method can be connected to the open source acceleration solution. For LM, FasterTransformer and Tensorrt-LLM can be used to achieve model acceleration, but the open source method does not provide a multi-mode input interface. The model acceleration module 140 can increase support for multi-mode input. For the encoder structure model, token_ids input and input_embeds are reserved. The decoder structure model supports embedding input_embeds features between the embedding layer and the decoder layer. For CNN, MLP and other structural models, the open source tool Tensorrt can be used to implement acceleration solutions such as model structure fusion, operator fusion, and quantization. Unimplemented operators can be implemented through cuda. ​​The specific implementation is not limited to the above open source tools. After the model acceleration is completed, it is injected into the model acceleration table of the model acceleration module.

[0110] For example, see Figure 5 , Figure 5 The schematic diagram of the structure of the model acceleration module 140 provided in the embodiment of the present application is as follows: Figure 5 As shown in , in the model acceleration module 140 , there is a model acceleration tool chain, and after accelerating each model substructure, encoder 2 , encoder 3 , adapter 2 , complex large model 1 , decoder 1 and decoder 2 are combined.

[0111] Furthermore, after being processed by the model acceleration module 140 and obtaining the combined and accelerated target multimodal model structure, the model can be deployed through the model deployment module 130 .

[0112] Specifically, the model deployment module 130 provides a high-performance inference server encapsulation to implement a microservice framework, provides http and grpc protocol support, supports stateless requests and stateful streaming requests, and provides distributed deployment capabilities.

[0113] In one possible implementation, the underlying basic configuration information is information for deploying the underlying facilities of the server. Exemplarily, the underlying basic configuration information may include information such as whether to use multiple GPUs and inference instances, wherein the model service can be started based on the inference server, that is, the deployment of the target multimodal model is completed.

[0114] In a possible implementation, in order to more conveniently obtain input and output data of each part of the model during the adjustment and testing phase of the model, an internal interface may be provided at each model substructure, so that the model substructure may be conveniently debugged.

[0115] Specifically, the model deployment module 130 is also used for:

[0116] For each target model type substructure in the target multimodal model structure, an internal interface is set to obtain input and output information of the corresponding target model type substructure through the internal interface, and adjust the target model type substructure based on the input and output information.

[0117] In an embodiment of the present application, an application programming interface (API) may be set at each model substructure to debug each substructure of the model through the API interfaces set at the model substructure.

[0118] In a possible implementation, after the target multimodal model is deployed through the model deployment module 130, a unified external interface may be set to use the target multimodal model through the external interface to provide a prediction function of the target multimodality.

[0119] Specifically, the model deployment module 130 is also used for:

[0120] An external interface of the target multimodal model is set to provide a prediction function of the target multimodal model through the external interface.

[0121] In an embodiment of the present application, a user can use the deployed target multimodal model through an external interface and input multiple modal data, such as voice, text, images, etc.; and then obtain inference results through processing of the target multimodal model.

[0122] For example, see Figure 6 , Figure 6 A schematic diagram of the structure of the model deployment module 130 provided in the embodiment of the present application is shown in FIG. Figure 6As shown, after encoder 2, encoder 3, adapter 2, complex large model 1, decoder 1 and decoder 2 are combined, a target multimodal model is performed. When the target multimodal model is deployed, it is divided into two computing nodes. One computing node includes encoder 2, encoder 3 and decoder 1; the other computing node includes decoder 2, complex large model 1 and adapter 2, and an internal interface API is set at each model substructure.

[0123] In one possible implementation, when the model is deployed, the model is generally loaded from the disk, that is, the target multimodal model is saved on the disk when not in use, and is loaded from the disk to the memory and then copied to the video memory when in use. The disk-to-memory stage takes a long time, which has a great impact on the loading and switching time of the model. In order to improve the efficiency of model use, the deployment system 100 provided in the embodiment of the present application also provides a model memory storage module, which can pre-store the substructure of the model to be deployed with a high probability of use or a large number of uses in the memory, so that when the model is deployed, the model substructure can be directly loaded from the memory, further saving the model deployment time.

[0124] Specifically, see Figure 7 , Figure 7 This is a third structural diagram of a multimodal model deployment system 100 provided in an embodiment of the present application. Figure 7 As shown in , the deployment system 100 further includes a model memory storage module 150. Specifically, the model memory storage module 150 is used to:

[0125] A plurality of to-be-deployed model substructures are stored in the memory in advance; the to-be-deployed model substructures are model substructures whose usage probabilities are greater than a preset usage probability threshold.

[0126] In an embodiment of the present application, a model substructure whose usage probability is greater than a preset usage probability threshold can be pre-set as a model substructure to be deployed and stored in a memory, and when the model deployment module 130 deploys the target multimodal model, the model substructure to be deployed is directly loaded from the memory to deploy the target multimodal model.

[0127] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of the memory pool provided in the embodiment of the present application. Figure 8 As shown in FIG. 1 , the memory pool stores the adapter 3 , encoder 4 , complex large model 2 and decoder 4 which are used more frequently.

[0128] Specifically, the model deployment module 130 is also used for:

[0129] Detecting whether there is a target model type substructure consistent with the to-be-deployed model substructure in each target model type substructure in the target multimodal model structure;

[0130] Loading a target model type substructure consistent with the model substructure to be deployed from the memory and model deployment;

[0131] The target model type substructure that is inconsistent with the model substructure to be deployed is loaded from the disk and the model is deployed.

[0132] In an embodiment of the present application, during the process of configuring the model, it is determined whether there is a target model type substructure in the target multimodal model structure to be deployed that is consistent with the model substructure to be deployed, that is, a target model type substructure that can be directly loaded from the memory. Then, after determining that there is a target model type substructure in the memory, when deploying the target multimodal model, the target model type substructure stored in the memory is directly loaded from the memory and then the model is deployed; and for the target model type substructure that is inconsistent with the model substructure to be deployed (not stored in the memory), it is also necessary to load from the disk and deploy the model.

[0133] In one possible implementation, the method for loading memory is as follows: (1) select the model to be preloaded, (2) configure the inference server and set the inference server to CPU inference mode, (3) pull the model into memory through the inference server, and (4) if this model is needed for inference, the model can be copied to the video memory (VRAM) for GPU inference. At this time, a 128GiB or 256GiB memory (RAM) hardware dedicated to the preloaded memory pool can be selected, so that when loading and switching models, the memory pool can be accessed first. If it exists, it can be directly copied to the video memory for deployment. In this way, for commonly used multi-model structures, the process of loading from disk to memory can be shielded, thereby improving the model usage experience.

[0134] The deployment system of the multimodal model provided by the embodiment of the present application, when receiving the model deployment requirement, the model management module determines at least one target model type substructure corresponding to the model deployment requirement from the pre-stored multiple model substructures, and sends at least one target model type substructure and the stored target directed acyclic graph to the multi-module structure combination module; after receiving at least one target model type substructure, the multi-module structure combination module combines at least one target model type substructure to generate a target multimodal model structure, and then sends the target multimodal model structure to the model deployment module, and the model deployment module deploys the target multimodal model according to the underlying basic configuration information and the target multimodal model structure. In this way, when receiving the model deployment requirement, the model management module of the deployment system of the multimodal model stores multiple model substructures, and then combines target multimodal model structures of different structures according to the multi-module structure combination module, and deploys them through the model deployment module, and can deploy multimodal models of different structural combinations according to a unified deployment scheme of the deployment system, which helps to improve the flexibility and efficiency of the deployment of the multimodal model.

[0135] Based on the same inventive concept, the embodiments of the present application also provide a method for deploying a multimodal model applied to a deployment system of a multimodal model. Since the principle of solving the problem by the method in the embodiments of the present application is similar to the above-mentioned deployment system of the multimodal model in the embodiments of the present application, the implementation of the method can refer to the implementation of the system, and the repeated parts will not be repeated.

[0136] See also Fig. 9 , Fig. 9 A flowchart of a method for deploying a multimodal model provided in an embodiment of the present application. Fig. 9 As shown in , the deployment method of the multimodal model provided in the embodiment of the present application includes:

[0137] S901, control the model management module to determine at least one target model type substructure that needs to be deployed from multiple pre-stored model substructures according to model deployment requirements; and send the at least one target model type substructure and the target directed acyclic graph to the multi-module structure combination module; the target directed acyclic graph records the upstream and downstream relationships of the model type substructures.

[0138] S902, controlling the multi-module structure combination module to combine the at least one target model type substructure according to the upstream and downstream relationship of the model type substructure in the target directed acyclic graph, or a preset model structure, to obtain a target multimodal model structure; and sending the target multimodal model structure to the model deployment module.

[0139] S903: Control the model deployment module to deploy a target multimodal model based on the underlying basic configuration information and the target multimodal model structure.

[0140] In a possible implementation, the deployment method further includes:

[0141] The model management module is controlled to determine the category to which the model structure to be registered belongs, and the model structure to be registered is stored in a database table corresponding to the corresponding category to obtain a plurality of pre-stored model substructures.

[0142] In a possible implementation, three database tables are associated with each category type, which are respectively used to store the model structure name information of the model structure to be registered, the input and output dimension information of the model structure to be registered, the size information of the model structure to be registered, and the upstream and downstream relationships of the model structure to be registered.

[0143] In a possible implementation manner, the categories include encoder categories, converter categories, complex large model categories, and decoder categories; and the deployment method further includes:

[0144] Determine the category to which each pre-stored model substructure belongs and the input and output dimensions corresponding to each model substructure;

[0145] If the model substructure belongs to the adapter type or the complex large model type, determine the target model category name that is consistent with the input and output dimensions of the model substructure according to the input and output dimensions of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to the preset substructure upstream and downstream relationship to obtain the target directed acyclic graph;

[0146] If the model substructure belongs to the encoder type, determine the target model category name that matches the output dimension of the model substructure according to the output dimension of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to a preset substructure upstream and downstream relationship to obtain the target directed acyclic graph;

[0147] If the model substructure belongs to the decoder type, determine the target model category name that matches the input dimension of the model substructure based on the input dimension of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to the preset substructure upstream and downstream relationship to obtain the target directed acyclic graph.

[0148] In a possible implementation, the preset substructure upstream and downstream relationship is that the encoder type is upstream of the adapter type, the adapter type is upstream of the complex large model type, and the complex large model type is upstream of the decoder type.

[0149] In a possible implementation, the deployment method further includes:

[0150] The model acceleration module is controlled to detect whether the target multimodal model structure meets the model acceleration conditions; if the target multimodal model structure meets the model acceleration conditions, the target model type substructure that needs to be accelerated in the target multimodal model structure and the target structure name of the target model type substructure are determined; whether the target structure name is included in a pre-stored model acceleration table; if the target structure name is included in the pre-stored model acceleration table, the target model type substructure is accelerated.

[0151] In a possible implementation, the deployment method further includes:

[0152] The model memory storage module is controlled to store a plurality of to-be-deployed model substructures in the memory in advance; the to-be-deployed model substructures are model substructures whose usage probabilities are greater than a preset usage probability threshold.

[0153] In a possible implementation, the deployment method further includes:

[0154] Control the model deployment module to detect whether there is a target model type substructure consistent with the model substructure to be deployed in each target model type substructure in the target multimodal model structure; load the target model type substructure consistent with the model substructure to be deployed from the memory and deploy the model; load the target model type substructure inconsistent with the model substructure to be deployed from the disk and deploy the model.

[0155] In a possible implementation, the deployment method further includes:

[0156] The model deployment module is controlled to set an internal interface for each target model type substructure in the target multimodal model structure, so as to obtain input and output information of the corresponding target model type substructure through the internal interface, and adjust the target model type substructure based on the input and output information.

[0157] In a possible implementation, the deployment method further includes:

[0158] The model deployment module is controlled to set an external interface of the target multimodal model to provide a prediction function of the target multimodal model through the external interface.

[0159] The deployment method of the multimodal model provided by the embodiment of the present application, when receiving the model deployment requirement, the model management module determines at least one target model type substructure corresponding to the model deployment requirement from the pre-stored multiple model substructures, and sends at least one target model type substructure and the stored target directed acyclic graph to the multi-module structure combination module; after receiving at least one target model type substructure, the multi-module structure combination module combines at least one target model type substructure to generate a target multimodal model structure, and then sends the target multimodal model structure to the model deployment module, and the model deployment module deploys the target multimodal model according to the underlying basic configuration information and the target multimodal model structure. In this way, when receiving the model deployment requirement, the model management module of the deployment system of the multimodal model stores multiple model substructures, and then combines the target multimodal model structure of different structures according to the multi-module structure combination module, and deploys it through the model deployment module, and can deploy multimodal models of different structural combinations according to a unified deployment scheme of the deployment system, which helps to improve the flexibility and efficiency of the deployment of the multimodal model.

[0160] See also Fig.10 , Fig.10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.10 As shown in , the electronic device 1000 includes a processor 1010 , a memory 1020 and a bus 1030 .

[0161] The memory 1020 stores machine-readable instructions executable by the processor 1010. When the electronic device 1000 is running, the processor 1010 communicates with the memory 1020 via the bus 1030. When the machine-readable instructions are executed by the processor 1010, the above-mentioned Fig. 9 The steps of the method for deploying the multimodal model in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.

[0162] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Fig.10 The steps of the method for deploying the multimodal model in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.

[0163] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0164] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0165] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0166] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0167] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0168] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A multimodal model deployment system, characterized in that: The deployment system is used for speech recognition; the deployment system includes a model management module, a multi-module structure combination module and a model deployment module; The model management module is used to determine at least one target model type substructure to be deployed from a plurality of pre-stored model substructures according to model deployment requirements; and send the at least one target model type substructure and a target directed acyclic graph to the multi-module structure combination module; the target directed acyclic graph records the upstream and downstream relationships of the model type substructures; The multi-module structure combination module is used to combine the at least one target model type substructure according to the upstream and downstream relationship of the model type substructure in the target directed acyclic graph, or a preset model structure, to obtain a target multimodal model structure; and send the target multimodal model structure to the model deployment module; The model deployment module is used to deploy the target multimodal model based on the underlying basic configuration information and the target multimodal model structure; The model management module is also used for: Determine the category to which the model structure to be registered belongs, and store the model structure to be registered in a database table corresponding to the corresponding category to obtain a plurality of pre-stored model substructures; The categories include encoder categories, adapter categories, large model categories, and decoder categories; the model management module is used to construct the target directed acyclic graph through the following steps: Determine the category to which each pre-stored model substructure belongs and the input and output dimensions corresponding to each model substructure; If the model substructure belongs to the adapter type or the large model type, determine the target model category name that is consistent with the input and output dimensions of the model substructure according to the input and output dimensions of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to the preset substructure upstream and downstream relationship to obtain the target directed acyclic graph; If the model substructure belongs to the encoder type, determine the target model category name that matches the output dimension of the model substructure according to the output dimension of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to a preset substructure upstream and downstream relationship to obtain the target directed acyclic graph; If the model substructure belongs to the decoder type, determine the target model category name that matches the input dimension of the model substructure according to the input dimension of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to a preset substructure upstream and downstream relationship to obtain the target directed acyclic graph; Among them, the preset substructure upstream and downstream relationship is that the encoder type is upstream of the adapter type in the target directed acyclic graph, the adapter type is upstream of the large model type in the target directed acyclic graph, and the large model type is upstream of the decoder type in the target directed acyclic graph; the output of the encoder type is the input of the adapter type; the output of the adapter type is the input of the large model type; the output of the large model type is the input of the decoder type.

2. The deployment system according to claim 1, characterized in that: Three database tables are associated with each category type, which are respectively used to store the model structure name information of the model structure to be registered, the input and output dimension information of the model structure to be registered, the size information of the model structure to be registered, and the upstream and downstream relationships of the model structure to be registered.

3. The deployment system according to claim 1, characterized in that: The deployment system further includes a model acceleration module, which is used to: Detecting whether the target multimodal model structure meets the model acceleration condition; If the target multimodal model structure satisfies the model acceleration condition, determining a target model type substructure that needs to be accelerated in the target multimodal model structure, and a target structure name of the target model type substructure; Detecting whether the target structure name is included in a pre-stored model acceleration table; If the pre-stored model acceleration table contains the target structure name, the target model type substructure is accelerated.

4. The deployment system according to claim 1, characterized in that: The deployment system further includes a model memory storage module, wherein the model memory storage module is used to: A plurality of to-be-deployed model substructures are stored in the memory in advance; the to-be-deployed model substructures are model substructures whose usage probabilities are greater than a preset usage probability threshold.

5. The deployment system according to claim 4, characterized in that: The model deployment module is also used to: Detecting whether there is a target model type substructure consistent with the to-be-deployed model substructure in each target model type substructure in the target multimodal model structure; Loading a target model type substructure consistent with the model substructure to be deployed from the memory and model deployment; The target model type substructure that is inconsistent with the model substructure to be deployed is loaded from the disk and the model is deployed.

6. The deployment system according to claim 1, characterized in that: The model deployment module is also used to: For each target model type substructure in the target multimodal model structure, an internal interface is set to obtain input and output information of the corresponding target model type substructure through the internal interface, and adjust the target model type substructure based on the input and output information.

7. The deployment system according to claim 1, characterized in that: The model deployment module is also used to: An external interface of the target multimodal model is set to provide a prediction function of the target multimodal model through the external interface.

8. A method for deploying a multimodal model, characterized in that: Applied to the deployment system according to any one of claims 1 to 7, the deployment system is used for speech recognition; the deployment method comprises: Control the model management module to determine at least one target model type substructure to be deployed from a plurality of pre-stored model substructures according to model deployment requirements; and send the at least one target model type substructure and a target directed acyclic graph to the multi-module structure combination module; the target directed acyclic graph records the upstream and downstream relationships of the model type substructures; Controlling the multi-module structure combination module to combine the at least one target model type substructure according to the upstream and downstream relationship of the model type substructure in the target directed acyclic graph, or a preset model structure, to obtain a target multimodal model structure; and sending the target multimodal model structure to the model deployment module; Controlling the model deployment module to deploy a target multimodal model based on the underlying basic configuration information and the target multimodal model structure; The deployment method further comprises: Controlling the model management module to determine the category to which the model structure to be registered belongs, and storing the model structure to be registered in a database table corresponding to the corresponding category to obtain a plurality of pre-stored model substructures; The categories include encoder categories, adapter categories, large model categories, and decoder categories; the deployment method also includes: Determine the category to which each pre-stored model substructure belongs and the input and output dimensions corresponding to each model substructure; If the model substructure belongs to the adapter type or the large model type, determine the target model category name that is consistent with the input and output dimensions of the model substructure according to the input and output dimensions of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to the preset substructure upstream and downstream relationship to obtain the target directed acyclic graph; If the model substructure belongs to the encoder type, determine the target model category name that matches the output dimension of the model substructure according to the output dimension of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to a preset substructure upstream and downstream relationship to obtain the target directed acyclic graph; If the model substructure belongs to the decoder type, determine the target model category name that matches the input dimension of the model substructure according to the input dimension of the model substructure, and associate the model category corresponding to the target model category name with the model substructure according to a preset substructure upstream and downstream relationship to obtain the target directed acyclic graph; Among them, the preset substructure upstream and downstream relationship is that the encoder type is upstream of the adapter type in the target directed acyclic graph, the adapter type is upstream of the large model type in the target directed acyclic graph, and the large model type is upstream of the decoder type in the target directed acyclic graph; the output of the encoder type is the input of the adapter type; the output of the adapter type is the input of the large model type; the output of the large model type is the input of the decoder type.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the multimodal model deployment method as described in claim 8 are performed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the multimodal model deployment method as claimed in claim 8 are executed.