Training data processing method and device, computer equipment and model training cluster

By dynamically selecting the data sending subject and locally cached data in the deep learning model training cluster, the problem of data request delay in deep learning model training is solved, training efficiency is improved and costs are reduced.

CN118819816APending Publication Date: 2024-10-22NINGBO LOTUS ROBOTICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410684749.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

During the training process of the deep learning model, due to network bandwidth limitations, the uniformly managed data storage area cannot meet the data request needs of multiple training platforms, resulting in a significant increase in training time and affecting the development progress of products such as autonomous driving.

Method used

By dynamically selecting the data sending subject within the same LAN, including local hard disks, other training platforms and data storage areas, the data sending subject is determined based on the data location and transmission speed, and the training data is cached locally to reduce requests to the data storage area.

Benefits of technology

It reduces the probability of network congestion in the data storage area, improves training efficiency, improves data utilization through local caching, and reduces deployment costs and adjustment complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118819816A_ABST
    Figure CN118819816A_ABST
Patent Text Reader

Abstract

The invention relates to a training data processing method and device, computer equipment and a model training cluster. The method comprises the following steps: determining a data sending main body according to the position of training data in a current model training cluster, the data acquisition speed of a data storage area and the transmission speed of the training data in a local area network; the data sending main body is any one of a local hard disk of the current training platform, other training platforms and a data storage area; requesting training data from the data transmission subject; after executing the model training task based on the training data, determining a target processing strategy according to the local storage resource and the data acquisition speed; the target processing strategy is a storage strategy or a discarding strategy; and processing the training data according to the target processing strategy. By adopting the method, requests sent to the data storage area can be reduced, so that the probability of network congestion of the data storage area is reduced, the training efficiency of each training platform is ensured, and the flexibility of training data processing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a training data processing method, apparatus, computer equipment and model training cluster. Background Art

[0002] With the widespread application of deep learning technology in fields such as autonomous driving, companies often establish one or more large server clusters to meet the training needs of different deep learning models. Generally, for ease of management, training data is stored in a certain data storage area, and different training platforms in different server clusters need to read training data from this data storage area. Due to factors such as network bandwidth limitations, the uniformly managed data storage area cannot meet the training data request needs of many training platforms, resulting in a significant increase in training time when data access volume reaches a peak, which seriously affects the development progress of deep learning models and further affects the update and iteration of products such as autonomous driving.

[0003] The traditional method is to increase the bandwidth of data transmission in the data storage area to improve the training speed, but this method has high deployment costs and may require multiple adjustments as the training platform expands, which has poor flexibility. Summary of the invention

[0004] Based on this, it is necessary to provide a training data processing method, device, computer equipment and model training cluster to address the above-mentioned technical problems, which can reduce the requests sent to the data storage area, thereby reducing the probability of network congestion in the data storage area and ensuring the training efficiency of each training platform.

[0005] In a first aspect, the present application provides a training data processing method, which is applied to a current training platform, wherein the current training platform and at least one other training platform in the same local area network constitute a current model training cluster, and the current model training cluster and multiple other model training clusters are all communicatively connected to the same data storage area, and the method includes:

[0006] The data sending subject is determined according to the location of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network; the data sending subject is the local hard disk of the current training platform, other training platforms, and any one of the data storage areas;

[0007] Request training data from a data sending subject;

[0008] After executing the model training task based on the training data, a target processing strategy is determined according to local storage resources and data acquisition speed; the target processing strategy is a storage strategy or a discard strategy;

[0009] Process the training data according to the target processing strategy.

[0010] In one embodiment, determining the data sending subject according to the location of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network includes:

[0011] If the location of the training data in the current model training cluster is the local hard disk of the current training platform, the local hard disk will be used as the data sending subject;

[0012] If there is no training data in the current model training cluster, the data storage area is used as the data sending subject;

[0013] If the location of the training data in the local area network is the target training platform, the data sending subject is selected from the data storage area and the target training platform according to the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network; the target training platform is at least one training platform in the current model training cluster except the current training platform.

[0014] In one embodiment, selecting a data transmission subject from the data storage area and the target training platform according to the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network includes:

[0015] If the data acquisition speed of the data storage area is greater than or equal to the transmission speed of the training data in the local area network, the data storage area is selected as the data transmission subject;

[0016] If the data acquisition speed of the data storage area is lower than the transmission speed of the training data in the local area network, the target training platform is selected as the data sending subject.

[0017] In one embodiment, determining a target processing strategy based on local storage resources and data acquisition speed includes:

[0018] Based on local storage resources, estimate the amount of storage used on the local hard disk after storing the training data on the current training platform.

[0019] If the used storage amount is greater than or equal to the first limit value and less than the second limit value, determining the reference speed according to the set speed ratio and the maximum transmission speed of the data storage area;

[0020] If the condition that the data acquisition speed is less than the reference speed is triggered, the target processing strategy is determined to store the training data in the local hard disk;

[0021] If the condition that the data acquisition speed is greater than or equal to the reference speed is triggered, the target processing strategy is determined to discard the training data.

