Task execution method and device, electronic equipment, storage medium and program product

By responding to the model loading instructions in the deep learning model, the intermediate representation information is obtained and task attributes are updated, and the model execution is controlled based on the topology structure, which solves the problem of inaccurate task attribute updates, improves model execution efficiency, and avoids logical conflicts.

CN118568442APending Publication Date: 2024-08-30BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410804245.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

During the task execution process of the deep learning model, the task attributes are updated inaccurately, resulting in low efficiency of the model, and there may be logical conflicts between the updated attributes and the operation tasks, which affects the subsequent task execution of the model.

Method used

By responding to the model loading instruction, the target computing unit obtains the intermediate representation information of the deep learning model from the storage unit, represents the dependency between the operation task and the task attributes based on the topological structure, updates the task attributes, obtains the target intermediate representation information, and based on this information The control model performs operational tasks.

Benefits of technology

It realizes automatic background update of task attributes of the deep learning model, avoids execution logic conflicts, improves task execution efficiency, saves storage space, and ensures the accuracy of operating tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568442A
    Figure CN118568442A
Patent Text Reader

Abstract

The invention provides a task execution method and device, electronic equipment, a storage medium and a program product, and relates to the technical field of artificial intelligence, in particular to the technical field of deep learning and the technical field of large models. According to the specific implementation scheme, in response to a model loading instruction, a target calculation unit obtains intermediate representation information of a deep learning model from a storage unit, the deep learning model is used for executing an operation task based on a task attribute, and the intermediate representation information represents a dependency relationship between the operation task and the task attribute based on a topological structure; according to the topological structure, the target calculation unit performs task attribute updating on the at least one operation task according to attribute updating information read from the storage unit, and target intermediate representation information of the deep learning model is obtained; and based on the target intermediate representation information, the target calculation unit controls the deep learning model to execute the operation task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to the field of deep learning technology and large model technology. Background Art

[0002] With the rapid development of artificial intelligence technology, in scenarios such as image recognition and intelligent customer service, image, text and other data can be processed through algorithm models. For example, images can be classified based on deep learning models, so that image classification results can be obtained more quickly. Summary of the invention

[0003] The present disclosure provides a task execution method, device, electronic device, storage medium and program product.

[0004] According to one aspect of the present disclosure, a task execution method is provided, comprising: in response to a model loading instruction, a target computing unit obtains intermediate representation information of a deep learning model from a storage unit, the deep learning model is used to execute an operation task based on task attributes, and the intermediate representation information characterizes the dependency between the operation task and the task attributes based on a topological structure; according to the topological structure, the target computing unit updates the task attributes of at least one operation task according to the attribute update information read from the storage unit, and obtains target intermediate representation information of the deep learning model; and based on the target intermediate representation information, the target computing unit controls the deep learning model to execute the operation task.

[0005] According to another aspect of the present disclosure, a task execution device is provided, including: a storage unit storing intermediate representation information and attribute update information of a deep learning model; a target computing unit configured to: in response to a model loading instruction, obtain the intermediate representation information of the deep learning model from the storage unit, the deep learning model being used to execute an operation task based on task attributes, the intermediate representation information characterizing the dependency between the operation task and the task attributes based on a topological structure; update the task attributes of at least one operation task according to the attribute update information read from the storage unit according to the topological structure, and obtain target intermediate representation information of the deep learning model; and control the deep learning model to execute the operation task based on the target intermediate representation information.

[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method provided according to an embodiment of the present disclosure.

[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method provided according to an embodiment of the present disclosure.

[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the method provided according to the embodiment of the present disclosure is implemented.

[0009] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0011] Figure 1 An exemplary system architecture to which the task execution method and device according to an embodiment of the present disclosure can be applied is schematically shown;

[0012] Figure 2 A flowchart of a task execution method according to an embodiment of the present disclosure is schematically shown;

[0013] Figure 3 The application scenario diagram of the task execution method according to the embodiment of the present disclosure is schematically shown;

[0014] Figure 4 A diagram schematically shows an application scenario of a task execution method according to another embodiment of the present disclosure;

[0015] Figure 5 A diagram schematically shows an application scenario of a task execution method according to another embodiment of the present disclosure;

[0016] Figure 6 A block diagram schematically shows a task execution device according to an embodiment of the present disclosure; and

[0017] Figure 7 A block diagram of an electronic device suitable for implementing a task execution method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0018] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0019] In the technical solution disclosed in the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and do not violate public order and good morals.

