Data processing method and related equipment

By deduplicating and accurately transmitting data in multi-machine and multi-card training scenarios, the problems of data redundancy and communication bottlenecks in large recommendation models are solved, and the training/inference efficiency of the model and the communication capabilities of the system are improved.

CN118734061APending Publication Date: 2024-10-01HUAWEI TECH CO LTD

Patent Information

Application Number
CN202310379419.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The huge number of parameters of the large recommendation model causes memory access and network communication to become system bottlenecks, and the recommendation features in the recommendation system are distributed in a power law, resulting in data redundancy in network communication and a large waste of bandwidth.

Method used

In a multi-machine multi-card training scenario, data from multiple accelerator cards is obtained for deduplication processing, and the deduplicated data is sent to the switching device based on feature identifiers and mapping relationships, thereby reducing cross-plane transmission of repeated feature data and achieving Accurate transmission and aggregation of data.

Benefits of technology

It improves the training/inference efficiency of the model, saves bandwidth, reduces repeated data transmission, and improves the system's communication capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734061A_ABST
    Figure CN118734061A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method which can be applied to scenes such as multi-machine and multi-card training. The method is applied to a first device, the first device comprises a plurality of first acceleration cards, and the method comprises the following steps: obtaining a plurality of first data from the plurality of first acceleration cards, the plurality of first data comprising sample features and feature identifiers of a model, and the plurality of first data being data transmitted across data planes; performing duplicate removal processing on the plurality of first data based on the feature identifier to obtain a plurality of second data; and sending a plurality of second data to the switching device based on the feature identifier and a mapping relationship, wherein the mapping relationship is used for representing an association relationship between the feature identifier and the second accelerator cards in the plurality of second devices. In the transmission process of the sample features corresponding to the model, the first device sends the de-duplicated second data to the switching device, so that cross-plane transmission of repeated feature data can be reduced, and then the training / reasoning efficiency of the model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of artificial intelligence, and in particular, to a data processing method and related equipment. Background Art

[0002] Artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a branch of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is also the study of the design principles and implementation methods of various intelligent machines, so that machines have the functions of perception, reasoning and decision-making. Research in the field of artificial intelligence includes robotics, natural language processing, computer vision, decision-making and reasoning, human-computer interaction, recommendation and search, basic AI theory, etc.

[0003] At present, model training is a key component of the recommendation system. Model training produces high-quality models, which are applied to online reasoning and sorting to support business applications. The better the model effect produced by model training, the higher the income. For leading Internet companies, every 1% improvement in recommendation quality can bring billions of additional revenue. The larger the model, the better the effect. The recommendation models of leading Internet companies are getting bigger and bigger. The huge number of parameters in large recommendation models has led to memory access and network communication becoming increasingly system bottlenecks. The industry currently increases high-speed interconnection bandwidth for training cards and provides collective communication libraries. Hardware with collective communication libraries to improve communication capabilities has become the key to improving training throughput.

[0004] However, the recommended features in the recommendation system are distributed in a power law, and more than 80% of the features are high-frequency hotspot features. There is a lot of redundancy in data in current network communications, wasting a lot of bandwidth. Summary of the invention

[0005] This application provides a data processing method and related equipment, which can improve the training / inference efficiency of the model in a multi-machine and multi-card training scenario.

[0006] The first aspect of the embodiment of the present application provides a data processing method, which can be applied to scenarios such as multi-machine multi-card training. The method can be executed by a first device, or by a component of the first device (such as a processor, a chip, or a chip system, etc.). The method is applied to a first device, and the first device includes multiple first accelerator cards. The method includes: obtaining multiple first data from multiple first accelerator cards, the multiple first data include sample features and feature identifiers of the model, and the multiple first data are data transmitted across the data plane; deduplication processing is performed on the multiple first data based on the feature identifier to obtain multiple second data; based on the feature identifier and the mapping relationship, multiple second data are sent to the switching device, and the mapping relationship is used to represent the association relationship between the feature identifier and the second accelerator card in the multiple second devices.

[0007] In an embodiment of the present application, during the transmission of sample features corresponding to the model, the first device can reduce the transmission of repeated feature data across planes by sending deduplicated second data to the switching device, thereby improving the training / inference efficiency of the model.

[0008] Optionally, in a possible implementation manner of the first aspect, the above-mentioned feature identifier includes a first bit and a second bit, the first bit is used to deduplicate multiple first data, and the second bit is used to determine a second acceleration card related to the second data.

[0009] In this possible implementation, the feature identifier can be used for data deduplication and determination of the receiver's acceleration card, thereby reducing repeated data transmission.

[0010] Optionally, in a possible implementation manner of the first aspect, there are no two second data with the same first bit position among the multiple second data.

[0011] In this possible implementation, there are no two second data with the same first identity in the second data after deduplication processing, that is, the transmission of the same first data is reduced, saving bandwidth.

[0012] Optionally, in a possible implementation of the first aspect, the method further includes: receiving fifth data from a switching device, the fifth data including a gradient and a gradient identifier of a loss function corresponding to the model acquired by the second device; and updating the model based on the fifth data.

[0013] In this possible implementation, the first device may also receive gradient data through the switching device, thereby implementing a joint training model process.

[0014] The second aspect of the embodiment of the present application provides a data processing method that can be applied to scenarios such as multi-machine multi-card training. The method can be executed by a switching device, or by a component of the switching device (such as a processor, a chip, or a chip system, etc.). The method includes: receiving multiple second data after deduplication from a first device, the multiple second data including sample features and feature identifiers of a model, and the multiple second data being data transmitted across a data plane; splitting the multiple second data based on the feature identifier to obtain multiple third data; sending multiple third data to multiple second devices respectively based on the feature identifier and the mapping relationship, and the mapping relationship is used to represent the association between the feature identifier and the second accelerator card in the multiple second devices.