[0022] In one embodiment, after calculating the reference speed according to the set speed ratio and the maximum transmission speed of the data storage area, the method further includes:

[0023] If the trigger data acquisition speed is less than the reference speed, and the set speed ratio is the first speed ratio, the target processing strategy is determined to store the training data in the local hard disk, and the set speed ratio is adjusted to the second speed ratio; the first speed ratio is less than the second speed ratio;

[0024] If the condition that the data acquisition speed is greater than or equal to the reference speed is triggered, and the set speed ratio is the second speed ratio, the target processing strategy is determined to discard the training data, and the set speed ratio is adjusted to the first speed ratio.

[0025] In one embodiment, the method further comprises:

[0026] When the speed ratio is set to the second speed ratio, if the used storage amount is continuously greater than or equal to the first limit value and less than the second limit value, and the data acquisition speed is continuously greater than or equal to the reference speed, the first data amount is determined according to the first limit value and the second limit value;

[0027] The target processing strategy is determined to discard data matching the first data amount from the local hard disk.

[0028] In one embodiment, the method further comprises:

[0029] If the used storage amount is less than the first limit value, determining the target processing strategy is to store the training data in the local hard disk;

[0030] If the used storage amount is greater than the second limit value, the second data amount is determined according to the second limit value, and the target processing strategy is determined to discard data matching the second data amount from the local hard disk and store the training data in the local hard disk.

[0031] In a second aspect, the present application further provides a training data processing device, which is applied to a current training platform, wherein the current training platform and at least one other training platform in the same local area network constitute a current model training cluster, and the current model training cluster and multiple other model training clusters are all communicatively connected to the same data storage area, and the device includes:

[0032] A determination module is used to determine the data sending subject according to the location of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network; the data sending subject is any one of the local hard disk of the current training platform, other training platforms, and the data storage area;

[0033] A request module, used to request training data from a data sending subject;

[0034] A strategy determination module is used to determine a target processing strategy according to local storage resources and data acquisition speed after executing a model training task based on training data; the target processing strategy is a storage strategy or a discard strategy;

[0035] The processing module is used to process the training data according to the target processing strategy.

[0036] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0037] The data sending subject is determined according to the location of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network; the data sending subject is the local hard disk of the current training platform, other training platforms, and any one of the data storage areas;

[0038] Request training data from a data sending subject;

[0039] After executing the model training task based on the training data, a target processing strategy is determined according to local storage resources and data acquisition speed; the target processing strategy is a storage strategy or a discard strategy;

[0040] Process the training data according to the target processing strategy.

[0041] In a fourth aspect, the present application also provides a model training cluster, which is composed of multiple training platforms in the same local area network, and the multiple model training clusters are all communicatively connected to the same data storage area. Each training platform is used to execute a model training task and process the training data corresponding to the model training task according to the steps of the method described above.

[0042] The above training data processing method, device, computer equipment and model training cluster determine the data sending subject according to the position of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network; the data sending subject is any one of the local hard disk of the current training platform, other training platforms and the data storage area; request training data from the data sending subject; after executing the model training task based on the training data, determine the target processing strategy according to the local storage resources and the data acquisition speed; the target processing strategy is a storage strategy or a discard strategy; and process the training data according to the target processing strategy. Through the above method, it is possible to request training data from other training platforms in the current local area network, realize the sharing of training data in the training platforms in the same local area network, and reduce the requests sent to the data storage area; and by storing the training data, it is possible to cache the training data locally so that the current training platform or other training platforms in the current local area network can obtain the training data, further reducing the requests sent to the data storage area. By slowing down the bandwidth utilization of the data storage area and increasing the hit rate of local data, the probability of network congestion in the data storage area is reduced, and the training efficiency of each training platform is guaranteed. The storage strategy or discard strategy is dynamically determined based on local storage resources and data acquisition speed, which improves the flexibility of training data processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 An application environment diagram of a training data processing method in one embodiment;

[0045] Figure 2 is a flowchart of a training data processing method in one embodiment;

[0046] Figure 3 A schematic diagram of a flow chart of a step of determining a data sending subject in an embodiment;

[0047] Figure 4 is a structural block diagram of a training data processing device in one embodiment;

[0048] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] The training data processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the model training system 102 is composed of multiple model training clusters 104, and the multiple model training clusters 104 are all connected to the same data storage area 106. Each model training cluster 104 is composed of multiple training platforms 108 in the same local area network. Each training platform is used to perform model training tasks and process training data related to model training tasks according to the training data processing method in the embodiment of the present application. It can be understood that Figure 1 1 shows that the model training system 102 is composed of three model training clusters 104. In practical applications, more or fewer model training clusters 104 can be set according to actual conditions. Figure 1 It is shown in the figure that the model training cluster 104 is composed of three training platforms 108. In practical applications, a greater or lesser number of training platforms 108 can be set according to actual conditions, and this embodiment does not limit this.

[0051] Optionally, Figure 1 The lines in are used to represent the transmission path of the training data. Optionally, a router is provided in each model training cluster 104 , and the router provides data interconnection function for different training platforms 108 in the same model training cluster 104 .

