A high-performance multimodal large model reasoning system and method

By introducing a multi-modal accelerated reasoning unit, search unit and cache unit into the multi-modal large model reasoning system, the problem of slow down in large language model reasoning and architectural complexity is solved, efficient multi-modal reasoning is achieved, and the system is improved. Performance and usage experience.

CN117764114BActive Publication Date: 2024-10-18DARK MATTER ARTIFICIAL INTELLIGENT (BEIJING) TECHNOLOGY CO LTD

Patent Information

Application Number
CN202311814694.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2024-10-18
Estimated Expiration
2043-12-27

AI Technical Summary

Technical Problem

As the parameters of large language models increase, the speed of multi-modal reasoning decreases. The increase in scenarios leads to complex multi-modal architectures. Repeated reasoning wastes computing resources. How to improve the flexibility and speed of multi-modal reasoning.

Method used

A high-performance multi-modal large model inference system is designed, including a multi-modal accelerated inference unit, a search unit and a cache unit. Through the model acceleration engine, search engine and cache mechanism, it supports image and text input, optimizes the inference process and provides Distributed deployment and caching capabilities.

Benefits of technology

It effectively improves the speed and flexibility of multi-modal reasoning, saves computing power, reduces reasoning time, and improves system throughput and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117764114B_ABST
    Figure CN117764114B_ABST
Patent Text Reader

Abstract

The present invention discloses a high-performance multimodal large model reasoning system and method, which relates to the field of machine learning technology. The system includes a multimodal accelerated reasoning unit, a search unit, a cache unit and a database; the multimodal accelerated reasoning unit determines the multimodal model and generates reasoning results based on multimodal information reasoning, the search unit searches for reasoning results in the database based on multimodal information, and the cache unit saves the reasoning results to the database. The present invention supports multiple multimodal component acceleration capabilities, provides cache capabilities, provides flexible combination of different multimodal model component reasoning pipeline capabilities, provides distributed deployment capabilities, effectively saves computing power, reduces reasoning time, improves system throughput, and enhances user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine learning technology, and more specifically to a high-performance multi-modal large model reasoning system and method. Background Art

[0002] Multimodality refers to the use of multiple input formats to complete different types of reasoning tasks in deep learning models. The technology of large language models based on the Transformer structure is constantly developing. As model parameters continue to increase and training sets become richer, the capabilities of large language models are also constantly improving. Demands from various fields are emerging, and multimodal technology based on large language models is also developing rapidly. It can be applied to different scenarios in life, which leads to the need for more types of model inputs, such as supporting images, text, etc. In order to apply to more scenarios, the architecture used for multimodal reasoning is also constantly changing.

[0003] However, with the development of technology, some related problems have also emerged: (1) As the number of model parameters continues to increase, the inference speed will gradually decrease; (2) As the number of scenarios increases, the number of multi-mode architectures also continues to increase. How to flexibly use the multi-mode architecture? (3) Re-inference of some repeated scenarios will waste computing resources. How to efficiently cache the inference results.

[0004] Therefore, how to improve the flexibility and reasoning speed of multimodal reasoning of large language models is an urgent problem that technical personnel in this field need to solve. Summary of the invention

[0005] In view of this, the present invention provides a high-performance multimodal large model reasoning system and method, which aims to accelerate the reasoning performance of the multimodal cognitive model and improve the user experience. The system uses a picture combination prompt text as input and outputs the multimodal cognitive model reasoning result.

[0006] In order to achieve the above object, the present invention adopts the following technical solution:

[0007] A high-performance multimodal large model reasoning system comprises a multimodal accelerated reasoning unit, a search unit, a cache unit and a database; the multimodal accelerated reasoning unit, the search unit and the cache unit are respectively connected to the database;

[0008] The multimodal accelerated reasoning unit determines a multimodal model and generates a reasoning result based on multimodal information reasoning;

[0009] The search unit searches the database for the inference result according to the multimodal information;

[0010] The cache unit saves the inference result to the database.

[0011] Preferably, the multimodal accelerated reasoning unit includes a basic model component, a model acceleration engine and an inference server; the basic model component is associated with the Vision encoder model library, the Projector model library and the LLM model library, and model components are selected from the three model libraries to form a multimodal model; the model acceleration engine includes a transformer model optimizer, a TensorRT optimizer and a cuda framework to accelerate and optimize the multimodal model; the transformer model optimizer includes a FasterTransformer optimizer and a TensorRT-LLM optimizer; the inference server supports http and grpc protocols, supports stateless requests and stateful streaming requests, provides distributed deployment capabilities, deploys the accelerated and optimized multimodal model on the target platform, and calls the multimodal model according to streaming requests. The model acceleration engine can also use other types of model acceleration tools.