[0015] In the embodiment of the present application, during the transmission of the sample features corresponding to the forwarding model, the switch device receives the deduplicated data, splits the data based on the feature identifier (i.e., distributes it in pieces), and sends the corresponding data to the receiving device respectively. Since the switch device receives the deduplicated data, the bandwidth of the switch device can be saved and the transmission efficiency can be improved.

[0016] Optionally, in a possible implementation manner of the second aspect, the above-mentioned characteristic identifier includes a first bit and a second bit, the first bit is used to deduplicate multiple first data, and the second bit is used to determine the second acceleration card of the second device to which the multiple third data belong.

[0017] In this possible implementation, the feature identifier can be used for data deduplication and determination of the receiver's acceleration card, thereby reducing repeated data transmission.

[0018] Optionally, in a possible implementation manner of the second aspect, there are no two second data with the same first bit position among the multiple second data.

[0019] In this possible implementation, there are no two second data with the same first identity in the second data after deduplication processing, that is, the transmission of the same first data is reduced, saving bandwidth.

[0020] Optionally, in a possible implementation of the second aspect, the method further includes: receiving multiple fourth data from multiple second devices, the multiple fourth data including the gradient and gradient identifier of the loss function, the gradient being used to update the parameters of the model, and the gradient identifier being used to exchange devices for gradient aggregation; aggregating the multiple fourth data based on the gradient identifier to obtain multiple fifth data, the number of the multiple fifth data being less than the number of the multiple fourth data; and sending the multiple fifth data to the multiple second devices respectively based on the gradient identifier and the mapping relationship, the fifth data being used to update the gradient.

[0021] In this possible implementation, the switching device may aggregate multiple gradient data according to the gradient identifier, which reduces data transmission on the one hand and reduces the steps of downstream devices receiving full data and re-aggregating on the other hand.

[0022] The third aspect of the embodiment of the present application provides a data processing method that can be applied to scenarios such as multi-machine multi-card training. The method can be executed by a second device, or by a component of the second device (such as a processor, a chip, or a chip system, etc.). The second device includes multiple second accelerator cards, and the method includes: receiving third data sent by a switching device, the third data including sample features and feature identifiers of the model acquired by the first device; acquiring fourth data based on the third data, the fourth data including the gradient and gradient identifier of the loss function, the gradient is used to update the parameters of the model, and the gradient identifier is used for the switching device to perform gradient aggregation; sending fourth data to the switching device.

[0023] In an embodiment of the present application, during the transmission of sample features corresponding to the model, the second device can perform gradient calculation by receiving data sent by the switching device, and send the gradient data to the first device through the switching device, so that the first device can implement model training.

[0024] Optionally, in a possible implementation manner of the third aspect, the above-mentioned characteristic identifier is also used to determine the second accelerator card to which the third data belongs.

[0025] In this possible implementation, the feature identifier can be used to determine the receiver's accelerator card, thereby achieving accurate data transmission.

[0026] A fourth aspect of an embodiment of the present application provides a first device, which includes multiple first acceleration cards, and the first device includes: an acquisition unit, used to acquire multiple first data from the multiple first acceleration cards, the multiple first data include sample features and feature identifiers of a model, and the multiple first data are data transmitted across data planes; a deduplication unit, used to deduplicate the multiple first data based on the feature identifier to obtain multiple second data; a sending unit, used to send the multiple second data to a switching device based on the feature identifier and a mapping relationship, and the mapping relationship is used to represent the association relationship between the feature identifier and the second acceleration card in the multiple second devices.

[0027] Optionally, in a possible implementation manner of the fourth aspect, the above-mentioned feature identifier includes a first bit and a second bit, the first bit is used to deduplicate multiple first data, and the second bit is used to determine a second acceleration card related to the second data.

[0028] Optionally, in a possible implementation manner of the fourth aspect, there are no two second data with the same first bit position among the multiple second data.

[0029] Optionally, in a possible implementation of the fourth aspect, the above-mentioned first device also includes: a receiving unit, used to receive fifth data from the switching device, the fifth data including the gradient and gradient identifier of the loss function corresponding to the model obtained by the second device; an updating unit, used to update the model based on the fifth data.

[0030] A fifth aspect of an embodiment of the present application provides a switching device, which includes: a receiving unit, used to receive multiple second data after deduplication from a first device, the multiple second data include sample features and feature identifiers of a model, and the multiple second data are data transmitted across a data plane; a processing unit, used to split the multiple second data based on the feature identifier to obtain multiple third data; a sending unit, used to send the multiple third data to the multiple second devices respectively based on the feature identifier and a mapping relationship, and the mapping relationship is used to represent the association relationship between the feature identifier and the second acceleration card in the multiple second devices.

[0031] Optionally, in a possible implementation manner of the fifth aspect, the above-mentioned characteristic identifier includes a first bit and a second bit, the first bit is used to deduplicate multiple first data, and the second bit is used to determine the second acceleration card of the second device to which multiple third data belong.

[0032] Optionally, in a possible implementation manner of the fifth aspect, there are no two second data with the same first bit position among the multiple second data.

[0033] Optionally, in a possible implementation of the fifth aspect, the above-mentioned receiving unit is also used to receive multiple fourth data from multiple second devices, the multiple fourth data include the gradient and gradient identifier of the loss function, the gradient is used to update the parameters of the model, and the gradient identifier is used to exchange devices for gradient aggregation; the processing unit is also used to aggregate the multiple fourth data based on the gradient identifier to obtain multiple fifth data, and the number of the multiple fifth data is less than the number of the multiple fourth data; the sending unit is also used to send multiple fifth data to the multiple second devices respectively based on the gradient identifier and the mapping relationship, and the fifth data is used to update the gradient.

[0034] In a sixth aspect of an embodiment of the present application, a second device is provided, which includes multiple second acceleration cards, and the second device includes: a receiving unit, used to receive third data sent by a switching device, the third data including sample features and feature identifiers of the model acquired by the first device; an acquisition unit, used to acquire fourth data based on the third data, the fourth data including a gradient and a gradient identifier of a loss function, the gradient is used to update parameters of the model, and the gradient identifier is used by the switching device to perform gradient aggregation; a sending unit, used to send the fourth data to the switching device.