[0052] Among them, the training platform 108 refers to a platform that provides support for the training of deep learning models, which can at least provide training data access and management functions, computing resources, etc., and can also provide a model development environment, model management and deployment functions, etc., which are not limited in this embodiment. Optionally, the model training cluster 104, as a distributed computing system, can realize parallel data processing through multiple training platforms 108, and can also dynamically increase or decrease the number of training platforms 108 in the cluster according to training requirements to meet training tasks of different scales and complexities.

[0053] In an exemplary embodiment, Figure 2 As shown, a training data processing method is provided, the method is applied to the current training platform, the current training platform and at least one other training platform in the same local area network constitute a current model training cluster, the current model training cluster and multiple other model training clusters are all connected to the same data storage area. Figure 1 For example, the current training platform can be Figure 1Any one of the training platforms 108. The method comprises:

[0054] Step 202, determine the data sending subject according to the location of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network; the data sending subject is the local hard disk of the current training platform, other training platforms, and any one of the data storage areas.

[0055] The training data refers to the training data that matches the model training task to be performed by the current training platform. The current model training cluster refers to the model training cluster where the current training platform is located, including the current training platform and at least one other training platform. Based on the position of the training data in the current model training cluster, it can be determined whether there is training data to be used in the current model training cluster.

[0056] It is understandable that in the embodiment of the present application, each training platform is provided with a hard disk for storing and sharing training data. Optionally, each training platform is also provided with a cache area, and when the current training platform needs to read a new round of training data and cannot hit the cache area, step 202 is executed.

[0057] The data acquisition speed of the data storage area refers to the data transmission speed when the data storage area sends data to the current training platform. In one implementation, the current training platform uses the data transmission speed between the current training platform and the data storage area in the first time period as the data acquisition speed of the data storage area. The first time period can be set according to actual needs. For example, the first time period is within the last minute. In one implementation, if no data transmission is performed between the current training platform and the data storage area in the first time period, the current training platform requests a small amount of data from the data storage area, counts the size of the small amount of data and the transmission time, and determines the data acquisition speed of the data storage area based on the statistical results. The size of the small amount of data can be set according to actual needs, for example, set to 15,000 bytes.

[0058] The local area network refers to the local area network where the current training platform is located. Other training platforms refer to training platforms in the same local area network as the current training platform, that is, training platforms other than the current training platform in the current model training cluster. Based on this, the transmission speed of training data in the local area network is used to evaluate the data transmission speed between the current training platform and other training platforms. In one implementation, the current training platform uses the data transmission speed between the current training platform and other training platforms in the second time period as the transmission speed of training data in the local area network. The second time period can be set according to actual needs, for example, the second time period is within the last 10 seconds. In one implementation, if no data transmission is performed between the current training platform and other training platforms in the second time period, the current training platform requests a small amount of data from other training platforms, counts the size of the small amount of data and the transmission time, and determines the transmission speed of training data in the local area network based on the statistical results. The size of the small amount of data can be set according to actual needs, for example, set to 15,000 bytes.

[0059] Based on the location of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network, the data sending subject is selected from the local hard disk of the current training platform, other training platforms, and the data storage area. In this way, a data sharing mechanism within the local area network is provided, which can obtain data from other training platforms in the same local area network, thereby reducing the probability of obtaining data from the data storage area. Taking into account the data storage location, data acquisition speed, and transmission speed, the data source is dynamically selected to determine the efficient use of training data.

[0060] In one implementation, the training data is obtained from the local hard disk of the current training platform first. If the training data to be used does not exist in the local hard disk of the current training platform, it is determined whether other training platforms in the same local area network can provide the training data. If they can, the data transmission subject is selected from other training platforms and data storage areas according to the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network. If other training platforms in the same local area network cannot provide the training data, the training data is obtained from the data storage area. Optionally, if there are multiple other training platforms in the same local area network that can provide the training data, the subject with the fastest transmission speed is selected from multiple other training platforms and data storage areas as the data transmission subject.

[0061] Step 204: Request training data from the data sending entity.

[0062] If the data sending subject is the local hard disk of the current training platform, the training data is directly read from the local hard disk. If the data sending subject is another training platform or data storage area, a data acquisition request is sent to the data sending subject, and the data sending subject responds to the data acquisition request, queries the training data from the corresponding storage space, and feeds back the training data to the current training platform.

[0063] Step 206, after executing the model training task based on the training data, determine the target processing strategy according to the local storage resources and the data acquisition speed; the target processing strategy is a storage strategy or a discard strategy.

[0064] Among them, a new round of training data is obtained, the obtained training data is sent to the model, and the model training task is performed. The model can be a deep learning model in application fields such as natural language processing, image processing, and autonomous driving. This embodiment does not limit the type of model. After the model training task is completed, the target processing strategy is selected from the storage strategy and the discard strategy based on the local storage resources and data acquisition speed. Local storage resources refer to resource information related to the local hard disk of the current training platform, such as disk capacity, available capacity, used capacity, etc.