[0012] Preferably, the search unit includes an encoder, a transformer model, an MLP model and a search engine; the multimodal information passes through the encoder, the transformer model and the MLP model in sequence to generate a guiding feature vector, and the search engine is used to search the database according to the guiding feature vector and the multimodal model to obtain search results; the multimodal information includes pictures and / or prompt texts, the pictures and the prompt texts are respectively encoded by one of the encoders, and then the two sets of codes are input into the transformer model for self-attention calculation, and finally the guiding feature vector is obtained by multi-layer perception fusion through the MLP model.

[0013] Preferably, the search is performed in the database using similarity measurement methods including Euclidean distance (L2), inner product, Hamming distance, Jaccard distance, Tanimoto distance, superstructure distance and substructure distance, and the search engine types include FLAT, IVF_FLAT, IVF_SQ8, IVF_SQ8H, etc. The search engine may use other open source vector search engines.

[0014] Preferably, the cache unit includes an encoder, a transformer model and an MLP model; the multimodal information passes through the encoder, the transformer model and the MLP model in sequence to generate a guiding feature vector, and the guiding feature vector and the inference result generated by the multimodal accelerated inference unit are combined into a cache result, which is stored in a feature vector table named after the model component name corresponding to the multimodal model in the database; the multimodal information includes pictures and / or prompt texts, and the pictures and the prompt texts are respectively encoded by one of the encoders, and then the two sets of codes are input into the transformer model for self-attention calculation, and finally the guiding feature vector is obtained by multi-layer perception fusion through the MLP model.

[0015] A high-performance multimodal large model reasoning method includes the following steps:

[0016] Step 1: Select the execution mode and enter the multimodal information;

[0017] Step 2: According to the execution mode and the multimodal information, a multimodal accelerated reasoning unit is used to perform reasoning, and / or a search unit is used to search in a database;

[0018] Step 3: Obtain an inference result, and determine whether to use a cache unit to store the inference result in the database according to the execution mode.

[0019] Preferably, the execution methods include four types. The first type is to use the multimodal accelerated reasoning unit to perform reasoning and obtain the reasoning result; the second type is to use the multimodal accelerated reasoning unit to perform reasoning and obtain the reasoning result, and store the reasoning result in the database through the cache unit; the third type is to use the search unit to search in the database, and if the reasoning result is obtained, the reasoning result is fed back, otherwise the multimodal accelerated reasoning unit is used to perform reasoning and obtain the reasoning result; the fourth type is to use the search unit to search in the database, and if the reasoning result is obtained, the reasoning result is fed back, otherwise the multimodal accelerated reasoning unit is used to perform reasoning and obtain the reasoning result, and store the reasoning result in the database through the cache unit.

[0020] Preferably, the multimodal accelerated reasoning unit includes a basic model component, a model acceleration engine and an inference server; the basic model component is associated with the Vision encoder model library, the Projector model library, and the LLM model library, and model components are selected from the three model libraries to form a multimodal model; the model acceleration engine includes a transformer model optimizer, a TensorRT optimizer, and a cuda framework to accelerate and optimize the multimodal model; the transformer model optimizer includes a FasterTransformer optimizer and a TensorRT-LLM optimizer; the inference server supports http and grpc protocols, supports stateless requests and stateful streaming requests, provides distributed deployment capabilities, deploys the accelerated and optimized multimodal model on the target platform, and calls the multimodal model according to streaming requests.

[0021] Preferably, the search unit includes an encoder, a transformer model, an MLP model and a search engine; the multimodal information passes through the encoder, the transformer model and the MLP model in sequence to generate a guiding feature vector, and the search engine is used to search the database according to the guiding feature vector and the multimodal model to obtain search results.

[0022] Preferably, the cache unit includes an encoder, a transformer model and an MLP model; the multimodal information is sequentially passed through the encoder, the transformer model and the MLP model to generate a guiding feature vector, and the cache unit associates the guiding feature vector with the inference result generated by the multimodal accelerated inference unit, combines them into a cache result, and stores them in the database. The guiding feature vector and the inference result are associated with the same unique identification ID and stored in the database together.