[0035] Optionally, in a possible implementation manner of the sixth aspect, the above-mentioned feature identifier is also used to determine the second accelerator card to which the third data belongs.

[0036] The seventh aspect of an embodiment of the present application provides a first device, comprising: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the first device implements the method in the above-mentioned first aspect or any possible implementation method of the first aspect.

[0037] An eighth aspect of an embodiment of the present application provides a switching device, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the switching device implements the method in the above-mentioned second aspect or any possible implementation of the second aspect.

[0038] A ninth aspect of an embodiment of the present application provides a second device, comprising: a processor, the processor being coupled to a memory, the memory being used to store programs or instructions, and when the programs or instructions are executed by the processor, the second device implements the method in the third aspect or any possible implementation of the third aspect.

[0039] A tenth aspect of an embodiment of the present application provides a communication system, comprising: the first device of the seventh aspect, the switching device of the eighth aspect, and / or the second device of the ninth aspect.

[0040] An eleventh aspect of the embodiments of the present application provides a computer-readable medium having a computer program or instruction stored thereon. When the computer program or instruction is executed on a computer, the computer executes the method of the first aspect or any possible implementation of the first aspect, or the computer executes the method of the second aspect or any possible implementation of the second aspect, or the computer executes the method of the third aspect or any possible implementation of the third aspect.

[0041] A twelfth aspect of an embodiment of the present application provides a computer program product. When the computer program product is executed on a computer, it enables the computer to execute the method in the first aspect or any possible implementation of the first aspect, or enables the computer to execute the method in the second aspect or any possible implementation of the second aspect, or enables the computer to execute the third aspect or any possible implementation of the third aspect.

[0042] A thirteenth aspect of an embodiment of the present application provides a chip system, which includes at least one processor for implementing the functions involved in the above-mentioned first aspect or any possible implementation of the first aspect, implementing the functions involved in the above-mentioned second aspect or any possible implementation of the second aspect, and implementing the functions involved in the above-mentioned third aspect or any possible implementation of the third aspect.

[0043] In one possible design, the chip system may also include a memory for storing necessary program instructions and data for the data processing device (e.g., the first device, the switching device, the second device). The chip system may be composed of a chip, or may include a chip and other discrete devices. Optionally, the chip system also includes an interface circuit, which provides program instructions and / or data for the at least one processor.

[0044] Among them, the technical effects brought about by the fourth, seventh, tenth, eleventh, twelfth, and thirteenth aspects or any possible implementation methods thereof can refer to the technical effects brought about by the first aspect or different possible implementation methods of the first aspect, and will not be repeated here.

[0045] Among them, the technical effects brought about by the fifth, eighth, tenth, eleventh, twelfth, and thirteenth aspects or any possible implementation methods thereof can refer to the technical effects brought about by the second aspect or different possible implementation methods of the second aspect, and will not be repeated here.

[0046] Among them, the technical effects brought about by the sixth, ninth, tenth, eleventh, twelfth, and thirteenth aspects or any possible implementation methods thereof can refer to the technical effects brought about by the third aspect or different possible implementation methods of the third aspect, and will not be repeated here.

[0047] It can be seen from the above technical solution that the present application has the following advantages: in the process of transmitting sample features corresponding to the model, the first device can reduce the transmission of repeated feature data across planes by sending deduplicated second data to the switching device, thereby improving the training / inference efficiency of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A schematic diagram of the structure of the system architecture provided in the embodiment of the present application;

[0049] Figure 2 A schematic diagram of the model training process provided in the embodiment of the present application;

[0050] Figure 3 A flowchart of a data processing method provided in an embodiment of the present application;

[0051] Figure 4An example diagram of a system architecture provided in an embodiment of the present application;

[0052] Figure 5 Another example diagram of the system architecture provided in the embodiment of the present application;

[0053] Figure 6 A structural schematic diagram of a first device provided in an embodiment of the present application;

[0054] Figure 7 A schematic diagram of the structure of a switching device provided in an embodiment of the present application;

[0055] Figure 8 A schematic diagram of the structure of a second device provided in an embodiment of the present application;

[0056] Fig. 9 Another structural schematic diagram of the first device provided in an embodiment of the present application;

[0057] Fig.10 Another schematic diagram of the structure of the switching device provided in the embodiment of the present application;

[0058] Fig.11 Another structural schematic diagram of the second device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] The following will describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0060] First, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0061] 1. Neural Networks

[0062] A neural network can be composed of neural units. A neural unit can be a s and intercept b as inputs, the output of the operation unit can be:

[0063]

[0064] Where, s = 1, 2, ... n, n is a natural number greater than 1, W s For X sThe weight of the neural unit, b is the bias of the neural unit. f is the activation function of the neural unit, which is used to introduce nonlinear characteristics into the neural network to convert the input signal in the neural unit into the output signal. The output signal of the activation function can be used as the input of the next convolutional layer. The activation function can be a sigmoid function. A neural network is a network formed by connecting many of the above-mentioned single neural units together, that is, the output of one neural unit can be the input of another neural unit. The input of each neural unit can be connected to the local receptive field of the previous layer to extract the features of the local receptive field. The local receptive field can be an area composed of several neural units.

[0065] 2. Forward Propagation and Backward Propagation

[0066] During the training process, the model first performs forward propagation to obtain the output of each layer. Then it performs back propagation to obtain the gradient of each layer. Finally, according to the gradient descent algorithm, the weight and offset of each layer are updated.

[0067] 3. Word Embedding (embedding, emb)

[0068] Word embedding can also be called "vectorization", "vector mapping", "embedding", etc. Formally speaking, word embedding represents an object with a dense vector.

[0069] 4. Sparse Model