[0020] The inventors found that deep learning models can be deployed on electronic devices such as cloud service terminals and servers to perform tasks such as target detection and text prediction. For example, deep learning models can perform text prediction by performing operations such as text encoding, keyword feature attention fusion, and feature normalization. The setting of task attributes has a great impact on the efficiency of the computing unit in the electronic device to control the deep learning model to perform operational tasks. The process of updating the task attributes of the deep learning model will also affect the subsequent task execution of the deep learning model.

[0021] Embodiments of the present disclosure provide a task execution method, device, electronic device, storage medium and program product. The task execution method includes: in response to a model loading instruction, a target computing unit obtains intermediate representation information of a deep learning model from a storage unit, the deep learning model is used to perform an operation task based on task attributes, and the intermediate representation information characterizes the dependency between the operation task and the task attribute based on a topological structure; according to the topological structure, the target computing unit updates the task attribute of at least one operation task according to the attribute update information read from the storage unit, and obtains the target intermediate representation information of the deep learning model; and based on the target intermediate representation information, the target computing unit controls the deep learning model to perform the operation task.

[0022] Figure 1 An exemplary system architecture to which the task execution method and apparatus according to an embodiment of the present disclosure can be applied is schematically shown.

[0023] It should be noted that Figure 1 The examples shown are only examples of system architectures to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. For example, in another embodiment, the exemplary system architecture to which the task execution method and apparatus can be applied may include a terminal device, but the terminal device may implement the task execution method and apparatus provided by the embodiments of the present disclosure without interacting with the server.

[0024] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.

[0025] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as knowledge reading applications, web browser applications, search applications, instant messaging tools, email clients and / or social platform software, etc. (only as examples).

[0026] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0027] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for the content browsed by the user using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to the user request) to the terminal device.

[0028] It should be noted that the task execution method provided in the embodiment of the present disclosure can generally be executed by the terminal device 101, 102, or 103. Accordingly, the task execution device provided in the embodiment of the present disclosure can also be set in the terminal device 101, 102, or 103.

[0029] Alternatively, the task execution method provided in the embodiment of the present disclosure may also be generally executed by the server 105. Accordingly, the task execution device provided in the embodiment of the present disclosure may generally be arranged in the server 105. The task execution method provided in the embodiment of the present disclosure may also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the task execution device provided in the embodiment of the present disclosure may also be arranged in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0030] For example, the server 105 can execute the task execution method provided by the present disclosure, thereby realizing the deployment, reasoning or training of the deep learning model under the condition that the storage space of the storage unit is occupied less.

[0031] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0032] Figure 2 The flowchart of the task execution method according to the embodiment of the present disclosure is schematically shown.

[0033] like Figure 2 As shown, the task execution method includes operations S210 to S230.

[0034] In operation S210 , in response to a model loading instruction, a target computing unit obtains intermediate representation information of a deep learning model from a storage unit.

[0035] In operation S220, according to the topological structure, the target computing unit updates the task attributes of at least one operation task according to the attribute update information read from the storage unit to obtain target intermediate representation information of the deep learning model; and

[0036] In operation S230, based on the target intermediate representation information, the target computing unit controls the deep learning model to perform an operation task.

[0037] According to an embodiment of the present disclosure, the target computing unit may include at least one of a central processing unit (CPU), a graphics processing unit (GPU), and an artificial intelligence computing unit. The artificial intelligence computing unit may include at least one of a neural network processing unit (NPU), a tensor processing unit (TPU), and a Kunlun core.

[0038] According to an embodiment of the present disclosure, the storage unit may include any type of storage device having the function of storing data and reading and writing data, such as at least one of a disk drive, a random access memory (RAM), a dynamic random access memory (DRAM), etc.

[0039] According to an embodiment of the present disclosure, a deep learning model is used to execute an operation task based on task attributes, and intermediate representation information characterizes the dependency between the operation task and the task attributes based on a topological structure.

[0040] In some embodiments, the operation task may include a computing task of a deep learning model, such as a neuron computing task, a feedforward layer computing task, an attention task, and the like. Task attributes may characterize attribute parameters that control the execution of the operation task, such as the dimension of feature data, the format and type of input data, and the like. Alternatively, the task attributes may also include a partitioning strategy for partitioning input data, an allocation strategy for allocating computing tasks to different target computing units, and the like. The embodiments of the present disclosure do not limit the specific types of task attributes, and those skilled in the art may select them according to actual needs.