[0023] Preferably, the reasoning process of the first execution mode is:

[0024] Step 211: the inference server of the multimodal accelerated inference unit receives a streaming request, and calls the multimodal model according to the streaming request;

[0025] Step 212: Input the multimodal information into the multimodal model to obtain an inference result.

[0026] Preferably, the reasoning process of the second reasoning method is:

[0027] Step 221: the inference server of the multimodal accelerated inference unit receives a streaming request, and calls the multimodal model according to the streaming request;

[0028] Step 222: inputting the multimodal information into the multimodal model to obtain an inference result;

[0029] Step 223: input the multimodal information into the cache unit, and pass through the encoder, transformer model and MLP model in sequence to generate a guiding feature vector;

[0030] Step 224: Generate a feature vector table named after the model component according to the selected model component, combine the guidance feature vector and the inference result into a cache result, and save it to the feature vector table.

[0031] Preferably, the reasoning process of the third reasoning method is:

[0032] Step 231: input the multimodal information into the search system, and pass through the encoder, transformer model and MLP model in sequence to generate a guiding feature vector;

[0033] Step 232: searching the database for a corresponding feature vector table according to the model component name selected by the multimodal model;

[0034] Step 233: searching in the retrieved corresponding feature vector table according to the guiding feature vector, if there is a corresponding inference result, the inference result is fed back as the search result, and the inference ends; otherwise, proceeding to step 234;

[0035] Step 234: Input the multimodal information into the multimodal model to obtain an inference result.

[0036] Preferably, the reasoning process of the fourth reasoning method is:

[0037] Step 241: input the multimodal information into the search system, and pass through the encoder, transformer model and MLP model in sequence to generate a guiding feature vector;

[0038] Step 232: searching the database for a corresponding feature vector table according to the model component name selected by the multimodal model;

[0039] Step 243: searching in the retrieved corresponding feature vector table according to the guiding feature vector, if there is a corresponding inference result, the inference result is fed back as the search result, and the inference ends; otherwise, proceeding to step 244;

[0040] Step 244: inputting the multimodal information into the multimodal model, obtaining an inference result, and providing feedback;

[0041] Step 245: input the multimodal information into the cache unit, and pass through the encoder, transformer model and MLP model in sequence to generate a guiding feature vector;

[0042] Step 246: determine a feature vector table according to the name of the model component selected by the multimodal model, combine the guidance feature vector and the inference result in step 244 into a cache result, and save it to the feature vector table.

[0043] Through the above technical solutions, it can be known that compared with the prior art, the present invention discloses a high-performance multimodal large model reasoning system and method. The system supports system caching and vector search functions, supports acceleration of multiple multimodal component models, supports flexible combination of multimodal components, provides distributed deployment capabilities and provides external interfaces. Compared with traditional multimodal cognitive model reasoning solutions, this system supports multiple multimodal component acceleration capabilities, provides caching capabilities, provides flexible combination of different multimodal model component reasoning pipeline capabilities, provides distributed deployment capabilities, effectively saves computing power, reduces reasoning time, improves system throughput, and enhances user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0045] Figure 1 A schematic diagram of the structure of a high-performance multi-modal large model reasoning system provided by the present invention;

[0046] Figure 2 A schematic diagram of the structure of the multi-modal accelerated reasoning system provided by the present invention;

[0047] Figure 3 A schematic diagram of the multimodal model reasoning process provided by the present invention;

[0048] Figure 4 A schematic diagram of the structure of the search system provided by the present invention;

[0049] Figure 5 This is a schematic diagram of the cache system structure provided by the present invention. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] Example 1

[0052] The embodiment of the present invention discloses a high-performance multi-modal large model reasoning system, which is divided into three subsystems: a multi-modal accelerated reasoning unit, a search unit, and a cache unit. The overall architecture of the system is shown in FIG. Figure 1 As shown in Figure 2, the structure of the multimodal accelerated reasoning unit is as follows: Figure 2 As shown, the search unit structure is as follows Figure 4 As shown, the cache unit structure is as follows Figure 5 As shown, the reasoning methods that can be implemented by the entire system can be mainly divided into four execution modes:

[0053] The first execution mode is to use only the multimodal accelerated reasoning unit to obtain the reasoning result;