[0070] The sparse model removes a large number of redundant variables and retains only the explanatory variables most relevant to the response variable, simplifying the model while retaining the most important information in the data set, effectively solving many problems in modeling high-dimensional data sets. The sparse model applies the word embedding vector (embedding, emb) table model. For example, the mainstream industry models for recommendation, search, advertising, and marketing are all sparse models.

[0071] 5. Data plane / plane

[0072] Data plane / plane refers to the plane included in the training card. For example, the training card includes two planes, and one plane corresponds to at least 4 cards. For another example, the 16-card 910B training server is divided into two planes, each with 8 cards. Each plane is interconnected through fullmesh.

[0073] 6. Collective communication method

[0074] The collective communication mode refers to the communication mode in which each node in the networking cluster receives and sends data to other nodes. For example, All2All, PS server, etc.

[0075] Model training is a key component of the recommendation system. Model training produces high-quality models, which are used for online reasoning and sorting to support business applications. The better the model effect produced by model training, the higher the revenue. For leading Internet companies, every 1% improvement in recommendation quality can bring billions of additional revenue. The larger the model, the better the effect. The recommendation models of leading Internet companies are getting bigger and bigger. The huge number of parameters in large recommendation models has led to memory access and network communication becoming increasingly system bottlenecks. The industry currently increases high-speed interconnection bandwidth for training cards and provides collective communication libraries. Hardware combined with collective communication libraries to improve communication capabilities has become the key to improving training throughput.

[0076] At present, for the collective communication scenario, the recommended features in the recommendation system are distributed in a power law, and more than 80% of the features are high-frequency hot spot features. There is a lot of redundancy in the current network communication data, which wastes a lot of bandwidth. For example, in the scenario where the collective communication mode is PS server, the computing power of heterogeneous acceleration has increased significantly, the distance between the PS architecture data and the accelerator is far, communication has become a bottleneck, and there is bandwidth competition for pulling emb. For another example, in the scenario where the collective communication mode is All2All, for large-scale recommendation communication solutions; only update increments are transmitted. However, in the above two scenarios, there is a lot of redundancy in the data in the communication, which wastes a lot of bandwidth.

[0077] In order to solve the above technical problems, an embodiment of the present application provides a data processing method. During the transmission of sample features corresponding to the model, the first device can reduce the transmission of repeated feature data across planes by sending deduplicated second data to the switching device, thereby improving the training / inference efficiency of the model.

[0078] See attached Figure 1 The embodiment of the present invention provides a system architecture, which includes a first device 101 , a switching device 102 , and a second device 103 .

[0079] Among them, the system architecture can be applied to multi-machine and multi-card training scenarios. Figure 1 The first device 101 shown includes 4 training cards (also called acceleration cards), and the second device 103 includes 4 training cards. The training cards in the first device 101 and the training cards in the second device 103 transmit data through a switching device. The data includes at least one of the following: feature data of a model sample, gradient data of a model, etc. By transmitting the above data, the model training is achieved.

[0080] Optionally, the system architecture can be applied to sparse model training as part of the acceleration coefficient model training. The training process of the above model can be as follows Figure 2As shown. The training process includes: a forward phase and a reverse phase. The forward phase includes: input feature identification (identity, ID), ID deduplication distribution, mapping table lookup, cross-data plane deduplication and switch data plane splitting, deduplication recovery, dense model, loss / optimizer, etc. The reverse phase includes: aggregation gradient, aggregation within the data plane and aggregation within the switch, optimizer calculation, gradient update, etc. The subsequent embodiments will describe this process in detail and will not be repeated here.

[0081] The first device 101 and the second device 103 in the embodiment of the present application may be devices or servers with data processing functions, such as cloud servers, network servers, application servers, and management servers.

[0082] The switching device 102 in the embodiment of the present application may be a device having functions such as splitting, aggregating, sending, and receiving.

[0083] Understandably, Figure 1 This is only an example of the system architecture of the embodiment of the present application. In actual applications, the first device, the switching device, the second device, and the number of training cards in the first device and the number of training cards in the second device in the system architecture are not limited.

[0084] In addition, the embodiments of the present application only take the fullmesh+roce whole machine and networking method as an example for illustrative explanation. In actual applications, other methods may also be used, such as 1520 interconnection, 8-card fullmesh, networking method with no fullmesh but only roce, etc., which are not limited here.

[0085] The data processing method provided in the embodiment of the present application is described below. The method can be executed by a data processing device, or by a component of the data processing device (such as a processor, a chip, or a chip system, etc.). The data processing device includes at least one of the following: a first device, a switching device, a second device, etc.

[0086] The application scenarios to which the method provided in the embodiments of the present application is applicable are mainly multi-machine multi-card training scenarios, and can be specifically applied to computer vision tasks such as classification scenarios, segmentation scenarios, detection scenarios, and image generation scenarios, or can be applied to semantic segmentation, indoor scene perception, outdoor driving, etc. In addition, the data involved in the embodiments of the present application may refer to text, images, audio and video, etc.

[0087] See also Figure 3 , a flow chart of a data processing method provided by an embodiment of the present application, the method may include steps 301 to 310. Steps 301 to 310 are described in detail below.

[0088] Step 301: A first device obtains a plurality of first data from a plurality of first acceleration cards.

[0089] The first device in the embodiment of the present application includes a plurality of first acceleration cards, which can be understood as the training cards described above.

[0090] The first device obtains a plurality of first data from a plurality of first accelerator cards. The plurality of first data includes sample features of the model and feature identifiers corresponding to the sample features. In addition, the plurality of first data is data transmitted across the data plane. The description of the data plane can refer to the above explanation, which will not be repeated here.

[0091] Optionally, the above-mentioned feature identifier is used for at least one of the following: marking sample features, deduplication of multiple first data, determining a second acceleration card related to the second data (or understood as a receiving card for determining data), etc.