[0041] According to an embodiment of the present disclosure, the intermediate representation information may be an operation task and task attribute of a deep learning model recorded in an IR (Intermediate Representation) format. The type of topological structure may include a structure tree type, the operation task may be used as a root node of the structure tree, and the task attribute may be used as a leaf node of the structure tree. The edge relationship between the nodes of the structure tree may represent the dependency relationship between the operation task and the task attribute, and may also represent the dependency relationship between different task attributes.

[0042] According to the topological structure, the target computing unit updates the task attributes of at least one operation task according to the attribute update information read from the storage unit, and can update the task attributes in the intermediate representation information according to the dependency relationship represented by the topological structure to avoid execution logic conflicts between the operation task and the task attributes in the updated target intermediate representation information, and can also avoid execution logic conflicts between different task attributes, which may lead to failure of operation task execution.

[0043] According to an embodiment of the present disclosure, the attribute update information may include target task attributes that need to be added, deleted, or modified for the operation task of the current deep learning model. The attribute update information may record the target task attributes based on the same format as the intermediate representation information.

[0044] According to an embodiment of the present disclosure, based on the target intermediate representation information, the target computing unit controls the deep learning model to perform the operation task, which may include the target computing unit controlling the deep learning model to perform the operation task according to the task attributes represented by the updated intermediate representation information.

[0045] According to an embodiment of the present disclosure, the model loading instruction may be generated based on the interactive operation of the target object, or may be generated based on preset configuration information, such as time configuration information. The task execution method provided by the embodiment of the present disclosure is executed by detecting the model loading instruction, thereby obtaining the output result obtained by the deep learning model executing one or more operation tasks.

[0046] In one example, the target computing unit may be a processor installed in a client of the target object. The target object may locally control the deep learning model to perform an operation task based on the client.

[0047] In one example, the target computing unit may also be deployed on a cloud service end, and the target object may remotely control the target computing unit to perform operation tasks by operating a client that is in communication with the cloud service end.

[0048] According to the embodiments of the present disclosure, by constructing the intermediate representation information of the deep learning model through the topological structure that characterizes the dependency relationship between the operation task and the task attribute, it is possible to use the topological structure to accurately query the specific attributes of the operation task that needs to be updated, so that the attribute task update operation can be performed on the operation task more accurately based on the attribute update information, avoiding the execution logic conflict between the updated target task attribute and the operation task, or the execution logic conflict between the target task attribute and the task attribute that has not been updated in the intermediate representation information. And the attribute update information can only record the task attribute difference between the target task attribute and the intermediate representation information, and it is not necessary to store the framework of the entire deep learning model, which can save the storage space of the storage unit. By loading the deep learning model through the target intermediate representation information, the target computing unit can realize the automatic background update of the task attributes of the deep learning model, so that the target computing unit can more accurately control the deep learning model to perform the operation task and improve the task execution efficiency.

[0049] According to an embodiment of the present disclosure, the target computing unit obtains the intermediate representation information of the deep learning model from the storage unit, which may include: the target computing unit reads a byte sequence representing the deep learning model from the storage unit; and the target computing unit performs a deserialization operation on the byte sequence to obtain the intermediate representation information.

[0050] According to an embodiment of the present disclosure, the byte sequence representing the deep learning model may be a file stored in a storage unit based on a binary format. The byte sequence may be deserialized into intermediate representation information by performing a deserialization operation on the byte sequence.

[0051] In some embodiments, the target computing unit performs a deserialization operation on the byte sequence, and can convert the binary file representing the deep learning model into a json format file based on the deserialization protocol. The intermediate representation information can be a json format file, which can enable the nodes of the topological structure to store the attribute name, attribute type, attribute value and other related information of the task attribute, thereby realizing data decoupling between the operation task and the task attribute in the deep learning model, and between different task attributes, so that the target task attribute can more accurately update the task attribute of the intermediate representation information, reduce the complexity of task attribute update, and avoid execution logic conflicts between task attributes.

[0052] Figure 3 The application scenario diagram of the task execution method according to an embodiment of the present disclosure is schematically shown.