[0054] The second execution method is to use a multi-modal accelerated reasoning unit in combination with a cache system, use the multi-modal accelerated reasoning unit to obtain the reasoning result, and save the reasoning result into a vector database through the cache unit;

[0055] The third execution method is to use the search unit in combination with the multi-modal accelerated reasoning unit. The search unit searches for cached results in the vector database. If there is no cache, the multi-modal accelerated reasoning unit is used to obtain the reasoning result.

[0056] The fourth execution method is to save the inference result obtained in the vector database through the cache unit based on the third execution method.

[0057] Furthermore, the multimodal accelerated reasoning unit consists of three modules: basic model components, model acceleration engine, and high-performance reasoning server. The standard implementation steps are as follows:

[0058] Select the required model components from the basic model components and match them with the multimodal model;

[0059] Use the model acceleration engine to accelerate the selected model components;

[0060] Enable high-performance inference servers to deploy accelerated models to target platforms;

[0061] The multimodal accelerated inference unit only needs simple operations to execute the entire process of model selection, model acceleration, and model deployment. However, the model types supported are limited, and only the model types specified in the basic model components are supported. If new model support is required, new support needs to be added manually, and model acceleration operator adaptation and interface adaptation need to be implemented;

[0062] The basic model components are mainly divided into three categories according to their execution functions: Vision encoder, Fusionmodel, and LLM. Vision encoder is responsible for visual encoding, and Fusionmodel is responsible for fusing the input prompt text and visual encoding into embedding feature. Fusionmodel can generally be divided into two cases: fusion (operation) and transparent transmission according to actual conditions. Users can arbitrarily select models for fusion and / or transparent transmission. When transparent transmission is performed, the input can be directly transparently transmitted to LLM without any operation. Finally, the fused embedding feature is input into LLM to obtain the final reasoning result. The three components can be freely selected and combined in the supporting component libraries Vision encoder model library, Projector model library, and LLM model library. The reasoning process is shown in the attached figure. Figure 3 As shown;

[0063] The model acceleration engine can accelerate supported model components. For transformer structure models, open source tools such as FasterTransformer and Tensorrt-LLM can be used to accelerate the model. For other structure models such as CNN and MLP (multi-layer perceptron model), the open source tool Tensorrt can be used to implement acceleration solutions such as model structure fusion, operator fusion, and quantization. For model components without corresponding accelerators, acceleration can be achieved through cuda. ​​The specific implementation is not limited to the above open source tools. After the corresponding model component acceleration work is implemented, the model acceleration pipeline is packaged and the model component name is added to the model acceleration engine support table. After the model component is selected, the model acceleration engine will enable the model acceleration pipeline according to the provided model component name (that is, select the corresponding model acceleration tool) to automatically accelerate and optimize the model component to improve the reasoning speed of the multimodal model.

[0064] The high-performance inference server encapsulation implements a microservice framework, provides http and grpc protocol support, supports stateless requests and stateful streaming requests, and provides distributed deployment capabilities.

[0065] Furthermore, the search unit provides vector search capabilities. The input is the guiding feature vector to be searched. The guiding feature vector is generated by encoding the input image and prompt text separately and then using the Transformer structure model and the MLP model for feature fusion. The vector length is 512 and the vector type is float. The output is the searched matched vector ID and vector result. The top_k search results can be returned, and the maximum value of k is 100. The search table for search and matching during the search process is the feature vector table corresponding to the name of the basic component selected this time in the multimodal accelerated reasoning unit in the database. The search unit will search the cached data in the feature vector table according to the guiding feature vector. If the inference result is matched, it will be returned directly. If there is no matching result, the multimodal accelerated reasoning unit will be used to obtain the inference result according to the input and return it; the similarity measurement methods supported by the search unit include Euclidean distance (L2), inner product, Hamming distance, Jaccard distance, Tanimoto distance, superstructure distance, and substructure distance. High-speed search is achieved by establishing indexes. The index types include FLAT, IVF_FLAT, IVF_SQ8, IVF_SQ8H, etc. The IVF_FLAT type index is commonly used to meet the needs of most scenarios.

[0066] Furthermore, the cache unit will encode the input image and prompt text through the encoder respectively, and then use the Transformer structure model and the MLP model to perform feature fusion to generate a 512-dimensional guidance feature vector. The guidance feature vector is combined with the current inference result as the cache result. The cache table name uses the basic component selected this time in the multimodal acceleration inference unit to generate a feature vector table. Compared with caching the original data, caching the guidance feature vector can save a lot of storage space. For example, taking 1MiB (1024KiB) original data as an example, after compression, it is a 512-dimensional vector with a storage format of float32. The required storage space is 2048Byte (2KiB), which only occupies 1 / 512 of the original storage space. The compression dimension can be selected according to the actual amount of information, such as 128, 256, 512, 1048, etc.

