Customized service deployment method and device, equipment and storage medium
Customized service deployment in the computing network is carried out through customized request configuration files and preset vector libraries, which solves the problem of high resource overhead, achieves low-overhead deployment and efficient services, and load balancing to adapt to business changes.
Patent Information
- Application Number
- CN202311541905.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2024-10-18
AI Technical Summary
Existing customized service deployment has the problem of high resource overhead in the computing network, especially when model versions are updated frequently and business scenarios are expanded, resulting in resource waste and low service deployment efficiency.
Through customized request configuration files, obtain the target user's service generation request, and deploy the service on the optimal computing power node. Use the preset vector library to merge, process and cache task vectors to avoid frequent scheduling and transmission in the computing power network. Model mirroring, dynamically adjust the number of computing nodes to respond to changes in business request volume.
It achieves low-overhead deployment on appropriate computing power nodes, reduces resource waste in model version updates, improves service deployment efficiency and load balancing, and reduces transmission overhead and startup time.
Smart Images

Figure CN118803045A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, and in particular to a customized service deployment method, device, equipment and storage medium. Background Art
[0002] As the visual needs of scenes such as urban governance, security monitoring, smart transportation and smart campuses become increasingly diversified, users' customized needs for artificial intelligence visual tasks continue to increase. Using computing power networks to deploy customized artificial intelligence tasks to provide services to users is a reliable solution to meet users' customized needs by rationally calling overall resources. The characteristic of customized artificial intelligence service deployment under the computing power network to provide algorithm services to users is that it can find suitable computing power nodes through the reasonable scheduling of overall resources, and deploy customized artificial intelligence services on the computing power nodes, which has the advantages of low latency and stable service performance.
[0003] At present, the more popular deployment solutions for customized artificial intelligence services under the computing network include: 1. Small model fine-tuning combined with a designated resource pool deployment solution; 2. Small model fine-tuning combined with computing network scheduling deployment solution; 3. General large model combined with computing network scheduling to provide general service deployment solution. For customized tasks, Solution 1 requires developers to perform customized training and fine-tuning based on the business data provided by users to obtain task-specific small models; customize the development of pre- and post-processing of the forward reasoning process of the model service according to user needs; encapsulate the small model obtained by customized training and the overall pre- and post-processing reasoning process through mirroring to fix the required deployment software environment; and transmit the encapsulated service image to the designated computing cluster for deployment according to user needs to provide services to users. Solution 2 also requires developers to perform customized training and fine-tuning based on the business data provided by users to obtain task-specific small models; customize the development of the model service forward reasoning process for pre- and post-processing according to user needs; encapsulate the small model obtained from customized training and the overall pre- and post-processing reasoning process in the form of images to fix the required deployment software environment; the computing network dispatches computing resources from the idle resource pool based on user needs, and transmits the service image to a specific computing cluster via a dedicated line for deployment, so as to provide services to users. Solution 3 requires training with a large amount of business pre-training data to obtain a large visual model with strong capabilities, and then deploys it on each node of the computing network to provide general services to users.
[0004] For the existing deployment solutions for customized tasks, the deployment solutions of small model fine-tuning combined with specified resource pools and small model fine-tuning combined with computing network scheduling require different container images to be deployed for different customized services. At the same time, the service scheduling and deployment overhead between computing networks is high. The entire service image needs to be transmitted between different computing resource pools in the computing network, and the network bandwidth and time overhead of the transmission are extremely high. The general large model combines computing network scheduling to provide a deployment solution for general services. The general capabilities of the visual large model are not enough to cover all visual customized tasks. With the expansion of business scenarios and the frequent occurrence of long-tail problems, the demand for model training updates will be continuously generated, and the model version updates will be relatively frequent. After the model is updated, the new model needs to be deployed on the entire computing network. The deployment of customized services under the computing network also has the problem of high resource overhead. Summary of the invention
[0005] The embodiments of the present application provide a customized service deployment method, apparatus, device and storage medium to solve the technical problem of high resource overhead in the existing customized service deployment.
[0006] In a first aspect, an embodiment of the present application provides a customized service deployment method, including:
[0007] Obtaining a service generation request from a target user for a customized service;
[0008] The service generation request carries the network location of the target user and a customized request profile, wherein the customized request profile includes a task vector and a multimodal prompt of the customized task, wherein the multimodal prompt is used to indicate a data type of task data inputted by the customized task, and the task vector is obtained by encoding the task data;
[0009] Determine the optimal computing power node corresponding to the customized task in the computing power network according to the network position;
[0010] The customized request configuration file is sent to the optimal computing power node for service deployment.
[0011] In one embodiment, the customized request configuration file further includes a task vector index; and sending the customized request configuration file to the optimal computing power node for service deployment includes:
[0012] Determine a vector temporary storage area corresponding to the target user from a user temporary storage area of a preset vector library, and cache the task vector in the vector temporary storage area; the vector library is set in a data node of the computing power network;
[0013] According to the task vector index, obtaining a public task vector corresponding to the customized task from a public area of the preset vector library;
[0014] The task vector and the common task vector are combined to obtain a customized request vector corresponding to the customized task;
[0015] The customized request vector is sent to the optimal computing power node, and customized service deployment is performed on the visual multimodal model preset in the optimal computing power node; the customized request vector is used to control the output result of the visual multimodal model for the customized task.
[0016] In one embodiment, after caching the task vector in the vector temporary storage area, the method further includes:
[0017] When a sharing request of the target user is detected, a task vector list of the public area and task information of the task vector are acquired; the task information includes user information of the target user and usage scenario information of the task vector;
[0018] Verifying the task vector based on the task vector list to determine whether the task vector has been stored in the public area;
[0019] If not, a target vector index bound to the task vector is generated based on the task information, and the target vector index is saved in the task vector list, so as to save the task vector in the public area.
[0020] In one embodiment, after sending the customized request configuration file to the optimal computing power node for service deployment, the method further includes:
[0021] Detecting idle computing nodes in the computing network at intervals of a first preset time;
[0022] When it is detected that there is a target computing power node that is better than the optimal computing power node among the idle computing power nodes, the customized request configuration file is sent to the target computing power node to migrate the service deployment of the customized task;
[0023] The optimal computing power node is released in grayscale.
[0024] In one embodiment, after sending the customized request configuration file to the optimal computing power node for service deployment, the process further includes:
[0025] Obtaining the business request volume of the target user for the customized task;
[0026] The number of nodes of the optimal computing power is controlled according to the business request amount.
[0027] In one embodiment, controlling the number of nodes of the optimal computing power according to the service request amount includes:
[0028] Determine the number of target nodes required to execute the customized task according to the business request volume, and obtain the current number of first nodes for the customized task;
[0029] If the first number of nodes is greater than the target number of nodes, determining and releasing releasable nodes in the optimal computing power nodes that exceed the target number of nodes according to the priorities of the computing power nodes of the customized task;
[0030] If the first number of nodes is less than the target number of nodes, obtain idle nodes in the computing network, determine schedulable nodes according to the priorities of the idle nodes, and perform service deployment of the customized task in the schedulable nodes;
[0031] When it is detected that the service request amount is cleared to zero, and the duration of the clearing to zero exceeds a second preset duration, the optimal computing power node is released.
[0032] In one embodiment, the customized request profile also includes a control threshold and a post-processing orchestration process dictionary, wherein the control threshold is used to control the confidence of the customized task result; after sending the customized request profile to the optimal computing power node for service deployment, it also includes:
[0033] A post-processing process of the customized task is generated according to the post-processing orchestration process dictionary; wherein the post-processing orchestration process dictionary is an ordered dictionary, the index key in the ordered dictionary represents the post-processing process, and the key value of the ordered dictionary represents the process parameter of the post-processing flow.
[0034] In a second aspect, an embodiment of the present application provides a customized service deployment device, including:
[0035] A customized request module is used to obtain a service generation request from a target user for a customized service;
[0036] The service generation request carries the network location of the target user and a customized request profile, wherein the customized request profile includes a task vector and a multimodal prompt of the customized task, wherein the multimodal prompt is used to indicate a data type of task data inputted by the customized task, and the task vector is obtained by encoding the task data;
[0037] A node allocation module, used to determine the optimal computing node corresponding to the customized task in the computing network according to the network position;
[0038] The service deployment module is used to send the customized request configuration file to the optimal computing power node for service deployment.
[0039] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory storing a computer program, wherein when the processor executes the program, the steps of the customized service deployment method described in the first aspect are implemented.
[0040] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the customized service deployment method described in the first aspect are implemented.
[0041] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the customized service deployment method described in the first aspect.
[0042] The customized service deployment method, device, equipment and storage medium provided in the embodiments of the present application respond to the service generation request of the target user through a customized request configuration file, and perform service deployment in the optimal computing power node to provide customized services to the target user. The output result of the customized task is guided by the task vector in the customized request configuration file, and the customized request configuration file is transmitted between the computing power networks, so that the customized task can be deployed with low overhead in the appropriate computing power nodes, without the need to schedule and store the algorithm model or service image under the computing power network. At the same time, it can avoid frequent model version updates caused by frequent business scenario expansion and long-tail problems, and solve the problem of high overhead of customized service deployment. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0044] Figure 1 It is a flowchart of a customized service deployment method provided in an embodiment of the present application;
[0045] Figure 2 It is a schematic diagram of a customized service architecture provided in an embodiment of the present application;
[0046] Figure 3 It is a schematic diagram of the generation process of a customized request configuration file provided in an embodiment of the present application;
[0047] Figure 4 It is a schematic diagram of the operation flow of the vector library provided in the embodiment of the present application;
[0048] Figure 5 It is a schematic diagram of the migration process of the computing power node provided in the embodiment of the present application;
[0049] Figure 6 It is a schematic diagram of the architecture of the computing power network provided in the embodiment of the present application;
[0050] Figure 7 This is one of the schematic diagrams of the computing resource scheduling process provided in the embodiment of the present application;
[0051] Figure 8 This is the second schematic diagram of the computing resource scheduling process provided in the embodiment of the present application;
[0052] Fig. 9 This is the third schematic diagram of the computing resource scheduling process provided in the embodiment of the present application;
[0053] Fig.10 It is a structural diagram of a customized service deployment device provided in an embodiment of the present application;
[0054] Fig.11 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0056] Figure 1 A flow chart of a customized service deployment method provided in an embodiment of the present application. Figure 1 The customized service deployment method provided in the embodiment of the present application may include:
[0057] Step 100, obtaining a service generation request from a target user for a customized service;
[0058] The service generation request carries the network location of the target user and a customized request profile, wherein the customized request profile includes a task vector and a multimodal prompt of the customized task, wherein the multimodal prompt is used to indicate a data type of task data inputted by the customized task, and the task vector is obtained by encoding the task data;
[0059] When deploying services for customized tasks, first, obtain the service generation request of the target user for the customized service, and the request carries the network location of the target user and the customized request configuration file. The target user is any user who has customized task requirements, and the network location of the target user can be determined by the IP address of the terminal from which the target user initiates the service generation request; the customized request configuration file is generated based on the customized task of the target user, for example, the target user clarifies his or her own customized requirements by clicking or manually entering in the user terminal, thereby forming a customized request configuration file.
[0060] Different users have different requirements for customized tasks, so the generated customized request profiles are also different. The customized request profile includes the task vector and multimodal prompt of the customized task, wherein the multimodal prompt is used to indicate the data type of the task data input for the customized task of the target user, and the data type includes at least one of text data, audio data and visual image data. The task vector is obtained by encoding or training the task data pre-input by the customized task user. The task vector and multimodal prompt in the customized request profile are used to guide and control the output results of the customized task.
[0061] Preferably, different types of multimodal task data can be encoded in different ways. In one embodiment, each component in the customized request configuration file is a json serializable structure to meet the network transmission of data. Among them, the task vector is a matrix file, which will be encoded into a base64 string for transmission; the text data, image data and audio data in the multimodal prompt will also be encoded into a base64 string for transmission.
[0062] Step 200, determining the optimal computing power node corresponding to the customized task in the computing power network according to the network position;
[0063] According to the network location of the target user, the optimal computing node corresponding to its customized task in the computing network is determined. The optimal computing node is the optimal node selected from the current idle nodes. The computing nodes (i.e. computing nodes) in the computing network include computing nodes and storage nodes, while user-related requests are outside the computing network.
[0064] Preferably, the optimal computing power node is the computing power node among the idle nodes that is closest to the network location of the target user; preferably, the optimal computing power node is the computing power node among the idle nodes that is closest to the network location of the target user, that is, the computing power node with the shortest transmission link; preferably, the optimal computing power node is the computing power node among the idle nodes that has the shortest transmission time to the network location of the target user; preferably, the optimal computing power node is the computing power node among the idle nodes that has the most available resources; preferably, the optimal computing power node is the computing power node with the best overall performance determined after comprehensive evaluation of the available resources of each idle node, and the transmission distance and transmission time to the network location of the target user.
[0065] Step 300: Send the customized request configuration file to the optimal computing power node for service deployment.
[0066] The customized request configuration file is sent to the optimal computing power node, and the service deployment is performed on the customized task of the target user to generate the service corresponding to the customized task. In this embodiment, the service generation mechanism outputs a specific task result based on the guidance of the task vector. The core is the guidance of the task vector. Therefore, the service generation mechanism depends on the construction of the customized request configuration file.
[0067] Preferably, in the computing nodes of the computing network, a multimodal model is uniformly preset, and the service generation mechanism can output the properties of specific task results through the guidance of the task vector based on the visual multimodal model, and control the output of the uniformly deployed visual multimodal model through the customized task vector to perform customized tasks. The optimal computing nodes obtained may include one or more computing nodes, and the specific number of computing nodes can be determined by the request volume of customized tasks of the target user. The request volume of customized tasks can be determined based on the historical request volume of customized tasks of the same type, or it can be configured based on the target user's estimate of the request volume, which is not specifically limited here.
[0068] In this embodiment, a customized request configuration file is used to respond to the service generation request of the target user, and the service is deployed in the optimal computing power node to provide customized services to the target user. The output result of the customized task is guided by the task vector in the customized request configuration file, and the customized request configuration file is transmitted between the computing power network, so that the customized task can be deployed with low overhead in the appropriate computing power node, without scheduling and storing the algorithm model or service image under the computing power network. At the same time, it can avoid frequent model version updates caused by frequent business scenario expansion and long-tail problems, and solve the problem of high overhead of customized service deployment.
[0069] Preferably, the customized service deployment method provided in the embodiment of the present application can provide customized services by scheduling a single visual multimodal model through a computing power network. Specifically, in order to realize the efficient and low-cost deployment of customized services on the computing power network and provide users with stable artificial intelligence visual services, a customized request configuration file is used to guide the intermediate vector library to efficiently deploy customized services based on a single artificial intelligence visual multimodal model under the computing power network. Based on the guiding role of multimodal information on visual task results under the visual multimodal model, the service is customized by configuring specific task vectors and post-processing processes through customized request files. First, a centralized visual multimodal model is uniformly deployed on each computing power node under the computing power network, and then the optimal idle computing power node for the user end is found through the computing network computing power resource monitoring system. The task vector and task customization parameters of the customized task are transmitted to the visual multimodal model deployed in the optimal idle computing power node through the customized request configuration file and the vector library, so that the original visual multimodal model service in the computing power node adapts to the user's customized task. Then, according to the number of requests received by the service, the number of computing nodes required by the service is automatically adjusted. The core of customized task generation is actually to change the forward reasoning process of the deployed multimodal model, and does not involve the redeployment of the model and the startup of the algorithm image. Therefore, the generation of customized services is almost real-time compared with existing solutions (under the existing general computing resources, the generation of customized services in the embodiment of the present application takes less than 100ms), so computing resources can be allocated in real time to ensure the effective application of computing resources and the optimal use of each service.
[0070] Load balancing between services.
[0071] Reference Figure 2 The customized service architecture diagram shown in Figure 1 mainly includes the generation of customized request configuration files, vector libraries, and service generation mechanisms during service deployment. After service deployment is completed, it mainly includes service requests and computing resource monitoring and scheduling. Figure 3As shown, the customized request profile includes data fields and customized task fields, wherein the data field includes a control threshold and a post-processing orchestration process dictionary. The control threshold is a floating-point value, which mainly acts on the intermediate process of the multimodal model and is used to control the interaction of multimodal information in the model to directly control the confidence of the customized task results according to user needs. The post-processing orchestration process dictionary is an ordered dictionary. The index key key of the dictionary represents the post-processing process to be performed, the key value value represents the process parameters of the corresponding post-processing process, and the order of the ordered dictionary items represents the running order of the overall steps. In the actual application stage, the data field will be directly transmitted to the computing power node of the final customized service deployment through the computing power network, directly act on the multimodal model deployed on the node and generate a post-processing process. Based on this, in step 300, after sending the customized request profile to the optimal computing power node for service deployment, it can also include:
[0072] Step 400, generating a post-processing process of the customized task according to the post-processing orchestration process dictionary; wherein the post-processing orchestration process dictionary is an ordered dictionary, the index key in the ordered dictionary represents the post-processing process, and the key value of the ordered dictionary represents the process parameter of the post-processing flow.
[0073] That is, a post-processing process of a multimodal model is generated according to a post-processing orchestration process dictionary in a data field in a customized request configuration file, so as to provide customized services to target users.
[0074] Further, based on Figure 3 The customized task field in the customized request configuration file also includes a task vector index, which can be configured by querying the task vector list in the vector library when the user does not provide a task vector. The service generation mechanism is also the service deployment for customized tasks. In this embodiment, the service deployment is performed using a vector merging upload mechanism. Specifically, in step 300, the customized request configuration file is sent to the optimal computing power node for service deployment, which can also include:
[0075] Step 301, determining a vector temporary storage area corresponding to the target user from a user temporary storage area of a preset vector library, and caching the task vector into the vector temporary storage area; the vector library is set in a data node of the computing power network;
[0076] Step 302, obtaining a public task vector corresponding to the customized task from a public area of the preset vector library according to the task vector index;
[0077] Step 303: merge the task vector and the public task vector to obtain a customized request vector corresponding to the customized task;
[0078] Step 304: Send the customized request vector to the optimal computing power node, and perform customized service deployment on the visual multimodal model preset in the optimal computing power node; the customized request vector is used to control the output result of the visual multimodal model for the customized task.
[0079] like Figure 2 As shown, in the service deployment phase, first determine the vector temporary storage area corresponding to the target user from the user temporary storage area of the preset vector library, and cache the task vector in the customized request configuration file of the target user into the vector temporary storage area. It should be noted that the vector library is set in the data node of the computing network. Then, according to the task vector index in the customized request configuration file, obtain the public task vector corresponding to the customized task from the public area of the vector library, and merge the task vector with the obtained public task vector. For example, if there is a task vector R cached in the vector temporary storage area, t1 (matrix dimension N1*M) and the public task vectors R1 (matrix dimension N2*M) and R2 (N3*M) obtained from the public area, the merging mechanism will perform Concat matrix vector splicing operations on multiple vectors to obtain the final customized request vector, and then transmit the merged vector R∈(N1+N2+N3)*M to the optimal computing power node, and perform task customization deployment on the visual multimodal model of the optimal computing power node. Among them, the customized request vector is used to control the output results of the visual multimodal model for the customized tasks of the target user.
[0080] based on Figure 3 , for the task vector in the customized request configuration file, the task vector provided by the user is used as the guiding input of the visual multimodal model to guide the model to perform specific task processing on the image data. The mathematical representation of a single task vector is actually a matrix: R∈N*M, where N is the number of tokens of the task vector required for a specific task, and the dimension of the token is M, that is, N M-dimensional token representations constitute the task vector of a single task. The task vector of a single task can be obtained in a variety of forms, including but not limited to, prompt fine-tuning engineering based on the visual multimodal model, which is obtained by training with a small amount of task data and a small number of samples, solving the problem that specific long-tail complex problems cannot be effectively guided by multimodal prompts; based on multimodal prompts, users use the same multimodal encoder in the deployed centralized multimodal model through local computing power to encode the multimodal prompts to obtain the task vector, which can save the computing power overhead of the multimodal encoder running multiple times in the cloud. It should be noted that the task vectors obtained by different methods belong to the same semantic space.
[0081] Furthermore, for the task vector index, if the user does not provide a task vector, the task vector index can be selected through the task vector list in the public area of the vector library. The vector library contains a large number of task vectors for specific tasks and their task vector indexes. Each task vector index corresponds to a task vector for a specific task, and the task vector index has a one-to-one correspondence with the public task vector.
[0082] Furthermore, the multimodal prompt is the original input of the visual multimodal model deployed by the computing node. It guides the visual multimodal model to perform zero-sample analysis and processing on the input original image in a more intuitive way, and outputs the result the user wants. The multimodal representation includes natural language text data, audio data, and visual image data. A multimodal encoder is left on the model side to perform modality recognition on the multimodal prompt data and send it to the corresponding modality encoder for encoding and processing to obtain the corresponding task vector. When the multimodal prompt is closely related to the task that the user wants to customize, the generated task vector can accurately guide the original multimodal model to analyze the input image and other data to complete the user's customized task.
[0083] like Figure 3 As shown, in this embodiment, each component of the customized request configuration file needs to be converted into a json serializable structure to meet the network transmission of data. Among them, the task vector index is a string, and the control threshold in the data field is a floating point value, which meets the json serializable structure; and the post-processing orchestration process dictionary is an ordered dictionary, which does not meet the json serialization structure and needs to be converted into a list structure before transmission.
[0084] Furthermore, the vector library mainly includes two storage spaces: the public area and the user temporary storage area. The operation mechanism includes the user vector management mechanism and the vector merging and uploading mechanism. The operation process is as follows: Figure 4 Based on Figure 4 The role of the public area is to allow users to fix commonly used task vectors in the vector library and assign a unique index to the task vector of each specific task. The index value can be obtained by hashing the task and user-related information and bound to the task vector. When requesting to generate a service, the user can obtain the information and index of the corresponding task vector by requesting the task vector list in the public area, and then configure it in the customized request configuration file to call the public task vector in the public area. The public area also saves the relevant task information of the task vector, such as the task scenario, the task vector provider, etc. These task information are also bound to the index value. Users can configure and use the task vector after consulting the task information of the task vector when indexing.
[0085] The function of the user temporary storage area is to temporarily store the task vectors in the customized request configuration files uploaded by the user, and user permission management is set in the user temporary storage area. Each user can only use the task vectors cached under his own account or the account to which he is granted permission. After the user uploads the task vector once, he does not need to upload the task vector every time the computing node is adjusted and the customized task is redeployed. Instead, the task vector cached in the temporary storage area can be transmitted to the visual multimodal model of the corresponding computing node to obtain the customized task. Since the vector library in the user temporary storage area has a lower transmission overhead than the computing node that provides basic services for the user end and the deployment model, the caching operation in the temporary storage area can greatly reduce the calling cost of customized services.
[0086] For the user vector management mechanism, based on the user's authority management, each user has a vector temporary storage area under the authority of the personal account. The task vector in the customized request configuration file corresponding to each user will be stored in the vector temporary storage area under the user's personal account. Under normal circumstances, the task vector cached in the vector temporary storage area under the user's personal account is not visible to other users, unless the user specifies the open authority to other users in the group. The task vector cached in the vector temporary storage area corresponding to the user is visible to authorized users. The vector in the user's temporary storage area will be saved before the end of the task cycle and continuously provided to the computing power node for customized task deployment together with the task vector in the public area. Before the end of the task cycle, the user can submit a sharing request at any time. Based on the sharing request, the task vector submitted by the user and the public task vector in the public area are checked for repeatability. By comparing the vector value, if it is determined that there is no repeated submission and no overlap with the task vector in the public area, a corresponding unique index is generated for the task vector in the vector temporary storage area, and a key-value correspondence relationship is formed and transmitted to the public area for storage. At the same time, the user needs to provide relevant task information such as the usage scenario of the task vector. The user information of the task vector and the relevant task information provided by the user are stored in the public area and bound to the newly generated index for other users to consult. Furthermore, at the end of the user task cycle, if the user does not choose to share the task vector, the task vector will be automatically deleted from the user temporary storage area and no archive will be kept to ensure the security of user information.
[0087] Based on this, in step 301, after caching the task vector in the vector temporary storage area, the following steps may also be included:
[0088] Step 310, when a sharing request of the target user is detected, obtaining a task vector list of the public area and task information of the task vector; the task information includes user information of the target user and usage scenario information of the task vector;
[0089] Step 320, verifying the task vector based on the task vector list to determine whether the task vector has been saved in the public area;
[0090] Step 330: If not, generate a target vector index bound to the task vector based on the task information, and save the target vector index into the task vector list to save the task vector into the public area.
[0091] When a sharing request from a target user is detected, the task vector list in the public area and the task information of the target user's task vector are obtained, and the task information includes the user information of the target user and the usage scenario information of the task vector. The task vector is checked for repeatability based on the task vector list to determine whether the same task vector already exists in the public area to avoid repeated submission and saving of the task vector. If not, a target vector index bound to the task vector is generated based on the obtained task information, and the generated target vector index is saved in the task vector list, thereby saving the task vector in the public area for other users to consult and use.
[0092] Preferably, a resource scheduling and monitoring mechanism is provided for the computing power network, and high-frequency detection of computing power nodes in the computing power network can be performed to determine the operating status of each computing power node. It can be seen that when the service is deployed for the customized task of the target user, the optimal computing power node obtained is only the optimal computing power node among the idle computing power nodes at the time of detection. As other services release the computing power nodes, after completing the deployment of the customized service for the target user, when it is detected that a better computing power node has become an idle node, service migration can be performed to migrate the service to the better computing power node. Specifically, in step 300, after sending the customized request configuration file to the optimal computing power node for service deployment, it can also include:
[0093] Step 410, detecting idle computing nodes in the computing network every first preset time period;
[0094] Step 420: When it is detected that there is a target computing power node that is better than the optimal computing power node among the idle computing power nodes, the customized request configuration file is sent to the target computing power node to migrate the service deployment of the customized task;
[0095] Step 430: grayscale release of the optimal computing power node.
[0096] The idle computing nodes in the computing power network are detected at first preset intervals. When a target computing node that is better than the current optimal computing node is detected among the idle computing nodes, the customized request configuration file is sent to the target computing node for service deployment, thereby migrating the service deployment of customized tasks for target users to a better target computing node, and at the same time, the optimal computing node is released in grayscale.
[0097] Reference Figure 5 The migration process diagram of the optimal computing power node shown in Figure 5 In response to the service generation request initiated by the target user at the user end, the optimal computing nodes are obtained at time T1, namely computing node 1 and computing node N, through monitoring and scheduling of the computing resources of the computing network, and the service deployment of the customized task of the target user is performed. Then, by regularly monitoring each computing node in the computing network, a better computing node, namely computing node 2 and computing node N+1, is detected at time T1+t, and the service of the customized task of the target user is moved forward to computing node 2 and computing node N+1 for deployment.
[0098] Preferably, refer to Figure 6 As shown in the architecture diagram of the computing network, since the user end is at the outer edge of the computing network, if the user needs to re-upload the task vector every time the computing node scheduling is performed to generate a customized task at a new computing node, it will incur a large overhead. In the customized request configuration file, the task vector occupies a relatively large storage space compared to the multi-modal prompt and data field. Therefore, while designing a vector library for task vector management, the vector library is also deployed to the data node in the middle of the computing network. The vector library can achieve higher communication efficiency between the computing networks. The vector library and the computing nodes are more suitable for efficient transmission and communication, thereby further accelerating the service deployment efficiency of customized tasks and the generation speed of customized tasks.
[0099] In one embodiment, based on Figure 6 In the computing network architecture shown in the figure, the vector library is deployed in the data node between each computing node, and the vector library is connected to each computing node in communication. Each computing node is deployed with a single visual multimodal model. Figure 6 After user 1 and user 2 (as shown in the figure) upload the corresponding customized request configuration files (i.e., configuration file 1 and configuration file 2), the uploaded customized request configuration files are sent to the computing power node for service deployment and are sent to the vector library for cache. During the customized task cycle, for the customized tasks of the same user (such as user 1 or user 2), the task vectors in the customized request configuration files cached in the vector library can be called without the need for users to upload repeatedly, thereby reducing transmission overhead and improving communication efficiency.
[0100] Preferably, the visual multimodal model will be deployed in advance to each computing node in the computing network. Then, it only needs to receive the customized request configuration file containing information such as task vectors, data fields and multimodal prompts issued by the user at the user end, and the forward process of the model can be adjusted to generate customized services required by the user. This method does not require the execution of the more time-consuming image container startup process and model loading process when the service is deployed, and the time consumption for generating customized services is controlled within 100ms. Since the models deployed on each computing node are consistent, there is no model scheduling within the computing network, and the overall scheduling of the computing network does not need to consider the additional overhead generated by model scheduling. The idle node with the lowest latency relative to the user can be directly selected for deployment and service provision, which greatly reduces the cost of computing network scheduling.
[0101] like Figure 2 As shown, in the service deployment phase, the multimodal prompt is encoded by the multimodal encoder to obtain the corresponding multimodal vector. After the service deployment is completed, when providing customized services to users, if the user's customized service includes a visual task, the visual encoder is used to encode the request image carried in the user's service request to obtain the corresponding image vector. When the customized task contains multiple types of data, for example, text data, audio data, and visual image data, the text data and audio data are encoded by the multimodal encoder, and the image data is encoded by the visual encoder. Then, the obtained vector is sequentially subjected to modal alignment, modal interaction, and visual multimodal model post-processing processes to obtain the execution result of the customized task required by the user.
[0102] Preferably, after the customized task is deployed for service, the optimal allocation of computing resources in the computing network can be achieved by monitoring and scheduling the computing resources in the computing network. Specifically, in step 300, after sending the customized request configuration file to the optimal computing node for service deployment, it can also include:
[0103] Step 500, obtaining the business request volume of the target user for the customized task;
[0104] Step 600: Control the number of the optimal computing power nodes according to the business request volume.
[0105] Obtain the target user's business request volume for customized tasks (business request, i.e., service request), and control the number of nodes of the optimal computing power node according to the business request volume. It can be seen that the user's business request volume for customized tasks is not fixed, but changes in real time. Over a period of time, the user's business request volume for customized tasks may gradually increase, or may gradually decrease, and there may even be a situation where the business request volume is 0. Depending on the change in the business request volume, the scheduling method for the computing power nodes in the computing power network is different. Based on this, in step 600, the number of nodes of the optimal computing power node is controlled according to the target user's business request volume for customized tasks, specifically including:
[0106] Step 601, determining the number of target nodes required to execute the customized task according to the business request volume, and obtaining the current number of first nodes of the customized task;
[0107] Step 602: If the first number of nodes is greater than the target number of nodes, the releasable nodes in the optimal computing power nodes that exceed the target number of nodes are determined and released according to the priority of the computing power nodes of the customized task;
[0108] Step 603: If the first number of nodes is less than the target number of nodes, obtain idle nodes in the computing network, determine schedulable nodes according to the priorities of the idle nodes, and perform service deployment of the customized task in the schedulable nodes;
[0109] Step 604: when it is detected that the service request volume is cleared to zero, and the duration of the clearing to zero exceeds a second preset duration, the optimal computing power node is released.
[0110] When controlling the number of nodes of the optimal computing power node, first determine the target number of nodes required for the customized task based on the business request volume, and obtain the current number of nodes for the customized task, that is, the first number of nodes. If the first number of nodes is greater than the target number of nodes, that is, due to the reduction in the business request volume, the computing power nodes currently deployed for customized services exceed the target user's demand for customized services. At this time, the priority of the computing power node of the customized task can be used to determine the releasable nodes that exceed the target number of nodes in the current computing power nodes, and release the releasable nodes, actively reduce the allocated computing power nodes to save computing power resources, and achieve load balancing.
[0111] Preferably, refer to Figure 7In the diagram of the computing resource scheduling process shown in FIG. 1 , the computing nodes currently deployed for providing customized services are computing node 2 and computing node N+1, that is, the number of first nodes is 2. When the target user's demand for customized tasks decreases, the service requests will decrease accordingly. Then, through computing resource scheduling, it is determined that the target number of computing nodes that meet the demand is 1. Then, according to the priority of the computing nodes ( Figure 7 In the above example, the priority of computing node 2 is greater than that of computing node N+1), and the computing nodes used to provide customized services are reduced, thereby releasing computing node N+1 that exceeds the target number of nodes. In the adjusted computing network, only computing node 2 is used to provide customized services to target users. It should be noted that when the optimal computing node is determined based on the latency of providing customized services to users, the priority of the computing node is determined based on the latency of providing customized services to users. The greater the latency, the worse the performance of the computing node, and the lower the corresponding priority. The smaller the latency, the better the performance of the computing node, and the higher the corresponding priority. When releasing computing nodes, they are released in order of priority from low to high.
[0112] Furthermore, if the number of first nodes is less than the number of target nodes, that is, due to the increase in the amount of business requests, the computing power nodes currently deployed with customized services do not meet the target user's demand for customized services. At this time, the idle nodes in the computing power network are obtained, and the schedulable nodes are determined according to the priority of the idle nodes, and the customized request profile of the target user and the guide vector cached in the vector library are sent to the schedulable nodes for service deployment of customized tasks, thereby quickly increasing the computing power nodes used to provide customized services to the target user. Similarly, the priority of the idle nodes can also be determined based on the performance of each idle node in providing customized services to the target user, which will not be repeated here.
[0113] Reference Figure 8 Another schematic diagram of computing resource scheduling process shown in Figure 8 In the example, the computing node used to provide customized services to target users is computing node 2. The number of the first node is 1, which can meet user needs. When the user's demand for customized tasks increases, due to the increase in demand, a large number of service requests are queued, and the waiting time is too long. At this time, you can actively request to increase the computing node that provides customized services to target users. When adding computing nodes, get the idle nodes through the idle node list, and schedule the best node among the idle nodes as the newly added computing node for service deployment. Figure 8 As shown, according to the increased business request volume, it is determined that the target number of computing nodes that can meet the demand is 2, so a computing node N+1 is added, and the adjusted computing nodes used to provide customized services to target users include computing node 2 and computing node N+1.
[0114] Furthermore, when it is detected that the target user's customized task service request volume is cleared, and the clearing time exceeds the preset time, the currently existing optimal computing power node is released to reduce resource occupation. Furthermore, after the target user's customized task service request volume is cleared for more than the preset time, if a new service request appears, the customized task service can be redeployed. Preferably, refer to Fig. 9 Another diagram of the computing resource scheduling process is shown. When the number of requests for customized tasks from target users is zero for a period of time, and then a certain number of requests suddenly appear, when there is no user service request for a period of time, the computing power node can be released and transferred to other services. Once the user's new request is received, the user's customized service can be quickly regenerated to meet the user's needs. This mechanism makes the overall deployment of customized services and computing power scheduling more flexible. Fig. 9 In the example, the computing nodes that currently provide customized services to users are computing node 2 and computing node N+1. As the user's demand for customized tasks decreases, when the business request volume is 0 and lasts for more than a certain period of time, computing node 2 and computing node N+1 are released. When the user's new demand for customized tasks is detected, that is, the user's new business request for customized tasks is detected, the idle nodes are obtained according to the process of adding computing nodes, and according to the priority of the idle nodes, the number of computing nodes that can meet the user's needs is scheduled for service deployment. Fig. 9 As shown, after computing node 2 and computing node N+1 are released, when a new business request appears, computing node N+2 is scheduled from the idle nodes as a schedulable node for service deployment to respond to the user's new business request and provide customized services to the user.
[0115] Furthermore, in the prior art, for example, small model fine-tuning combined with the deployment scheme of a specified resource pool will specify computing resources for the deployment of small models for specific tasks, resulting in limited computing resources for specific tasks. If multiple customized models are deployed on a specific number of servers evaluated based on demand, the computing resources required for specific tasks can only be scaled up and down on a predetermined number of servers, with limited scalability. And computing resources cannot be uniformly scheduled to solve the unbalanced computing power requirements of algorithm services, resulting in a waste of computing resources in some areas of the overall computing power network. In this embodiment, by monitoring and scheduling the computing power resources of the computing power network, dynamic adjustment of the number of computing power nodes used to provide customized services is achieved. When demand is reduced or cleared, resource allocation for customized services can be reduced to avoid waste caused by excessive resource allocation, and when demand increases, resource allocation for customized services can be increased to achieve load balancing and reduce service latency.
[0116] The following takes the service deployment of customized tasks of user 1 as an example to illustrate the customized service deployment method provided by the embodiment of the present application. Specifically, user 1 needs to customize a newly added visual service, which is composed of visual task A and visual task B. Visual task A already has multiple public task vectors used and uploaded by other users, so according to the search operation of user 1, the corresponding task vector index is obtained by searching the task vector list in the public area of the vector library, and it is configured in the customized request configuration file corresponding to user 1; for visual task B, the corresponding task vector R1 is obtained through the free business data with prompt fine-tuning technology, and the matrix file of the obtained task vector R1 of user 1 is base64 encoded and added to the customized request configuration file; at the same time, according to the configuration operation of user 1, the control threshold and the customized post-processing orchestration process dictionary are configured to the customized request configuration file.
[0117] After generating the customized request configuration file, a service generation request is sent, which carries the customized request configuration file of user 1 and the network location of user 1. Through the unified scheduling of the computing power resources of the computing power network, the optimal computing power node node1 with the lowest latency is selected from the idle nodes according to the network location of user 1, and the customized request configuration file of the user is uploaded. The task vector index of visual task A in the configuration file is transmitted to the vector library of the data node of the computing power network center. The task vector R0 of visual task A is pulled according to the task vector index. The task vector R1 of visual task B is uploaded to the user temporary storage area of the vector library. After base64 decoding and restoration, R0 and R1 are matrix-merged to generate the final customized request vector R2 and transmitted to the node1 node assigned to user 1. At the same time, the data field in the customized request configuration file of user 1 is also transmitted to the node1 node, and acts together with the already arrived task vector R2 to the visual multimodal model pre-arranged on the node1 node, changing its reasoning process to generate a new customized task, and completing the service deployment of the customized task of user 1. After that, user 1 can access the service in the form of API.
[0118] After time T, since other users have released node2, which has a lower network latency for user 1, node2 is automatically assigned to user 1 after detecting that node2 has been released. Then, task vectors and data fields are obtained from the vector library and / or user 1's client again, and customized tasks are generated on node2 with a latency of less than 100ms. Customized services are then provided to user 1 through node2, and customized services on node1 are released in grayscale. During the service forwarding process, user requests for services are not affected. As user 1 uses customized tasks more deeply, business demand increases, the number of requests continues to increase, and a large number of requests begin to queue in the queue. When a large number of service requests are detected to be queued, node3, a low-latency computing node, is obtained from the idle nodes according to the number of computing nodes required, and is assigned to user 1 and deployed on node3 to generate customized tasks for user 1 to meet the high concurrency service request volume demand of user 1 for customized tasks.
[0119] Furthermore, after the task cycle ends, user 1 does not choose to share the task vector of visual task B for privacy reasons. Therefore, the task vector R1 of visual task B is automatically deleted from the user temporary storage area of the vector library, and the computing nodes node2 and node3 allocated to user 1 are released. At the same time, the reasoning process of the visual multimodal model on the computing nodes is initialized and waits for the next use.
[0120] In this embodiment, by scheduling the task vector output by the data node vector library in the computing network and the user's customized request configuration file, customized tasks can be generated for the user at any computing node where the visual multimodal model is pre-deployed, thereby achieving efficient optimal computing node deployment and real-time computing resource allocation.
[0121] Furthermore, with the vector library as the core, task vectors are read and transmitted through customized request configuration files. Through the vector library and customized request configuration files, users can independently fine-tune the generation of task vectors, generate multimodal task vectors based on the original multimodal data provided by the user, and perform reasonable reading and transmission of task vectors consistent with the semantic space pre-stored in the vector library. At the same time, through the user temporary storage area and public area of the vector library, the temporary storage deletion mechanism and index scheduling mechanism are used to minimize the number of times the task vector is transmitted from the user end to the computing network, thereby reducing the transmission overhead during service deployment.
[0122] In each embodiment of the present application, in view of the limited computing resource expansion space and uneven computing power distribution when the existing traditional visual small model algorithm service is deployed and scheduled under the computing power network, through the unified monitoring and scheduling of the computing power resources of the computing power network, the appropriate computing power resources can be allocated to the customized service in real time to achieve load balancing, as well as the real-time elastic allocation of computing power resources in the computing power network. Based on the visual multimodal model, the required task results can be generated by guiding the task vector, and the reasoning process of the visual multimodal model that has been deployed in the computing power node can be changed through the user-customized request configuration file and the vector library, so as to quickly generate new customized tasks. At the same time, by deploying the vector library in the computing power network to achieve high-speed communication transmission with each computing power node, the time consumption of generating customized services is further reduced, and fast service is achieved. Thanks to this real-time service generation mechanism, based on the optimal computing power resource allocation mechanism and the optimal computing power node scheduling mechanism, the appropriate computing power nodes in the computing power network and the computing power requirements required by the service can be monitored in real time to provide users with the optimal computing power nodes and elastic computing power allocation, and further achieve the uniform distribution of computing power resources under the overall computing power network.
[0123] Furthermore, the existing traditional visual small model algorithm service has high storage overhead and transmission overhead in algorithm service model / image scheduling under the computing power network. In an embodiment of the present application, all visual tasks rely on a core model, so the model storage space is greatly reduced. At the same time, the storage space of the vector library is also much smaller than that of the model library. Similarly, for N tasks, the small models of N tasks are at least at the MB level, and the task vectors are all at the KB level, so the storage space is also greatly reduced. For transmission overhead, the existing solution needs to transmit the service image or the model itself when scheduling algorithm services on the computing power network. The order of magnitude of the transmission overhead is GB or MB. Through the high-speed transmission of the small storage vectors of the customized request configuration file and the vector library between the computing power networks, the transmission overhead of customized tasks under the computing power network is reduced to the KB level, saving a lot of transmission overhead.
[0124] Furthermore, the service deployment startup for the existing solution is inseparable from the two processes of starting the virtual container image and loading the model, which takes a long time and now leads to the problem of slow service deployment startup. The embodiment of the present application can greatly reduce the startup time of service deployment and save the user's trial cost. Specifically, since all computing power nodes can provide services based on the same visual multimodal model as the basic model, by pre-deploying the required visual multimodal model on all computing power nodes, there is no need to transfer the model during the service deployment process, avoiding the problem that the traditional small model needs to confirm the computing power node before model transmission and service deployment, thereby reducing unnecessary resource waste. By pre-starting the container and loading the model, the time consumption of service generation startup is mainly concentrated on the transmission and loading of the task vector and the customized request configuration file, and the space occupied by this part is at the KB level, so the time consumption of calling the customized task from the storage reading to the computing power node memory will be greatly reduced compared with the existing solution. In addition, by deploying the vector library in the central data node of the computing power network, the delay of the transmission task vector is further reduced, so the time consumption of the overall service deployment startup is reduced from the minute level to the millisecond level compared with the existing solution.
[0125] Furthermore, the existing service deployment scheme for general visual large models frequently updates the model due to the complexity and long tail of customized tasks, resulting in the problem of large resource overhead for updating the visual large model under the overall computing power cluster. The embodiment of the present application addresses the complex long-tail problem by fine-tuning the specific task prompt to obtain a task vector, and then guides the visual multimodal model to meet the long-tail task requirements through the task vector. In this case, there is no need to update a large model in order to meet a single long-tail task, which can effectively avoid the waste of computing power network resources caused by frequent updates of large models.
[0126] The customized service deployment device provided in an embodiment of the present application is described below. The customized service deployment device described below and the customized service deployment method described above can be referenced to each other.
[0127] Reference Fig.10 , the customized service deployment device provided in the embodiment of the present application includes:
[0128] A customized request module 10 is used to obtain a service generation request from a target user for a customized service;
[0129] The service generation request carries the network location of the target user and a customized request profile, wherein the customized request profile includes a task vector and a multimodal prompt of the customized task, wherein the multimodal prompt is used to indicate a data type of task data inputted by the customized task, and the task vector is obtained by encoding the task data;
[0130] A node allocation module 20, configured to determine the optimal computing node corresponding to the customized task in the computing network according to the network position;
[0131] The service deployment module 30 is used to send the customized request configuration file to the optimal computing power node for service deployment.
[0132] In one embodiment, the customized request configuration file further includes a task vector index; and the service deployment module 30 is further configured to:
[0133] Determine a vector temporary storage area corresponding to the target user from a user temporary storage area of a preset vector library, and cache the task vector in the vector temporary storage area; the vector library is set in a data node of the computing power network;
[0134] According to the task vector index, obtaining a public task vector corresponding to the customized task from a public area of the preset vector library;
[0135] The task vector and the common task vector are combined to obtain a customized request vector corresponding to the customized task;
[0136] The customized request vector is sent to the optimal computing power node, and customized service deployment is performed on the visual multimodal model preset in the optimal computing power node; the customized request vector is used to control the output result of the visual multimodal model for the customized task.
[0137] In one embodiment, the customized service deployment device further includes a vector sharing module, which is used to:
[0138] When a sharing request of the target user is detected, a task vector list of the public area and task information of the task vector are acquired; the task information includes user information of the target user and usage scenario information of the task vector;
[0139] Verifying the task vector based on the task vector list to determine whether the task vector has been stored in the public area;
[0140] If not, a target vector index bound to the task vector is generated based on the task information, and the target vector index is saved in the task vector list, so as to save the task vector in the public area.
[0141] In one embodiment, the service deployment module 30 is further used to:
[0142] Detecting idle computing nodes in the computing network at intervals of a first preset time;
[0143] When it is detected that there is a target computing power node that is better than the optimal computing power node among the idle computing power nodes, the customized request configuration file is sent to the target computing power node to migrate the service deployment of the customized task;
[0144] The optimal computing power node is released in grayscale.
[0145] In one embodiment, the customized service deployment device further includes a monitoring scheduling module, which is used to:
[0146] Obtaining the business request volume of the target user for the customized task;
[0147] The number of nodes of the optimal computing power is controlled according to the business request amount.
[0148] In one embodiment, the scheduling monitoring module is further used to:
[0149] Determine the number of target nodes required to execute the customized task according to the business request volume, and obtain the current number of first nodes for the customized task;
[0150] If the first number of nodes is greater than the target number of nodes, determining and releasing releasable nodes in the optimal computing power nodes that exceed the target number of nodes according to the priorities of the computing power nodes of the customized task;
[0151] If the first number of nodes is less than the target number of nodes, obtain idle nodes in the computing network, determine schedulable nodes according to the priorities of the idle nodes, and perform service deployment of the customized task in the schedulable nodes;
[0152] When it is detected that the service request amount is cleared to zero, and the duration of the clearing to zero exceeds a second preset duration, the optimal computing power node is released.
[0153] In one embodiment, the customized request configuration file further includes a control threshold and a post-processing orchestration process dictionary, wherein the control threshold is used to control the confidence of the customized task result; the service deployment module 30 is further used to:
[0154] A post-processing process of the customized task is generated according to the post-processing orchestration process dictionary; wherein the post-processing orchestration process dictionary is an ordered dictionary, the index key in the ordered dictionary represents the post-processing process, and the key value of the ordered dictionary represents the process parameter of the post-processing flow.
[0155] Fig.11 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.11As shown, the electronic device may include: a processor 1110, a communication interface 1120, a memory 1130 and a communication bus 1140, wherein the processor 1110, the communication interface 1120, and the memory 1130 communicate with each other through the communication bus 1140. The processor 1110 may call a computer program in the memory 1130 to execute the steps of the customized service deployment method, for example, including:
[0156] Obtaining a service generation request from a target user for a customized service;
[0157] The service generation request carries the network location of the target user and a customized request profile, wherein the customized request profile includes a task vector and a multimodal prompt of the customized task, wherein the multimodal prompt is used to indicate a data type of task data inputted by the customized task, and the task vector is obtained by encoding the task data;
[0158] Determine the optimal computing power node corresponding to the customized task in the computing power network according to the network position;
[0159] The customized request configuration file is sent to the optimal computing power node for service deployment.
[0160] In addition, the logic instructions in the above-mentioned memory 1130 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0161] On the other hand, an embodiment of the present application further provides a computer program product, the computer program product including a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can perform the steps of the customized service deployment method provided in the above embodiments, for example, including:
[0162] Obtaining a service generation request from a target user for a customized service;
[0163] The service generation request carries the network location of the target user and a customized request profile, wherein the customized request profile includes a task vector and a multimodal prompt of the customized task, wherein the multimodal prompt is used to indicate a data type of task data inputted by the customized task, and the task vector is obtained by encoding the task data;
[0164] Determine the optimal computing power node corresponding to the customized task in the computing power network according to the network position;
[0165] The customized request configuration file is sent to the optimal computing power node for service deployment.
[0166] On the other hand, an embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, wherein the computer program is used to enable the processor to execute the steps of the customized service deployment method provided in the above embodiments, for example, including:
[0167] Obtaining a service generation request from a target user for a customized service;
[0168] The service generation request carries the network location of the target user and a customized request profile, wherein the customized request profile includes a task vector and a multimodal prompt of the customized task, wherein the multimodal prompt is used to indicate a data type of task data inputted by the customized task, and the task vector is obtained by encoding the task data;
[0169] Determine the optimal computing power node corresponding to the customized task in the computing power network according to the network position;
[0170] The customized request configuration file is sent to the optimal computing power node for service deployment.
[0171] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0172] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0173] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0174] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A customized service deployment method, characterized in that: include: Obtaining a service generation request from a target user for a customized service; The service generation request carries the network location of the target user and a customized request profile, wherein the customized request profile includes a task vector and a multimodal prompt of the customized task, wherein the multimodal prompt is used to indicate a data type of task data inputted by the customized task, and the task vector is obtained by encoding the task data; Determine the optimal computing power node corresponding to the customized task in the computing power network according to the network position; The customized request configuration file is sent to the optimal computing power node for service deployment.
2. The customized service deployment method according to claim 1, characterized in that: The customized request configuration file also includes a task vector index; and sending the customized request configuration file to the optimal computing power node for service deployment includes: Determine a vector temporary storage area corresponding to the target user from a user temporary storage area of a preset vector library, and cache the task vector in the vector temporary storage area; the vector library is set in a data node of the computing power network; According to the task vector index, obtaining a public task vector corresponding to the customized task from a public area of the preset vector library; The task vector and the common task vector are combined to obtain a customized request vector corresponding to the customized task; The customized request vector is sent to the optimal computing power node, and customized service deployment is performed on the visual multimodal model preset in the optimal computing power node; the customized request vector is used to control the output result of the visual multimodal model for the customized task.
3. The customized service deployment method according to claim 2, characterized in that: After caching the task vector in the vector temporary storage area, the method further includes: When a sharing request of the target user is detected, a task vector list of the public area and task information of the task vector are acquired; the task information includes user information of the target user and usage scenario information of the task vector; Verifying the task vector based on the task vector list to determine whether the task vector has been stored in the public area; If not, a target vector index bound to the task vector is generated based on the task information, and the target vector index is saved in the task vector list, so as to save the task vector in the public area.
4. The customized service deployment method according to claim 1, characterized in that: After sending the customized request configuration file to the optimal computing power node for service deployment, the method further includes: Detecting idle computing nodes in the computing network at intervals of a first preset time; When it is detected that there is a target computing power node that is better than the optimal computing power node among the idle computing power nodes, the customized request configuration file is sent to the target computing power node to migrate the service deployment of the customized task; The optimal computing power node is released in grayscale.
5. The customized service deployment method according to claim 1, characterized in that: After sending the customized request configuration file to the optimal computing power node for service deployment, the method further includes: Obtaining the business request volume of the target user for the customized task; The number of nodes of the optimal computing power is controlled according to the business request amount.
6. The customized service deployment method according to claim 5, characterized in that: The controlling the number of nodes of the optimal computing power according to the business request amount includes: Determine the number of target nodes required to execute the customized task according to the business request volume, and obtain the current number of first nodes for the customized task; If the first number of nodes is greater than the target number of nodes, determining and releasing releasable nodes in the optimal computing power nodes that exceed the target number of nodes according to the priorities of the computing power nodes of the customized task; If the first number of nodes is less than the target number of nodes, obtain idle nodes in the computing network, determine schedulable nodes according to the priorities of the idle nodes, and perform service deployment of the customized task in the schedulable nodes; When it is detected that the service request amount is cleared to zero, and the duration of the clearing to zero exceeds a second preset duration, the optimal computing power node is released.
7. The customized service deployment method according to claim 1, characterized in that: The customized request configuration file also includes a control threshold and a post-processing orchestration process dictionary, wherein the control threshold is used to control the confidence of the customized task result; after sending the customized request configuration file to the optimal computing power node for service deployment, it also includes: A post-processing process of the customized task is generated according to the post-processing orchestration process dictionary; wherein the post-processing orchestration process dictionary is an ordered dictionary, the index key in the ordered dictionary represents the post-processing process, and the key value of the ordered dictionary represents the process parameter of the post-processing flow.
8. A customized service deployment device, characterized in that: include: A customized request module is used to obtain a service generation request from a target user for a customized service; The service generation request carries the network location of the target user and a customized request profile, wherein the customized request profile includes a task vector and a multimodal prompt of the customized task, wherein the multimodal prompt is used to indicate a data type of task data inputted by the customized task, and the task vector is obtained by encoding the task data; A node allocation module, used to determine the optimal computing node corresponding to the customized task in the computing network according to the network position; The service deployment module is used to send the customized request configuration file to the optimal computing power node for service deployment.
9. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the steps of the customized service deployment method described in any one of claims 1 to 7 are implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the customized service deployment method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Model deployment method and device, computer equipment and storage medium
CN120371470A