[0053] like Figure 3 As shown, the 1.0 version initial model file can be a binary file stored in a storage unit. For example, it can be a binary file built based on the protobuf protocol. The 1.0 version initial model file is input into the loading module 310, and the target computing unit can control the deep learning model to perform the operation task based on the task attributes of the 1.0 version initial model file. The conversion module 320 can read the 1.0 version initial model file from the storage unit related to the loading module 310, and perform a deserialization operation on the 1.0 version initial model file based on the target computing unit to obtain the 1.0 version intermediate representation information represented by the json format. By comparing the version identifier of the 1.1 version attribute update information with the version identifier of the 1.0 version intermediate representation information, it can be determined that the 1.0 version intermediate representation information needs to be updated. The 1.0 version intermediate representation information and the 1.1 version attribute update information can be input into the update module 330, and the target computing unit performs task attribute updates based on the topological structure of the 1.0 version intermediate representation information and the 1.1 version attribute update information to obtain the 1.1 version target intermediate representation information. The 1.1 version target intermediate representation information is transmitted to the task execution module 340. The target computing unit can control the deep learning model to execute the operation task based on the 1.1 version target intermediate representation information to obtain the task execution result.

[0054] According to an embodiment of the present disclosure, based on the topological structure, the target computing unit may update the task attributes of at least one operation task according to the attribute update information read from the storage unit, which may include: according to the topological structure and the attribute update path of the attribute update information, the target computing unit determines the attribute of the task to be processed from multiple task attributes; and based on the update type of the attribute update information, the target computing unit performs an update operation on the attribute of the task to be processed.

[0055] According to an embodiment of the present disclosure, the attribute update path may indicate the dependency relationship between the target task attribute in the attribute update information and the operation task and task attribute in the intermediate representation information. For example, the target computing unit may determine the pending task attribute that needs to be updated in the intermediate representation information based on the attribute update path.

[0056] In some embodiments, the update type may include a deletion type. Based on the update type of the attribute update information, the target computing unit may perform an update operation on the attribute of the task to be processed, which may include: based on the deletion type, the target computing unit deletes the attribute name, attribute value and other attribute content information of the attribute of the task to be processed in the intermediate representation information.

[0057] In some embodiments, the update type may further include a modification type. Based on the update type of the attribute update information, the target computing unit may perform an update operation on the attribute of the pending task, which may include: based on the modification type, the target computing unit modifies the attribute information of the pending task attribute in the intermediate representation information to the target attribute information in the attribute update information. For example, the attribute name, attribute type, attribute value, etc. of the pending task attribute may be modified.

[0058] According to an embodiment of the present disclosure, based on the update type of the attribute update information, the target computing unit performs an update operation on the attribute of the task to be processed and may also include: according to the add operation type, the target computing unit adds a target task attribute to the task to be processed that is related to the attribute of the task to be processed, there is a task execution dependency relationship between the target task attribute and the attribute of the task to be processed, the update type includes the add operation type, and the attribute update information includes the target task attribute.

[0059] According to an embodiment of the present disclosure, when the update type is an add operation type, the attribute update path may indicate the location where the target task attribute needs to be added in the pending operation task that needs to be updated. For example, the attribute update path may indicate the task execution dependency (or dependency) between the pending task attribute and the target task attribute, so that the target task attribute may be added to the intermediate representation information based on the attribute update path, and a task execution dependency is added between the target task attribute and the pending task attribute.

[0060] Figure 4 An application scenario diagram of a task execution method according to another embodiment of the present disclosure is schematically shown.

[0061] like Figure 4 As shown, the intermediate representation information 410 to be processed may include the A operation task and multiple task attributes having a dependency relationship with the A operation task. The multiple task attributes may include the A task attribute 411 and the B task attribute 412. The attribute update information may include the addition operation type, the attribute update path, and the target task attribute 421. Based on the addition operation type, the target computing unit may determine that the operation task to be processed includes the A operation task according to the attribute update path, and the task attribute to be processed is the B task attribute 412. The target computing unit adds the target task attribute 421 to the B task attribute 421, and constructs a task execution dependency relationship between the target task attribute 421 and the B task attribute 421. In this way, the target intermediate representation information 420 may be obtained.

[0062] In some embodiments, an operation task may include multiple task attributes. For example, multiple task attributes of an operation task OP1 may be represented as "OP1":{"A":"aaa", "B":{"BB":"bbb"}, "C":"ccc", ...}. Among them, "A", "B" and "C" may represent attribute names of task attributes, "BB" may represent task attribute types, and "aaa", "bbb" and "ccc" may represent attribute values.