[0067] This embodiment supports the deployment of multiple Vision encoders, Fusion models, and LLM components. Components under different architectures can be combined to facilitate the verification of reasoning effects. Model components that have been entered into the system model library can be accelerated with one click to reduce reasoning time. Distributed deployment and multi-card deployment are supported to effectively utilize computer resources and improve system throughput. The cache unit takes up little space and can support large-scale guidance feature vector storage. High-speed vector search is supported. When the search result is higher than the set threshold, the cached result can be directly returned to avoid repeated reasoning work, effectively saving computing power and improving the user experience.

[0068] Example 2

[0069] Based on the above embodiment, in a specific embodiment, the above reasoning system can be used for reasoning in two ways: enabling system cache and not enabling system cache. Different reasoning ways will enable different systems according to actual conditions:

[0070] (1) According to actual needs, if the scene content is limited in a fixed scene, some scene reasoning results can be cached in the vector database in advance through the cache unit in the system. At this time, the system cache can be enabled. In this way, when a request arrives, the cache in the vector database will be searched first through the search unit. When the search result meets the set threshold conditions, it can be returned directly. This method can effectively save computing power.

[0071] When the cache mode is enabled, the search unit will be used first when receiving an inference request. The search unit will search the cached data based on the input information and return the matching result directly. If there is no matching result, the multimodal accelerated inference unit obtains the inference result and returns it to the requester, and records the inference result in the cache system.

[0072] (2) In unknown scenarios, the system cache can be disabled. In this case, the multi-modal acceleration inference system will be used to obtain the inference results.

[0073] When the cache mode is not enabled, the input will pass through the multimodal accelerated reasoning unit to obtain the reasoning result and return it to the user. At the same time, if the result needs to be cached, a mark can be set to cache the reasoning result.

[0074] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0075] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A high-performance multimodal large model reasoning system, characterized in that: It includes a multimodal accelerated reasoning unit, a search unit, a cache unit and a database; the multimodal accelerated reasoning unit, the search unit and the cache unit are respectively connected to the database; The multimodal accelerated reasoning unit determines a multimodal model and generates a reasoning result based on multimodal information reasoning; The search unit searches the database for the inference result according to the multimodal information; The cache unit saves the inference result to the database; The multimodal accelerated reasoning unit includes a basic model component, a model acceleration engine and an inference server; the basic model component is associated with a Vision encoder model library, a Projector model library and an LLM model library, and model components are selected from the three model libraries to form a multimodal model; the model acceleration engine accelerates and optimizes the multimodal model, including a transformer model optimizer, a TensorRT optimizer and a cuda framework; the inference server supports the http protocol and the grpc protocol, supports stateless and stateful streaming requests, provides distributed deployment capabilities, deploys the accelerated and optimized multimodal model on a target platform, and calls the multimodal model according to the streaming request; The search unit includes an encoder, a transformer model, an MLP model and a search engine; the multimodal information is sequentially passed through the encoder, the transformer model and the MLP model to generate a guiding feature vector, and the search is performed in the database through the search engine according to the guiding feature vector and the multimodal model to obtain search results; the search table for search matching during the search process is a feature vector table in the database corresponding to the name of the model component selected this time in the multimodal accelerated reasoning unit; The cache unit includes an encoder, a transformer model and an MLP model; the multimodal information passes through the encoder, the transformer model and the MLP model in sequence to generate a guiding feature vector, and the cache unit associates the guiding feature vector with the inference result generated by the multimodal accelerated inference unit, combines them into a cache result, and stores them in a feature vector table named by the model component name corresponding to the multimodal model in the database; The multimodal information includes a picture and a prompt text, the picture and the prompt text are respectively encoded by the encoder, and then the two sets of codes are input into the transformer model for self-attention calculation, and finally the guiding feature vector is obtained by multi-layer perception fusion through the MLP model; The model acceleration engine accelerates supported model components, using the transformer model optimizer and the TensorRT optimizer to achieve model acceleration. For model components that do not have corresponding accelerators, acceleration is achieved through the CUDA framework. After the corresponding model component acceleration work is completed, the model acceleration pipeline is packaged and the model component name is added to the model acceleration engine support table. After the model component is selected, the model acceleration engine will enable the model acceleration pipeline according to the provided model component name, select the corresponding model acceleration tool, and automatically accelerate and optimize the model component to improve the inference speed of the multimodal model.