[0092] For ease of understanding, Figure 4 Taking the framework shown in the figure as an example, the framework includes a first device and two second devices. The first device includes multiple first acceleration cards including: Rank0, Rank1, Rank2, and Rank3. The second device includes multiple second acceleration cards including: Rank8, Rank9, Rank10, and Rank11. The other second device includes multiple second acceleration cards including: Rank16, Rank17, Rank18, and Rank19. Figure 4 "0->8, 9, 10, 11, 16, 17, 18, 19" is shown. The "0->8, 9, 10, 11, 16, 17, 18, 19" indicates that multiple first data include: data sent by Rank0 to Rank8, data sent by Rank0 to Rank9, data sent by Rank0 to Rank10, data sent by Rank0 to Rank11, data sent by Rank0 to Rank16, data sent by Rank0 to Rank17, data sent by Rank0 to Rank18, and data sent by Rank0 to Rank19. The format of the multiple first data can be unique(embedding_id, embedding), which is based on sorting implementation. Embedding keeps the id in order after deduplication. The data distribution target is represented by embedding_id->rank_id-bitmap, which is convenient for data splitting and reduce_sum(embedding) on ​​the switch. 25%-85% of the communication volume can be saved.

[0093] Step 302: The first device performs deduplication processing on a plurality of first data based on a feature identifier to obtain a plurality of second data.

[0094] After the first device acquires the plurality of first data, it performs deduplication processing on the plurality of first data based on the feature identifier to obtain the plurality of second data. Since the plurality of second data is obtained after deduplication of the plurality of first data, the plurality of second data also includes the sample features and feature identifiers of the model.

[0095] Optionally, the feature identifier includes a first bit and a second bit, the first bit is used to deduplicate the plurality of first data, and the second bit is used to determine a second accelerator card associated with the second data. The first bit and the second bit may be one bit or multiple bits. For example, they may be int8, int32, int64, etc.

[0096] In the case where the characteristic identifier includes the first bit and the second bit, the first device performs deduplication processing on the multiple first data based on the characteristic identifier, which can be understood as deduplication of the data with repeated first bits and retaining only one. In this case, there are no two second data with the same first bit among the multiple second data obtained by the deduplication processing.

[0097] It is understandable that data within a plane can be sent directly, such as data sent from Rank0 to Rank1, data sent from Rank0 to Rank2, data sent from Rank0 to Rank3, etc. Data across planes (ie, multiple first data) are deduplicated and sent.

[0098] Step 303: The first device sends a plurality of second data to the switching device based on the feature identifier and the mapping relationship. Correspondingly, the switching device receives the plurality of second data sent by the first device.

[0099] After the first device obtains the plurality of second data, the first device sends the plurality of second data to the switching device based on the feature identifier and the mapping relationship, wherein the mapping relationship is used to indicate the association relationship between the feature identifier and the second acceleration card in the plurality of second devices.

[0100] Specifically, the second device may determine, according to the above mapping relationship, to which second acceleration card in which second device the feature data corresponding to the feature identifier is to be sent.

[0101] Step 304: The switching device splits the plurality of second data based on the feature identifier to obtain a plurality of third data.

[0102] After receiving the multiple second data sent by the first device, the switching device splits the multiple second data based on the feature identifier to obtain the multiple third data.

[0103] This step can be understood as the switching device splitting the data belonging to different planes.

[0104] For example, continuing the above Figure 4 For example, in this step, the switching device splits the received "0->8, 9, 10, 11, 16, 17, 18, 19" to obtain "0->8, 9, 10, 11" and "0->16, 17, 18, 19". That is, the plurality of third data include "0->8, 9, 10, 11" and "0->16, 17, 18, 19".

[0105] Optionally, add maintenance networking information to the switching device<index,ip> , can be sent to the switching device when the collective communication is initialized, or can be included in each data packet. The former saves more bandwidth. In addition, the switching device needs to split multiple second data, calculate the index of the sent embedding through the partition function (mod), and then send the data belonging to the same plane to the downstream according to the layered communication.

[0106] Step 305: The switching device sends a plurality of third data to a plurality of second devices based on the feature identifier and the mapping relationship. Correspondingly, the second device receives the third data sent by the switching device.

[0107] After the switching device obtains the plurality of third data, it sends the plurality of third data to the second device based on the feature identifier and the mapping relationship. The mapping relationship has been described above and will not be described again here.

[0108] For example, continuing the above Figure 4 For example, the switching device sends the third data "0->8, 9, 10, 11" to a second device, and sends the third data "0->16, 17, 18, 19" to another second device. It can be understood that after receiving "0->8, 9, 10, 11", a second device can expand "0->8, 9, 10, 11" (that is, 0->9, 0->10, 0->11) and send it to other accelerator cards in the same plane.

[0109] Step 306: The second device obtains fourth data based on the third data.

[0110] After the second device obtains the third data, it obtains fourth data based on the third data. The fourth data includes the gradient and gradient identifier of the loss function. The gradient is used to update the parameters of the model, and the gradient identifier is used to perform at least one of the following processes: gradient aggregation processing, determining the first accelerator card corresponding to the gradient identifier.

[0111] This step can also be understood as a process of performing gradient calculation based on the feature data of the model. The loss function, model and feature data are not specifically limited here.

[0112] For ease of understanding, Figure 5 Taking the framework shown in FIG. 1 as an example, the framework includes a first device and two second devices. The first device includes multiple first acceleration cards including: Rank0, Rank1, Rank2, and Rank3. The second device includes multiple second acceleration cards including: Rank8, Rank9, Rank10, and Rank11. The other second device includes multiple second acceleration cards including: Rank16, Rank17, Rank18, and Rank19. Figure 5 In the figure, "0->8, 9, 10, 11, 16, 17, 18, 19->0" is shown. The "8, 9, 10, 11, 16, 17, 18, 19->0" indicates that the fourth data includes: data sent by Rank8 to Rank0, data sent by Rank9 to Rank0, data sent by Rank10 to Rank0, data sent by Rank11 to Rank0, data sent by Rank16 to Rank0, data sent by Rank17 to Rank0, data sent by Rank18 to Rank0, and data sent by Rank19 to Rank0. The format of the fourth data can be as described above. Figure 4 The first data in the example shown will not be described in detail here.