[0063] The attribute update information "patch" can be expressed as: "patch": [{ "op": "add", "path": " / OP1 / Z", "value": "zzz"}]. Among them, "op" can indicate the attribute update type, "add" can indicate the add operation type, "path" can indicate the attribute update path name, " / OP1 / Z" can indicate the attribute update path, and "value" can indicate the target attribute value of the target attribute name "Z".

[0064] The target computing unit can determine that the task to be processed is the operation task OP1 in the intermediate representation information based on the attribute update path " / OP1 / Z". The dependency relationship between the multiple task attributes in the operation task OP1 is a parallel relationship, so it can be determined that the attribute name of the attribute of the task to be processed is "C", and the attribute name and attribute value of the target task attribute that has a parallel relationship with the attribute of the task to be processed can be added after the attribute of the task to be processed. In the obtained target intermediate representation information, the multiple task attributes of the operation task OP1 can be expressed as: "OP1":{"A":"aaa", "B":{"BB":"bbb"}, "C":"ccc","Z":"zzz" ...}.

[0065] According to the embodiments of the present disclosure, the attribute update information only needs to record the attribute update type, attribute update path and target task attributes, so that the amount of information stored in the storage unit is very small, and there is no need to store other redundant information, thereby reducing the storage space occupied by the storage unit and improving the overall efficiency of the target computing unit in controlling the deep learning model to perform operation tasks.

[0066] In some embodiments, the target computing unit can retrieve the version number of the model file currently being deserialized and the version number of the attribute update information during the deserialization process for the model file representing the deep learning model, and load the attribute update information file if they are inconsistent. The attribute update information file can also be constructed based on the yaml file rules, by calling related functions to obtain the attribute update path, attribute update type and target attribute information from the file, and perform format conversion based on the json format to obtain attribute update information compatible with the intermediate representation information format.

[0067] In some examples, the attribute type of the target task attribute may include the function name called by the operation task, the target core that executes the operation task, etc. The attribute value of the target task attribute may include the data type of the input data, the data name, the target core name, etc.

[0068] During the deserialization process, part of the parsed intermediate representation information can be retrieved based on the attribute update path to obtain the pending operation task or the pending task attribute. The attribute update information corresponding to the pending task or the pending task attribute is merged with the intermediate representation information to update the intermediate representation information until all attribute update information is merged with the corresponding pending operation task to obtain the target intermediate representation information. The target computing unit can perform serialization operations on the target intermediate representation information to deploy the deep learning model according to the new target task attributes, and control the deep learning model to perform the operation task based on the new target task attributes.

[0069] According to an embodiment of the present disclosure, the attribute update information includes a plurality of sequentially arranged attribute update information, and among the plurality of attribute update information, the attribute update information arranged first records the task attribute difference information between the attribute update information arranged later.

[0070] Figure 5 An application scenario diagram of a task execution method according to yet another embodiment of the present disclosure is schematically shown.

[0071] like Figure 5 As shown, the attribute update information related to the initial version of the model file 501 may include first attribute update information 510 and second attribute update information 520 arranged in sequence. The first attribute update information 510 may include first target task attribute 511 and second target task attribute 512, and the second attribute update information 520 may include third target task attribute 521. The task attribute difference information between the first attribute update information 510 and the second attribute update information 520 may be the newly added third target task attribute 521.

[0072] like Figure 5As shown, in the case where a model loading instruction is detected, the task attributes of the intermediate representation information of the initial version of the model file 501 can be updated based on the first attribute update information 510 and the second attribute update information 520. For example, based on the A path, the A target task attribute with the task execution dependency and the A target task attribute value can be added to the pending task attribute related to the A operation task in the intermediate representation information. It is also possible to modify the attribute value of the pending task attribute (B task attribute) related to the A operation task in the intermediate representation information to the B target task attribute value based on the B path. For another example, it is also possible to delete the C target task attribute value of the C task attribute from the pending task attribute (C task attribute) related to the C operation task in the intermediate representation information based on the C path.

[0073] According to the embodiments of the present disclosure, the storage unit can edit the subsequent attribute update information based on the target task attributes that needed to be updated last time by storing the task attribute difference information between the subsequent attribute update information and the previous attribute update information, thereby avoiding redundant storage of all target task attributes that need to be updated this time, and reducing the storage space occupied by the storage unit. At the same time, by forming an attribute update information chain through a plurality of sequentially arranged attribute update information, it is only necessary to obtain each attribute update information from the original intermediate representation information to the latest version of the attribute update information. The target computing unit can sequentially fuse each attribute update information and the original intermediate representation information along the attribute update information chain, and obtain a new version of the target intermediate representation information, and obtain a deep learning model of the latest model framework.