2. A high-performance multimodal large model reasoning method, characterized in that: A high-performance multi-modal large model reasoning system applied to claim 1 comprises the following steps: Step 1: Select the execution mode and enter the multimodal information; Step 2: According to the execution mode and the multimodal information, a multimodal accelerated reasoning unit is used to perform reasoning, and / or a search unit is used to search in a database; Step 3: Obtain an inference result, and determine whether to use a cache unit to store the inference result in the database according to the execution mode.

3. A high-performance multimodal large model reasoning method according to claim 2, characterized in that: The execution methods include four types. The first type is to use the multimodal accelerated reasoning unit to perform reasoning and obtain the reasoning result; the second type is to use the multimodal accelerated reasoning unit to perform reasoning and obtain the reasoning result, and store the reasoning result in the database through the cache unit; the third type is to use the search unit to search in the database, and if the reasoning result is obtained, the reasoning result is fed back, otherwise the multimodal accelerated reasoning unit is used to perform reasoning and obtain the reasoning result; the fourth type is to use the search unit to search in the database, and if the reasoning result is obtained, the reasoning result is fed back, otherwise the multimodal accelerated reasoning unit is used to perform reasoning and obtain the reasoning result, and store the reasoning result in the database through the cache unit.

4. A high-performance multimodal large model reasoning method according to claim 3, characterized in that: The reasoning process of the first execution mode is: Step 211: the inference server of the multimodal accelerated inference unit receives a streaming request, and calls the multimodal model according to the streaming request; Step 212: Input the multimodal information into the multimodal model to obtain an inference result.

5. A high-performance multimodal large model reasoning method according to claim 3, characterized in that: The reasoning process of the second reasoning method is: Step 221: the inference server of the multimodal accelerated inference unit receives a streaming request, and calls the multimodal model according to the streaming request; Step 222: inputting the multimodal information into the multimodal model to obtain an inference result; Step 223: input the multimodal information into the cache unit, and pass through the encoder, transformer model and MLP model in sequence to generate a guiding feature vector; Step 224: Generate a feature vector table named after the model component according to the selected model component, combine the guidance feature vector and the inference result into a cache result, and save it to the feature vector table.

6. A high-performance multimodal large model reasoning method according to claim 3, characterized in that: The reasoning process of the third reasoning method is: Step 231: input the multimodal information into the search system, and pass through the encoder, transformer model and MLP model in sequence to generate a guiding feature vector; Step 232: searching the database for a corresponding feature vector table according to the model component name selected by the multimodal model; Step 233: searching in the retrieved corresponding feature vector table according to the guiding feature vector, and if there is a corresponding inference result, feeding back the inference result as a search result, and ending the inference; Otherwise, proceed to step 234; Step 234: Input the multimodal information into the multimodal model to obtain an inference result.

7. A high-performance multimodal large model reasoning method according to claim 3, characterized in that: The reasoning process of the fourth reasoning method is: Step 241: input the multimodal information into the search system, and pass through the encoder, transformer model and MLP model in sequence to generate a guiding feature vector; Step 232: searching the database for a corresponding feature vector table according to the model component name selected by the multimodal model; Step 243: searching in the retrieved corresponding feature vector table according to the guiding feature vector, and if there is a corresponding inference result, feeding back the inference result as a search result, and ending the inference; Otherwise, proceed to step 244; Step 244: inputting the multimodal information into the multimodal model, obtaining an inference result, and providing feedback; Step 245: input the multimodal information into the cache unit, and pass through the encoder, transformer model and MLP model in sequence to generate a guiding feature vector; Step 246: determine a feature vector table according to the name of the model component selected by the multimodal model, combine the guidance feature vector and the inference result in step 244 into a cache result, and save it to the feature vector table.

Citation Information

Patent Citations

  • Neural network model reasoning method and device, electronic equipment and readable medium

    CN110796242A

  • ViT and StarGAN-based driver expression recognition method

    CN114005154A

Cited By

  • Multi-modal large model reasoning acceleration method and system and application thereof

    CN122154904A