[0113] Step 307: The second device sends fourth data to the switching device. Correspondingly, the switching device receives the fourth data sent by the second device.

[0114] After acquiring the fourth data, the second device sends the fourth data to the switching device.

[0115] Optionally, the gradient identifier in the fourth data is used to perform at least one of the following processing: determining the first accelerator card to which the gradient data belongs, aggregation processing, etc.

[0116] Step 308: The switching device aggregates the plurality of fourth data based on the gradient identifier to obtain fifth data.

[0117] After receiving the gradient data sent by the plurality of second devices, the switching device aggregates the plurality of fourth data based on the gradient identifier to obtain the plurality of fifth data.

[0118] For example, continuing the above Figure 5 For example, in this step, the switching device receives the fourth data "8, 9, 10, 11->0" sent by a second device and the fourth data "6, 17, 18, 19->0" sent by another second device, and aggregates the plurality of fourth data to obtain the fifth data: "8, 9, 10, 11, 16, 17, 18, 19->0".

[0119] It is understandable that data within a plane can be sent directly, such as data sent from Rank1 to Rank0, data sent from Rank2 to Rank0, data sent from Rank3 to Rank0, etc. Data across planes is aggregated and sent.

[0120] Step 309: The switching device sends the fifth data to the first device. Correspondingly, the first device receives the fifth data sent by the switching device.

[0121] After acquiring the fifth data, the switching device may determine the recipient (ie, the first device) based on the gradient identifier, and then send the fifth data to the first device.

[0122] Step 310: The first device updates the model based on the fifth data.

[0123] After the first device acquires the fifth data, the model is updated based on the fifth data. Since the fifth data is obtained by aggregating the fourth data, the fifth data includes gradient data and gradient identifiers, so that the first device updates the model based on the gradient data.

[0124] In an embodiment of the present application, during the transmission of sample features corresponding to the model, the first device can reduce the transmission of repeated feature data across planes by sending the deduplicated second data to the switching device, thereby improving the training / inference efficiency of the model. That is, deduplication is achieved by efficient sorting of identifiers. Deduplication of data within a single card reduces the number of requests. The id has the characteristic of order preservation after deduplication. The switching device aggregation is supported to merge and aggregate multiple data. The data within the plane is fully deduplicated and aggregated and then sent to the switching device. The switching device distributes the data in fragments and in aggregate. Distribution depends on the fragmentation of the id->target data plane, and aggregation directly sums the same id. In addition, aggregation on the switching device side reduces network transmission, while reducing the re-aggregation of the full amount of data accepted by the downstream of the original solution.

[0125] The data processing method in the embodiment of the present application is described above, and the device in the embodiment of the present application is described below.

[0126] See also Figure 6 , an embodiment of the first device in the embodiment of the present application includes:

[0127] An acquisition unit 601 is configured to acquire a plurality of first data from the plurality of first acceleration cards, wherein the plurality of first data include sample features and feature identifiers of a model, and the plurality of first data are data transmitted across a data plane;

[0128] A deduplication unit 602, configured to perform deduplication processing on the plurality of first data based on the feature identifier to obtain a plurality of second data;

[0129] The sending unit 603 is used to send the multiple second data to the switching device based on the feature identifier and the mapping relationship, where the mapping relationship is used to represent the association relationship between the feature identifier and the second acceleration card in the multiple second devices.

[0130] Optionally, the feature identifier includes a first bit and a second bit, the first bit is used to deduplicate the multiple first data, and the second bit is used to determine the second acceleration card associated with the second data.

[0131] Optionally, there are no two second data having the same first bit position among the multiple second data.

[0132] Optionally, the first device also includes: a receiving unit 604, used to receive fifth data from the switching device, the fifth data including the gradient and gradient identifier of the loss function corresponding to the model obtained by the second device; an updating unit 605, used to update the model based on the fifth data.

[0133] In this embodiment, the operations performed by each unit in the first device are the same as those described above. Figures 1 to 5 The description in the illustrated embodiment is similar and will not be repeated here.

[0134] In this embodiment, during the transmission of sample features corresponding to the model, the sending unit 603 can reduce the transmission of repeated feature data across planes by sending deduplicated second data to the switching device, thereby improving the training / inference efficiency of the model.

[0135] See also Figure 7 , an embodiment of the switching device in the embodiment of the present application includes:

[0136] A receiving unit 701 is configured to receive a plurality of second data after deduplication from a first device, wherein the plurality of second data includes sample features and feature identifiers of a model, and the plurality of second data is data transmitted across a data plane;

[0137] A processing unit 702 is configured to split the plurality of second data based on the feature identifier to obtain a plurality of third data;

[0138] The sending unit 703 is used to send the plurality of third data to the plurality of second devices respectively based on the feature identifier and the mapping relationship, where the mapping relationship is used to indicate the association relationship between the feature identifier and the second acceleration card in the plurality of second devices.

[0139] Optionally, the characteristic identifier includes a first bit and a second bit, the first bit is used to deduplicate the multiple first data, and the second bit is used to determine the second acceleration card of the second device to which the multiple third data belong.

[0140] Optionally, there are no two second data having the same first bit position among the multiple second data.

[0141] Optionally, the receiving unit 701 is further used to receive multiple fourth data from the multiple second devices, the multiple fourth data including the gradient and gradient identifier of the loss function, the gradient is used to update the parameters of the model, and the gradient identifier is used by the switching device to perform gradient aggregation; the processing unit 702 is further used to aggregate the multiple fourth data based on the gradient identifier to obtain multiple fifth data, and the number of the multiple fifth data is less than the number of the multiple fourth data; the sending unit 703 is further used to send the multiple fifth data to the multiple second devices respectively based on the gradient identifier and the mapping relationship, and the fifth data is used to update the gradient.