[0074] In some examples, the multiple attribute update information arranged in sequence may each have an update version identifier, and the specified attribute update information corresponding to the specified version identifier and the previous specified attribute update information arranged before the specified attribute update information may be obtained by specifying the version identifier. Thus, the task attributes of the intermediate representation information may be updated according to the previous specified attribute update information and the specified attribute update information, thereby achieving flexibility and scalability in updating the deep learning model framework, and achieving version upgrade compatibility between multiple versions of the deep learning model framework.

[0075] According to an embodiment of the present disclosure, the execution result obtained by the deep learning model when executing the task based on the task attributes includes at least one of the following: an image classification result and a text output result.

[0076] In some embodiments, the initial data input into the deep learning model may be an initial text, the initial text may be a question text input by a user, and the text output result may be an answer text corresponding to the question text.

[0077] In some embodiments, the initial data input into the deep learning model may be an initial image, the initial image may be an image to be classified input by a user, and the image classification result may be an image classification result corresponding to the image to be classified, and the image classification result may be, for example, a cat, a dog, etc.

[0078] It is understood that the above description of the present disclosure is based on the example that the input data of the deep learning model is text and image, but the present disclosure is not limited thereto, and the input data of the deep learning model may also be other forms of data such as audio, program scripts, etc.

[0079] Figure 6 The block diagram of a task execution device according to an embodiment of the present disclosure is schematically shown.

[0080] like Figure 6 As shown, the task execution device 600 includes: a storage unit 610 and a target calculation unit 620.

[0081] The storage unit 610 stores intermediate representation information and attribute update information of the deep learning model;

[0082] The target computing unit 620 is configured to: in response to a model loading instruction, obtain the intermediate representation information of the deep learning model from the storage unit, the deep learning model is used to perform the operation task based on the task attributes, and the intermediate representation information characterizes the dependency between the operation task and the task attributes based on the topological structure; according to the topological structure, update the task attributes of at least one operation task according to the attribute update information read from the storage unit to obtain the target intermediate representation information of the deep learning model; and based on the target intermediate representation information, control the deep learning model to perform the operation task.

[0083] According to an embodiment of the present disclosure, the target computing unit is also configured to perform the following operations to update the task attributes of at least one operation task according to the topology structure and the attribute update information read from the storage unit: determine the attributes of the task to be processed from multiple task attributes according to the topology structure and the attribute update path of the attribute update information; and perform an update operation on the attributes of the task to be processed based on the update type of the attribute update information.

[0084] According to an embodiment of the present disclosure, the target computing unit is also configured to perform the following operations to perform an update operation on the attributes of the task to be processed based on the update type of the attribute update information: according to the add operation type, add the target task attribute to the pending operation task related to the attribute of the task to be processed, there is a task execution dependency relationship between the target task attribute and the attribute of the task to be processed, the update type includes the add operation type, and the attribute update information includes the target task attribute.

[0085] According to an embodiment of the present disclosure, the attribute update information includes a plurality of sequentially arranged attribute update information, and among the plurality of attribute update information, the attribute update information arranged first records the task attribute difference information between the attribute update information arranged later.

[0086] According to an embodiment of the present disclosure, the target computing unit is also configured to perform the following operations to obtain the intermediate representation information of the deep learning model from the storage unit: the target computing unit reads a byte sequence representing the deep learning model from the storage unit; and performs a deserialization operation on the byte sequence to obtain the intermediate representation information.

[0087] According to an embodiment of the present disclosure, the execution result obtained by the deep learning model when executing the task based on the task attributes includes at least one of the following: an image classification result and a text output result.

[0088] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0089] According to an embodiment of the present disclosure, an electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.

[0090] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method as described above.

[0091] According to an embodiment of the present disclosure, a computer program product includes a computer program, and when the computer program is executed by a processor, the computer program implements the method as described above.

[0092] Figure 7 A block diagram of an electronic device suitable for implementing a task execution method according to an embodiment of the present disclosure is schematically shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0093] like Figure 7As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0094] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0095] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the task execution method. For example, in some embodiments, the task execution method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the task execution method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to execute the task execution method in any other appropriate manner (e.g., by means of firmware).