[0065] Determine whether to store or discard training data based on local storage resources and data acquisition speed, improve the hit rate of subsequent training data on the local disk, and rationally utilize the data transmission link architecture. There is no need to significantly expand the bandwidth of the data storage area or significantly increase the storage space of the training platform, which can save deployment costs.

[0066] In one implementation, step 206 includes: after executing the model training task based on the training data, storing the training data in a cache area, and when the cache area is full, determining a target processing strategy based on local storage resources and data acquisition speed.

[0067] Step 208: Process the training data according to the target processing strategy.

[0068] The training data is stored or discarded according to the target processing strategy to achieve caching of the training data.

[0069] In one implementation, after the acquired training data is sent to the model, while the model is being trained, operations such as selecting a data sending subject for the next round of new training data, acquiring training data, and storing or discarding the data are performed.

[0070] In the above training data processing method, the data sending subject is determined according to the position of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network; the data sending subject is any one of the local hard disk of the current training platform, other training platforms, and the data storage area; the training data is requested from the data sending subject; after the model training task is performed based on the training data, the target processing strategy is determined according to the local storage resources and the data acquisition speed; the target processing strategy is a storage strategy or a discard strategy; the training data is processed according to the target processing strategy. Through the above method, it is possible to request training data from other training platforms in the current local area network, realize the sharing of training data in the training platforms in the same local area network, and reduce the requests sent to the data storage area; and by storing the training data, the training data can be cached locally so that the current training platform or other training platforms in the current local area network can obtain the training data, further reducing the requests sent to the data storage area. By slowing down the bandwidth utilization of the data storage area and increasing the hit rate of local data, the probability of network congestion in the data storage area is reduced, and the training efficiency of each training platform is guaranteed. The storage strategy or discard strategy is dynamically determined according to the local storage resources and the data acquisition speed, which improves the flexibility of training data processing.

[0071] In an exemplary embodiment, Figure 3 As shown, step 202 includes:

[0072] Step 302: If the location of the training data in the current model training cluster is the local hard disk of the current training platform, the local hard disk is used as the data sending subject, and the training data is subsequently obtained from the local hard disk.

[0073] In this case, when the local hard disk of the previous training platform stores the training data to be used, the local hard disk is used as the data sending subject.

[0074] Step 304: If there is no training data in the current model training cluster, the data storage area is used as the data sending subject.

[0075] Among them, when the current model training cluster (that is, the current training platform and other training platforms in the same local area network) cannot provide the training data, the data storage area is used as the data sending subject, and the training data is subsequently obtained from the data storage area.

[0076] Step 306: If the location of the training data in the local area network is the target training platform, a data sending subject is selected from the data storage area and the target training platform according to the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network; the target training platform is at least one training platform in the current model training cluster except the current training platform.

[0077] Among them, if other training platforms other than the current training platform in the current model training cluster can provide the training data, then according to the data acquisition speed of the data storage area (which can be understood as the data transmission speed between the data storage area and the current training platform) and the transmission speed of the training data in the local area network (which can be understood as the data transmission speed between other training platforms in the local area network and the current training platform), a data sending subject is selected from the data storage area and the training platform that can provide the training data, and the training data is subsequently obtained from the data sending subject. In one implementation, according to the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network, the subject with the fastest transmission is selected as the data sending subject. It can be understood that when there are multiple other training platforms in the same local area network that can provide the training data, the subject with the fastest transmission speed is selected as the data sending subject from the multiple training platforms and data storage areas that can provide training data based on the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network. Each training platform that can provide training data has a transmission speed to the current training platform, which is the data transmission speed between the current training platform and the training platform in the second time period. According to the transmission speed of each training platform and the data acquisition speed of the data storage area, the data sending subject with the fastest transmission speed is selected.

[0078] In this embodiment, training data is cached in a local hard disk or other training platforms in the current local area network to achieve sharing of training data among training platforms in the same local area network and reduce requests sent to the data storage area. Based on the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network, the data sending subject is selected from the data storage area and the target training platform, which can reduce the transmission delay of the training data and ensure that the training data reaches the current training platform quickly.

[0079] In an exemplary embodiment, a data sending subject is selected from the data storage area and the target training platform based on the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network, including: if the data acquisition speed of the data storage area is greater than or equal to the transmission speed of the training data in the local area network, the data storage area is selected as the data sending subject; if the data acquisition speed of the data storage area is less than the transmission speed of the training data in the local area network, the target training platform is selected as the data sending subject.

[0080] Among them, based on the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network, the faster subject is selected from the data storage area and the target training platform as the data sending subject. In this way, the transmission delay of the training data can be reduced, thereby reducing the time consumption of model training and improving the efficiency of model training.

[0081] In an exemplary embodiment, a target processing strategy is determined based on local storage resources and data acquisition speed, including: based on local storage resources, estimating the used storage capacity of the local hard disk after storing the training data in the local hard disk of the current training platform; if the used storage capacity is greater than or equal to a first limit value and less than a second limit value, determining a reference speed based on a set speed ratio and a maximum transmission speed of the data storage area; if the condition that the data acquisition speed is less than the reference speed is triggered, determining the target processing strategy to store the training data in the local hard disk; if the condition that the data acquisition speed is greater than or equal to the reference speed is triggered, determining the target processing strategy to discard the training data.