[0142] In this embodiment, the operations performed by each unit in the switching device are the same as those described above. Figures 1 to 5 The description in the illustrated embodiment is similar and will not be repeated here.

[0143] In this embodiment, during the transmission of the sample features corresponding to the forwarding model by the sending unit 703, the processing unit 702 receives the deduplicated data, splits the data based on the feature identifier (i.e., distributes the data in pieces), and sends the corresponding data to the receiving device respectively. Since the receiving unit 701 receives the deduplicated data, the bandwidth of the switching device can be saved and the transmission efficiency can be improved.

[0144] See also Figure 8 , an embodiment of the second device in the embodiment of the present application includes:

[0145] The receiving unit 801 is configured to receive third data sent by the switching device, wherein the third data includes sample features and feature identifiers of the model acquired by the first device;

[0146] An acquisition unit 802 is used to acquire fourth data based on the third data, where the fourth data includes a gradient and a gradient identifier of a loss function, where the gradient is used to update a parameter of the model, and the gradient identifier is used by the switching device to perform gradient aggregation;

[0147] The sending unit 803 is configured to send the fourth data to the switching device.

[0148] Optionally, the feature identifier is also used to determine the second accelerator card to which the third data belongs.

[0149] In this embodiment, the operations performed by each unit in the second device are the same as those described above. Figures 1 to 5 The description in the illustrated embodiment is similar and will not be repeated here.

[0150] In this embodiment, during the transmission of sample features corresponding to the model, the acquisition unit 802 can perform gradient calculation by receiving data sent by the switching device, and send the gradient data to the first device through the sending unit 803, so that the first device can implement model training.

[0151] See also Fig. 9 , a schematic diagram of the structure of another first device provided by the present application. The first device may include a processor 901, a memory 902, and a communication port 903. The processor 901, the memory 902, and the communication port 903 are interconnected via a line. The memory 902 stores program instructions and data.

[0152] The memory 902 stores the aforementioned Figures 1 to 5 In the corresponding implementation manner shown, the steps executed by the first device correspond to program instructions and data.

[0153] Processor 901, used to execute the above Figures 1 to 5 The steps shown in any of the embodiments shown are performed by the first device.

[0154] Communication port 903 can be used to receive and send data, and to perform the above Figures 1 to 5 The steps related to obtaining in any of the embodiments shown.

[0155] In one implementation, the first device may include Fig. 9 More or fewer components are merely illustrative in this application and are not limiting.

[0156] See also Fig.10 , a schematic diagram of the structure of another switching device provided by the present application. The switching device may include a processor 1001, a memory 1002 and a communication port 1003. The processor 1001, the memory 1002 and the communication port 1003 are interconnected via a line. The memory 1002 stores program instructions and data.

[0157] The memory 1002 stores the aforementioned Figures 1 to 5 In the corresponding implementation manner shown, the steps executed by the switching device correspond to program instructions and data.

[0158] Processor 1001, configured to execute the aforementioned Figures 1 to 5 The steps performed by the switching device in any of the illustrated embodiments.

[0159] Communication port 1003 can be used to receive and send data, and to perform the above Figures 1 to 5 The steps related to obtaining in any of the embodiments shown.

[0160] In one implementation, the switching device may include a Fig.10 More or fewer components are merely illustrative in this application and are not limiting.

[0161] See also Fig.11 , a schematic diagram of the structure of another second device provided in the present application. The second device may include a processor 1101, a memory 1102, and a communication port 1103. The processor 1101, the memory 1102, and the communication port 1103 are interconnected via a line. The memory 1102 stores program instructions and data.

[0162] The memory 1102 stores the aforementioned Figures 1 to 5 In the corresponding implementation manner shown, the steps executed by the second device correspond to program instructions and data.

[0163] Processor 1101, used to execute the above Figures 1 to 5 The steps shown in any of the embodiments shown are performed by the second device.

[0164] The communication port 1103 can be used to receive and send data, and to perform the aforementioned Figures 1 to 5 The steps related to obtaining in any of the embodiments shown.

[0165] In one implementation, the second device may include Fig.11 More or fewer components are merely illustrative in this application and are not limiting.

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

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

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

[0169] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0170] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of 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: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A data processing method, characterized in that: The method is applied to a first device, the first device includes a plurality of first accelerator cards, and the method includes: Acquire a plurality of first data from the plurality of first acceleration cards, the plurality of first data including sample features and feature identifiers of a model, and the plurality of first data being data transmitted across a data plane; Performing deduplication processing on the plurality of first data based on the feature identifier to obtain a plurality of second data; The plurality of second data are sent to the switching device based on the feature identifier and the mapping relationship, where the mapping relationship is used to represent an association relationship between the feature identifier and a second acceleration card in a plurality of second devices.

2. The method according to claim 1, characterized in that The feature identifier includes a first bit and a second bit, the first bit is used for deduplication of the plurality of first data, and the second bit is used for determining the second acceleration card associated with the second data.

3. The method according to claim 2, characterized in that There are no two second data having the same first bit in the plurality of second data.

4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Receiving fifth data from the switching device, the fifth data including a gradient and a gradient identifier of a loss function corresponding to the model acquired by the second device; The model is updated based on the fifth data.

5. A data processing method, characterized in that: The method is applied to a switching device, and the method comprises: Receiving a plurality of second data after deduplication from the first device, the plurality of second data including sample features and feature identifiers of the model, and the plurality of second data being data transmitted across the data plane; Splitting the plurality of second data based on the feature identifier to obtain a plurality of third data; The plurality of third data are respectively sent to the plurality of second devices based on the feature identifier and the mapping relationship, wherein the mapping relationship is used to represent an association relationship between the feature identifier and the second acceleration card in the plurality of second devices.