[0096] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0097] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0098] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0099] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0100] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0101] A computer system may include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises through computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server, a server in a distributed system, or a server combined with a blockchain.

[0102] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0103] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A task execution method, comprising: In response to the model loading instruction, the target computing unit obtains intermediate representation information of the deep learning model from the storage unit, wherein the deep learning model is used to perform the operation task based on the task attribute, and the intermediate representation information characterizes the dependency relationship between the operation task and the task attribute based on the topological structure; According to the topological structure, the target computing unit updates the task attributes of at least one of the operation tasks according to the attribute update information read from the storage unit to obtain the target intermediate representation information of the deep learning model; as well as Based on the target intermediate representation information, the target computing unit controls the deep learning model to perform an operation task.

2. The method according to claim 1, wherein: The target computing unit updating the task attribute of at least one of the operation tasks according to the attribute update information read from the storage unit according to the topological structure includes: According to the topological structure and the attribute update path of the attribute update information, the target computing unit determines the attribute of the task to be processed from the plurality of task attributes; and Based on the update type of the attribute update information, the target computing unit performs an update operation on the attribute of the task to be processed.

3. The method according to claim 2, wherein: Based on the update type of the attribute update information, the target computing unit performs an update operation on the attribute of the task to be processed, including: According to the adding operation type, the target computing unit adds a target task attribute to the pending operation task related to the pending task attribute, and there is a task execution dependency relationship between the target task attribute and the pending task attribute. The update type includes the adding operation type, and the attribute update information includes the target task attribute.

4. The method according to any one of claims 1 to 3, wherein: The attribute update information includes a plurality of sequentially arranged attribute update information, wherein the attribute update information in the first order records the task attribute difference information between the attribute update information in the second order.

5. The method according to claim 1, wherein: The target computing unit obtains the intermediate representation information of the deep learning model from the storage unit, including: The target computing unit reads a byte sequence representing the deep learning model from the storage unit; and The target computing unit performs a deserialization operation on the byte sequence to obtain the intermediate representation information.

6. The method according to claim 1, wherein: The execution result obtained by the deep learning model executing the task based on the task attribute includes at least one of the following: Image classification results and text output results.

7. A task execution device, comprising: A storage unit storing intermediate representation information and attribute update information of a deep learning model; The target computing unit is configured as: In response to a model loading instruction, obtaining intermediate representation information of a deep learning model from a storage unit, wherein the deep learning model is used to perform an operation task based on a task attribute, and wherein the intermediate representation information characterizes a dependency relationship between the operation task and the task attribute based on a topological structure; According to the topological structure, updating the task attribute of at least one of the operation tasks according to the attribute update information read from the storage unit, to obtain the target intermediate representation information of the deep learning model; as well as Based on the target intermediate representation information, the deep learning model is controlled to perform an operation task.

8. The device according to claim 7, wherein: The target computing unit is further configured to perform the following operations to update the task attributes of at least one of the operation tasks according to the topology structure and the attribute update information read from the storage unit: Determining a task attribute to be processed from a plurality of task attributes according to the topological structure and the attribute update path of the attribute update information; as well as Based on the update type of the attribute update information, an update operation is performed on the attribute of the task to be processed.

9. The device according to claim 8, wherein: The target computing unit is further configured to perform the following operations to update the attributes of the to-be-processed task based on the update type of the attribute update information: According to the adding operation type, a target task attribute is added to the pending operation task related to the pending task attribute, and there is a task execution dependency relationship between the target task attribute and the pending task attribute. The updating type includes the adding operation type, and the attribute updating information includes the target task attribute.

10. The device according to any one of claims 7 to 9, wherein: The attribute update information includes a plurality of sequentially arranged attribute update information, wherein the attribute update information in the first order records the task attribute difference information between the attribute update information in the second order.

11. The device according to claim 7, wherein: The target computing unit is further configured to perform the following operations to obtain the intermediate representation information of the deep learning model from the storage unit: The target computing unit reads a byte sequence representing the deep learning model from the storage unit; and A deserialization operation is performed on the byte sequence to obtain the intermediate representation information.

12. The device according to claim 7, wherein: The execution result obtained by the deep learning model executing the task based on the task attribute includes at least one of the following: Image classification results and text output results.

13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.

15. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.

Citation Information

Cited By

  • Model calculation scheduling method and device, equipment, medium and product

    CN119806814A