[0082] Among them, the used capacity of the local hard disk is determined based on the local storage resources, and the used storage capacity of the local hard disk after the training data is stored in the local hard disk of the current training platform is estimated according to the size of the training data and the used capacity. The first limit value and the second limit value are critical values ​​set in advance. By comparing the used storage with the first limit value and the second limit value, the current situation of the local hard disk can be evaluated. In one implementation, the first limit value is used to evaluate whether the used storage of the local disk will affect the demand of other processes on the current training platform for the local hard disk. If the used storage is less than the first limit value, the used storage of the local disk will not affect the demand of other processes on the current training platform for the local hard disk. Optionally, the second limit value is used to evaluate whether the used storage of the local disk will significantly affect the use of the local hard disk by other processes on the current training platform. If the used storage is greater than or equal to the first limit value and less than the second limit value, it means that the used storage of the local disk will affect the use of the local hard disk by other processes to a certain extent; if the used storage is greater than or equal to the second limit value, it means that the used storage of the local disk has greatly affected the use of the local hard disk by other processes.

[0083] When the used storage amount is greater than or equal to the first limit value and less than the second limit value, the reference speed is determined according to the set speed ratio and the maximum transmission speed of the data storage area (the reference speed is the product of the maximum transmission speed and the set speed ratio), and the data acquisition speed is compared with the reference speed. When the condition that the data acquisition speed is less than the reference speed is triggered, the training data is stored in the local hard disk. Among them, comparing the data acquisition speed with the reference speed can evaluate the bandwidth usage of the data storage area. If the data acquisition speed is less than the reference speed, it means that the bandwidth resources of the data storage area are in short supply. By storing the training data in the local hard disk, the current training platform or other training platforms in the current local area network can directly obtain the training data from the local hard disk of the current training platform, thereby reducing the requests sent to the data storage area, reducing the probability of network congestion in the data storage area, and ensuring the training efficiency of each training platform.

[0084] In one implementation, if the condition that the data acquisition speed is greater than or equal to the reference speed is triggered, the target processing strategy is determined to discard the training data, that is, the training data is not stored. If the data acquisition speed is greater than or equal to the reference speed, it means that the bandwidth resources of the data storage area are sufficient, and there is no need to store the training data. The training data can be directly read from the data storage area later, thereby saving the storage resources of the local hard disk.

[0085] In an exemplary embodiment, after calculating the reference speed based on the set speed ratio and the maximum transmission speed of the data storage area, the method further includes: if the trigger data acquisition speed is less than the reference speed condition, and the set speed ratio is a first speed ratio, determining the target processing strategy to store the training data in the local hard disk, and adjusting the set speed ratio to a second speed ratio; the first speed ratio is less than the second speed ratio; if the trigger data acquisition speed is greater than or equal to the reference speed condition, and the set speed ratio is the second speed ratio, determining the target processing strategy to discard the training data, and adjusting the set speed ratio to the first speed ratio.

[0086] Among them, if the condition that the data acquisition speed is less than the reference speed is triggered this time, and the trigger condition uses a smaller first speed ratio, the set speed ratio is adjusted, and the second speed ratio is used as the set speed ratio for the next data acquisition speed judgment. If the condition that the data acquisition speed is greater than or equal to the reference speed is triggered this time, and a larger second speed ratio is used when the trigger condition is triggered, the first speed ratio is used as the set speed ratio for the next data acquisition speed judgment. It can be understood that in other cases, the set speed ratio is kept unchanged. For example, if the condition that the data acquisition speed is less than the reference speed is triggered this time, but the trigger condition uses a larger second speed ratio (that is, the set speed ratio used to determine the reference speed is the second speed ratio), the set speed ratio is kept unchanged, and the reference speed is still determined using the second speed ratio at the next data acquisition speed judgment. For another example, if the condition that the data acquisition speed is greater than or equal to the reference speed is triggered this time, but the trigger condition uses a smaller first speed ratio (that is, the set speed ratio used to determine the reference speed is the first speed ratio), the set speed ratio is kept unchanged, and the reference speed is still determined using the first speed ratio at the next data acquisition speed judgment.

[0087] Take the first speed ratio of one third and the second speed ratio of one half as an example: when the data acquisition speed is triggered to drop to one third of the maximum transmission speed for the first time, the training data is stored in the local hard disk and the set speed ratio is adjusted to one half. When the data acquisition speed is judged next time, if the trigger data acquisition speed is restored to one half of the maximum transmission speed, it does not need to be stored and the set speed ratio is adjusted to one third.