6. The method according to claim 5, characterized in that The characteristic identifier includes a first bit and a second bit, the first bit is used for deduplication of a plurality of first data, and the second bit is used for determining the second acceleration card of the second device to which the plurality of third data belongs.

7. The method according to claim 6, characterized in that There are no two second data having the same first bit in the plurality of second data.

8. The method according to any one of claims 5 to 7, characterized in that The method further comprises: receiving a plurality of fourth data from the plurality of second devices, the plurality of fourth data comprising a gradient and a gradient identifier of a loss function, the gradient being used to update a parameter of the model, and the gradient identifier being used by the switching device to perform gradient aggregation; Aggregating the plurality of fourth data based on the gradient identifier to obtain a plurality of fifth data, wherein the number of the plurality of fifth data is less than the number of the plurality of fourth data; The plurality of fifth data are respectively sent to the plurality of second devices based on the gradient identifier and the mapping relationship, and the fifth data are used to update the gradient.

9. A data processing method, characterized in that: The method is applied to a second device, where the second device includes a plurality of second accelerator cards, and the method includes: Receiving third data sent by the switching device, wherein the third data includes sample features and feature identifiers of the model acquired by the first device; Acquire fourth data based on the third data, the fourth data including a gradient and a gradient identifier of a loss function, the gradient being used to update a parameter of the model, and the gradient identifier being used by the switching device to perform gradient aggregation; The fourth data is sent to the switching device.

10. The method according to claim 9, characterized in that The characteristic identifier is also used to determine the second accelerator card to which the third data belongs.

11. A first device, characterized in that: The first device includes a plurality of first acceleration cards, and the first device includes: An acquisition unit, configured to acquire a plurality of first data from the plurality of first acceleration cards, wherein the plurality of first data include sample features and feature identifiers of a model, and the plurality of first data are data transmitted across a data plane; a deduplication unit, configured to perform deduplication processing on the plurality of first data based on the feature identifier to obtain a plurality of second data; The sending unit is used to send the multiple second data to the switching device based on the feature identifier and the mapping relationship, where the mapping relationship is used to represent the association relationship between the feature identifier and the second acceleration card in the multiple second devices.

12. The first device according to claim 11, characterized in that The feature identifier includes a first bit and a second bit, the first bit is used for deduplication of the plurality of first data, and the second bit is used for determining the second acceleration card associated with the second data.

13. The first device according to claim 12, characterized in that There are no two second data having the same first bit in the plurality of second data.

14. The first device according to any one of claims 11 to 13, characterized in that The first device also includes: A receiving unit, configured to receive fifth data from the switching device, wherein the fifth data includes a gradient and a gradient identifier of a loss function corresponding to the model acquired by the second device; An updating unit is used to update the model based on the fifth data.

15. A switching device, characterized in that: The switching device comprises: A receiving unit, configured to receive a plurality of second data after deduplication from the first device, wherein the plurality of second data include sample features and feature identifiers of the model, and the plurality of second data are data transmitted across the data plane; A processing unit, configured to split the plurality of second data based on the feature identifier to obtain a plurality of third data; The sending unit is used to send the plurality of third data to the plurality of second devices respectively based on the feature identifier and the mapping relationship, wherein the mapping relationship is used to represent the association relationship between the feature identifier and the second acceleration card in the plurality of second devices.

16. The switching device according to claim 15, characterized in that: The characteristic identifier includes a first bit and a second bit, the first bit is used for deduplication of a plurality of first data, and the second bit is used for determining the second acceleration card of the second device to which the plurality of third data belongs.

17. The switching device according to claim 16, characterized in that: There are no two second data having the same first bit in the plurality of second data.

18. The switching device according to any one of claims 15 to 17, characterized in that: The receiving unit is further used to receive a plurality of fourth data from the plurality of second devices, the plurality of fourth data including a gradient and a gradient identifier of a loss function, the gradient being used to update a parameter of the model, and the gradient identifier being used by the switching device to perform gradient aggregation; The processing unit is further configured to aggregate the plurality of fourth data based on the gradient identifier to obtain a plurality of fifth data, wherein the number of the plurality of fifth data is less than the number of the plurality of fourth data; The sending unit is further used to send the plurality of fifth data to the plurality of second devices respectively based on the gradient identifier and the mapping relationship, wherein the fifth data is used to update the gradient.

19. A second device, characterized in that: The second device includes a plurality of second acceleration cards, and the second device includes: A receiving unit, configured to receive third data sent by the switching device, wherein the third data includes sample features and feature identifiers of the model acquired by the first device; an acquisition unit, configured to acquire fourth data based on the third data, wherein the fourth data includes a gradient and a gradient identifier of a loss function, wherein the gradient is used to update a parameter of the model, and the gradient identifier is used by the switching device to perform gradient aggregation; A sending unit is used to send the fourth data to the switching device.

20. The second device according to claim 19, characterized in that The characteristic identifier is also used to determine the second accelerator card to which the third data belongs.

21. A first device, characterized in that: include: A processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the first device executes the method according to any one of claims 1 to 4.

22. A switching device, characterized in that: include: A processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the switching device executes the method according to any one of claims 5 to 8.

23. A second device, characterized in that: include: A processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the second device executes the method according to claim 9 or 10.

24. A communication system, characterized in that: The communication system comprises the first device according to claim 21, the switching device according to claim 22, and / or the second device according to claim 23.

25. A computer storage medium, characterized in that The method comprises computer instructions, and when the computer instructions are executed on a terminal device, the terminal device executes the method according to any one of claims 1 to 10.

26. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to perform the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Gradient aggregation method and system based on cold and hot separation

    CN113642736A

  • Computing system, accelerator, switching plane and aggregation communication method

    CN114363248A

  • Large-scale recommendation system training method based on distributed heterogeneous computing

    CN115423092A

  • Data duplication exclusion method and storage array

    JP2018032444A

Cited By

  • Slave core memory access optimization method based on new generation SW many-core processor

    CN120144503A