[0088] In this embodiment, by dynamically adjusting the judgment conditions, it is possible to flexibly respond to different data transmission situations and adapt to different data transmission requirements. When the data acquisition speed is less than the product of the maximum transmission speed and the first speed ratio, it indicates that the bandwidth resources of the data storage area are limited. By reducing the conditions for storing training data on the local hard disk (adjusting the first speed ratio to the second speed ratio), the training data is stored with a greater probability, thereby reducing the requests sent to the data storage area and reducing the probability of network congestion in the data storage area. When the data acquisition speed is less than the product of the maximum transmission speed and the second speed ratio, it indicates that the transmission speed of the data storage area has recovered. In order to avoid unnecessary data storage operations, the conditions for storing training data on the local hard disk are improved (adjusting the second speed ratio to the first speed ratio), thereby ensuring the efficient operation of the current training platform.

[0089] In an exemplary embodiment, the method further includes: when the speed ratio is set to a second speed ratio, if the used storage amount is continuously greater than or equal to the first limit value and less than the second limit value, and the data acquisition speed is continuously greater than or equal to the reference speed, then determining the first data amount according to the first limit value and the second limit value; and determining the target processing strategy to discard data matching the first data amount from the local hard disk.

[0090] Among them, if the trigger data acquisition speed is continuously greater than or equal to the reference speed, the training data will not be stored. When the training data is needed in the future, it still needs to be obtained from other training platforms or data storage areas. In the specific implementation, a target duration is set, for example, ten minutes. If the data acquisition speed is continuously greater than or equal to the second speed ratio of the maximum transmission speed of the data storage area, and the duration reaches the target duration, within the target duration, the used storage capacity of the local hard disk is greater than or equal to the first limit value and less than the second limit value, then discarding part of the data can reduce the occupation of hard disk resources by training data and reduce the impact of the storage of training data on other programs of the current training platform.

[0091] In one implementation, a difference between the first limit value and the second limit value is determined, and the difference is multiplied by a set ratio to obtain the first data volume, and the set ratio may be one tenth.

[0092] In an exemplary embodiment, the method further includes: if the used storage amount is less than a first limit value, determining the target processing strategy to store the training data in a local hard disk; if the used storage amount is greater than a second limit value, determining the second data amount based on the second limit value, and determining the target processing strategy to discard data matching the second data amount from the local hard disk and store the training data in the local hard disk.

[0093] If the used storage is less than the first limit value, the used storage of the local disk will not affect the demand of other processes on the local hard disk on the current training platform, and the training data will be stored in the local hard disk. If the used storage is greater than or equal to the second limit value, it means that the used storage of the local disk has greatly affected the use of the local hard disk by other processes, and some data will be discarded and new training data will be stored in the local hard disk.

[0094] In one implementation, the second set value is multiplied by the set ratio to obtain the second data volume, and the set ratio may be 1 / 10. In a specific implementation, the data with the earliest storage time that matches the second data volume is discarded from the local hard disk.

[0095] In this embodiment, when the local hard disk capacity is sufficient, the training data is directly stored. When the local hard disk capacity is insufficient, part of the data in the local hard disk is discarded and then the training data is stored. This can avoid the insufficient local hard disk capacity affecting the use of other processes and ensure the efficient operation of the current training platform.

[0096] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0097] Based on the same inventive concept, the embodiment of the present application also provides a training data processing device for implementing the training data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more training data processing device embodiments provided below can refer to the limitations of the training data processing method above, and will not be repeated here.

[0098] In an exemplary embodiment, Figure 4 As shown, a training data processing device is provided, comprising:

[0099] Determination module 402 is used to determine the data sending subject according to the location of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network; the data sending subject is the local hard disk of the current training platform, other training platforms, and any one of the data storage areas.

[0100] The request module 404 is used to request training data from a data sending entity.

[0101] The strategy determination module 406 is used to determine the target processing strategy according to the local storage resources and the data acquisition speed after executing the model training task based on the training data; the target processing strategy is a storage strategy or a discard strategy.

[0102] The processing module 408 is used to process the training data according to the target processing strategy.

[0103] In the above training data processing device, the data sending subject is determined according to the position of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network; the data sending subject is any one of the local hard disk of the current training platform, other training platforms, and the data storage area; the training data is requested from the data sending subject; after the model training task is performed based on the training data, the target processing strategy is determined according to the local storage resources and the data acquisition speed; the target processing strategy is a storage strategy or a discard strategy; the training data is processed according to the target processing strategy. Through the above method, it is possible to request training data from other training platforms in the current local area network, realize the sharing of training data in the training platforms in the same local area network, and reduce the requests sent to the data storage area; and by storing the training data, the training data can be cached locally so that the current training platform or other training platforms in the current local area network can obtain the training data, further reducing the requests sent to the data storage area. By slowing down the bandwidth utilization of the data storage area and increasing the hit rate of local data, the probability of network congestion in the data storage area is reduced, and the training efficiency of each training platform is guaranteed. The storage strategy or discard strategy is dynamically determined according to the local storage resources and the data acquisition speed, which improves the flexibility of training data processing.

[0104] In an exemplary embodiment, the determination module 402 is also used to use the local hard disk as the data sending subject if the location of the training data in the current model training cluster is the local hard disk of the current training platform; if there is no training data in the current model training cluster, use the data storage area as the data sending subject; if the location of the training data in the local area network is the target training platform, select the data sending subject from the data storage area and the target training platform according to the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network; the target training platform is at least one training platform in the current model training cluster other than the current training platform.

[0105] In an exemplary embodiment, the determination module 402 is also used to select the data storage area as the data sending subject if the data acquisition speed of the data storage area is greater than or equal to the transmission speed of the training data in the local area network; if the data acquisition speed of the data storage area is less than the transmission speed of the training data in the local area network, select the target training platform as the data sending subject.

[0106] In an exemplary embodiment, the strategy determination module 406 is also used to estimate, based on local storage resources, the used storage capacity of the local hard disk after the training data is stored in the local hard disk of the current training platform; if the used storage capacity is greater than or equal to the first limit value and less than the second limit value, determine the reference speed based on the set speed ratio and the maximum transmission speed of the data storage area; if the condition that the data acquisition speed is less than the reference speed is triggered, determine the target processing strategy to store the training data in the local hard disk; if the condition that the data acquisition speed is greater than or equal to the reference speed is triggered, determine the target processing strategy to discard the training data.

[0107] In an exemplary embodiment, the strategy determination module 406 is also used to determine that the target processing strategy is to store the training data in the local hard disk and adjust the set speed ratio to the second speed ratio if the trigger data acquisition speed is less than the reference speed and the set speed ratio is the first speed ratio; the first speed ratio is less than the second speed ratio; if the trigger data acquisition speed is greater than or equal to the reference speed and the set speed ratio is the second speed ratio, determine the target processing strategy is to discard the training data and adjust the set speed ratio to the first speed ratio.

[0108] In an exemplary embodiment, the strategy determination module 406 is also used to determine the first data volume based on the first limit value and the second limit value when the speed ratio is set to a second speed ratio and if the used storage amount is continuously greater than or equal to the first limit value and less than the second limit value, and the data acquisition speed is continuously greater than or equal to the reference speed; and determine the target processing strategy to discard data that matches the first data volume from the local hard disk.

[0109] In an exemplary embodiment, the strategy determination module 406 is also used to determine the target processing strategy as storing the training data in the local hard disk if the used storage amount is less than a first limit value; if the used storage amount is greater than a second limit value, determine the second data amount according to the second limit value, and determine the target processing strategy as discarding data matching the second data amount from the local hard disk and storing the training data in the local hard disk.

[0110] Each module in the above training data processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0111] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a training data processing method is implemented.

[0112] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0113] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: determining a data sending subject according to the position of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network; the data sending subject is the local hard disk of the current training platform, other training platforms, and any one of the data storage areas; requesting training data from the data sending subject; after executing the model training task based on the training data, determining a target processing strategy according to local storage resources and data acquisition speed; the target processing strategy is a storage strategy or a discard strategy; and processing the training data according to the target processing strategy.

[0114] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if the location of the training data in the current model training cluster is the local hard disk of the current training platform, the local hard disk is used as the data sending subject; if the training data does not exist in the current model training cluster, the data storage area is used as the data sending subject; if the location of the training data in the local area network is the target training platform, the data sending subject is selected from the data storage area and the target training platform according to the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network; the target training platform is at least one training platform in the current model training cluster except the current training platform.

[0115] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if the data acquisition speed of the data storage area is greater than or equal to the transmission speed of the training data in the local area network, the data storage area is selected as the data sending subject; if the data acquisition speed of the data storage area is less than the transmission speed of the training data in the local area network, the target training platform is selected as the data sending subject.

[0116] In one embodiment, the processor further implements the following steps when executing the computer program: based on local storage resources, estimate the used storage capacity of the local hard disk after storing the training data in the local hard disk of the current training platform; if the used storage capacity is greater than or equal to the first limit value and less than the second limit value, determine the reference speed based on the set speed ratio and the maximum transmission speed of the data storage area; if the condition that the data acquisition speed is less than the reference speed is triggered, determine the target processing strategy to store the training data in the local hard disk; if the condition that the data acquisition speed is greater than or equal to the reference speed is triggered, determine the target processing strategy to discard the training data.

[0117] In one embodiment, the processor further implements the following steps when executing the computer program: if the condition that the data acquisition speed is less than the reference speed is triggered, and the set speed ratio is a first speed ratio, then the target processing strategy is determined to be storing the training data in the local hard disk, and the set speed ratio is adjusted to a second speed ratio; the first speed ratio is less than the second speed ratio; if the condition that the data acquisition speed is greater than or equal to the reference speed is triggered, and the set speed ratio is the second speed ratio, then the target processing strategy is determined to be discarding the training data, and the set speed ratio is adjusted to the first speed ratio.

[0118] In one embodiment, the processor also implements the following steps when executing the computer program: when the speed ratio is set to the second speed ratio, if the used storage amount is continuously greater than or equal to the first limit value and less than the second limit value, and the data acquisition speed is continuously greater than or equal to the reference speed, then determine the first data amount according to the first limit value and the second limit value; determine the target processing strategy to discard data that matches the first data amount from the local hard disk.

[0119] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if the used storage amount is less than the first limit value, the target processing strategy is determined to be to store the training data in the local hard disk; if the used storage amount is greater than the second limit value, the second data amount is determined according to the second limit value, and the target processing strategy is determined to discard the data matching the second data amount from the local hard disk and store the training data in the local hard disk.

[0120] In one embodiment, a model training cluster is provided, which is composed of multiple training platforms in the same local area network. The multiple model training clusters are all communicatively connected to the same data storage area. Each training platform is used to execute a model training task and process the training data corresponding to the model training task according to the steps of any training data processing method in the embodiments of the present application.

[0121] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0122] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0123] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0124] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A training data processing method, characterized in that: The method is applied to a current training platform, wherein the current training platform and at least one other training platform in the same local area network constitute a current model training cluster, and the current model training cluster and multiple other model training clusters are all communicatively connected to the same data storage area, and the method includes: Determine the data sending subject according to the location of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network; the data sending subject is any one of the local hard disk of the current training platform, other training platforms, and the data storage area; requesting training data from the data sending subject; After executing the model training task based on the training data, determining a target processing strategy according to local storage resources and the data acquisition speed; the target processing strategy is a storage strategy or a discard strategy; The training data is processed according to the target processing strategy.

2. The method according to claim 1, characterized in that The method of determining the data sending subject according to the location of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network includes: If the location of the training data in the current model training cluster is the local hard disk of the current training platform, the local hard disk is used as the data sending subject; If the training data does not exist in the current model training cluster, the data storage area is used as the data sending subject; If the location of the training data in the local area network is the target training platform, a data sending subject is selected from the data storage area and the target training platform according to the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network; the target training platform is at least one training platform in the current model training cluster except the current training platform.

3. The method according to claim 2, characterized in that The selecting a data transmission subject from the data storage area and the target training platform according to the data acquisition speed of the data storage area and the transmission speed of the training data in the local area network comprises: If the data acquisition speed of the data storage area is greater than or equal to the transmission speed of the training data in the local area network, the data storage area is selected as the data transmission subject; If the data acquisition speed of the data storage area is lower than the transmission speed of the training data in the local area network, the target training platform is selected as the data sending subject.

4. The method according to claim 1, characterized in that: The determining of the target processing strategy according to the local storage resources and the data acquisition speed includes: According to local storage resources, estimate the used storage capacity of the local hard disk after storing the training data in the local hard disk of the current training platform; If the used storage amount is greater than or equal to the first limit value and less than the second limit value, determining the reference speed according to the set speed ratio and the maximum transmission speed of the data storage area; If the trigger data acquisition speed is less than the reference speed, determining the target processing strategy is to store the training data in the local hard disk; If the condition that the data acquisition speed is greater than or equal to the reference speed is triggered, the target processing strategy is determined to discard the training data.

5. The method according to claim 4, characterized in that After calculating the reference speed according to the set speed ratio and the maximum transmission speed of the data storage area, the method further includes: If the trigger data acquisition speed is less than the reference speed, and the set speed ratio is the first speed ratio, the target processing strategy is determined to store the training data in the local hard disk and adjust the set speed ratio to a second speed ratio; the first speed ratio is less than the second speed ratio; If the trigger data acquisition speed is greater than or equal to the reference speed, and the set speed ratio is the second speed ratio, the target processing strategy is determined to discard the training data and adjust the set speed ratio to the first speed ratio.

6. The method according to claim 5, characterized in that The method further comprises: In the case where the set speed ratio is the second speed ratio, if the used storage amount is continuously greater than or equal to the first limit value and less than the second limit value, and the data acquisition speed is continuously greater than or equal to the reference speed, determining the first data amount according to the first limit value and the second limit value; A target processing strategy is determined to discard data matching the first data amount from the local hard disk.

7. The method according to claim 4, characterized in that The method further comprises: If the used storage amount is less than the first limit value, determining the target processing strategy is to store the training data in the local hard disk; If the used storage amount is greater than the second limit value, the second data amount is determined according to the second limit value, and the target processing strategy is determined to discard data matching the second data amount from the local hard disk and store the training data in the local hard disk.

8. A training data processing device, characterized in that: The device is applied to a current training platform, the current training platform and at least one other training platform in the same local area network constitute a current model training cluster, the current model training cluster and multiple other model training clusters are all communicatively connected to the same data storage area, and the device includes: A determination module is used to determine a data sending subject according to the location of the training data in the current model training cluster, the data acquisition speed of the data storage area, and the transmission speed of the training data in the local area network; the data sending subject is any one of the local hard disk of the current training platform, other training platforms, and the data storage area; A request module, used for requesting training data from the data sending subject; A strategy determination module, used to determine a target processing strategy according to local storage resources and the data acquisition speed after executing the model training task based on the training data; the target processing strategy is a storage strategy or a discard strategy; A processing module is used to process the training data according to the target processing strategy.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A model training cluster, characterized in that: The model training cluster is composed of multiple training platforms in the same local area network. The multiple model training clusters are all communicatively connected to the same data storage area. Each training platform is used to execute a model training task and process the training data corresponding to the model training task according to the steps of the method described in any one of claims 1 to 7.