Deep neural network checkpoint optimization system and method based on nonvolatile memory

By using non-volatile memory and RDMA protocols in deep neural networks, zero-copy, asynchronous end-to-end data persistence is achieved, which solves the problems of low data persistence performance and insufficient fault tolerance in the existing technology, and significantly improves Checkpointing performance of neural networks.

WO2024174258A1PCT designated stage expired Publication Date: 2024-08-29SHANGHAI TECH UNIV

Patent Information

Application Number
PCT/CN2023/078255
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-22
Filing Date
2023-02-24
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

The checkpointing of existing neural networks involves multiple software and hardware layers, resulting in low data persistence performance and a lack of fine-grained checkpoint mechanisms and fast recovery mechanisms. Especially in distributed multi-user environments, hardware failures occur frequently and there is a lack of high-performance data persistence. system.

Method used

A deep neural network checkpoint optimization system based on non-volatile memory is used to initialize the neural network model on the GPU memory through the client module, establish a non-volatile memory index structure, and use the RDMA protocol to achieve end-to-end zero-copy and asynchronous data persistence. , ensuring fine-grained checkpointing and data recovery during training.

Benefits of technology

It achieves efficient fine-grained checkpointing and data recovery without affecting training speed, improves data persistence performance, ensures fault tolerance and data persistence, and improves performance by 9.2 times for writing and 7.0 times for recovery. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023078255_29082024_PF_FP_ABST
    Figure CN2023078255_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present invention are a deep neural network checkpoint optimization system and method based on a nonvolatile memory. A corresponding network structure is registered in a nonvolatile memory by means of a client module and a serving end module before deep neural network training is started, and a data index and a data communication protocol based on remote direct memory access (RDMA) are created; and during a neural network training process, zero-copy asynchronous end-to-end neural network data persistence is provided in the present invention, such that a user can do fine-grained checkpointing without affecting a training speed, thus ensuring fault tolerance and data persistence.
Need to check novelty before this filing date? Find Prior Art

Description

Deep neural network checkpoint optimization system and method based on non-volatile memory Technical Field

[0001] The present invention relates to the fields of storage systems and deep learning systems in the field of computer science, and in particular to a deep neural network checkpoint optimization system and method based on non-volatile memory. Background Art

[0002] As the complexity of neural network model structures and training cluster systems increases, the persistence of training models and data fault tolerance have become important issues in large-scale training systems.

[0003] Existing neural network checkpointing involves multiple hardware and software layers, including GPUs, networks, and storage. The complex software layers prevent the full utilization of high-performance hardware, severely impacting read and write performance during data persistence. Furthermore, the insufficient performance of existing solutions means that neural network training lacks a fine-grained checkpoint mechanism, resulting in low fault tolerance and a lack of fast data recovery mechanisms. Furthermore, in the distributed, multi-user modern neural network training process, users require high-performance data persistence mechanisms due to frequent hardware and system failures, but such systems are currently lacking.

[0004] Summary of the Invention

[0005] In view of the shortcomings of the prior art described above, the object of the present invention is to provide a deep neural network checkpoint optimization system and method based on non-volatile memory to solve the above-mentioned prior art problems.

[0006] To achieve the above-mentioned and other related purposes, the present invention provides a deep neural network checkpoint optimization system based on non-volatile memory, the system comprising: a client module located in a computing node equipped with GPU video memory and a server module located in a storage node equipped with non-volatile memory; wherein, before the start of each neural network model training, the client module initializes the corresponding neural network model stored in the GPU video memory to obtain a network structure, and sends it to the client module to construct an index structure of the neural network model on the non-volatile memory, so as to establish end-to-end communication between the GPU video memory and the non-volatile memory; when the server module receives a checkpoint request from the client module during the training process of the corresponding neural network model, the server module directly reads the corresponding model data from the GPU video memory to the non-volatile memory based on the index structure of the neural network model.

[0007] In one embodiment of the present invention, the client module initializes the corresponding neural network model stored in the GPU video memory to obtain the network structure in the following manner: collecting the GPU memory pointer pointing to each layer of the model in the corresponding neural network model through the neural network framework; using the NVIDIA Peer Memory kernel module to register the GPU address space of each layer of the model as an RDMA memory area based on the GPU memory pointer of each layer of the model, and assigning a unique identifier to each memory area; aggregating each identifier and the metadata of each layer of the model into a model structure package in a one-to-one correspondence.

[0008] In one embodiment of the present invention, the client module constructs the index structure of the neural network model on the non-volatile memory in the following manner: after receiving the model structure package, a thread is selected from the thread pool to construct an index structure corresponding to the neural network model in the non-volatile memory based on the model structure package, so as to map each layer of the neural network model to the checkpoint structure one by one.

[0009] In one embodiment of the present invention, the index structure is a three-level index structure, including: a model table at a first level, model metadata at a second level, and model data information at a third level.

[0010] In one embodiment of the present invention, when the server module receives a checkpoint request from the client module during the training process of the corresponding neural network model, the method of directly reading the corresponding model data from the GPU video memory to the non-volatile memory based on the index structure of the neural network model includes: when the client module receives a user checkpoint request during the training process of the corresponding neural network model, obtaining the corresponding GPU memory pointer and sending the generated checkpoint request to the server module; the server module controls the corresponding thread based on the checkpoint request from the client module to directly read the corresponding model data from the GPU video memory to the non-volatile memory through an RDMA read operation based on the corresponding constructed index structure.

[0011] In one embodiment of the present invention, when the server module receives a data recovery request from the client module, the corresponding model data is actively written from the non-volatile memory to the GPU video memory based on the index structure of the neural network model.

[0012] In one embodiment of the present invention, the client module communicates with the server module via the IPoIB protocol or the TCP protocol.

[0013] In one embodiment of the present invention, the neural network framework is the PyTorch software library.

[0014] To achieve the above-mentioned and other related purposes, the present invention provides a deep neural network checkpoint optimization method based on non-volatile memory, which is used for a deep neural network checkpoint optimization system based on non-volatile memory, comprising: a client module located in a computing node equipped with GPU video memory and a server module located in a storage node equipped with non-volatile memory. The method comprises: before the start of each neural network model training, the client module initializes the corresponding neural network model stored in the GPU video memory to obtain a network structure, and sends it to the client module to construct an index structure of the neural network model on the non-volatile memory to establish end-to-end communication between the GPU video memory and the non-volatile memory; when the server module receives a checkpoint request from the client module during the training process of the corresponding neural network model, the server module directly reads the corresponding model data from the GPU video memory to the non-volatile memory based on the index structure of the neural network model.

[0015] In one embodiment of the present invention, the method further includes: when the server module receives a data recovery request from the client module, actively writing the corresponding model data from the non-volatile memory to the GPU video memory based on the index structure of the neural network model.

[0016] As described above, the present invention is a deep neural network checkpoint optimization system and method based on non-volatile memory, which has the following beneficial effects: the present invention registers the corresponding network structure in non-volatile memory through a client module and a server module before the start of deep neural network training, and creates a data index and a data communication protocol based on remote direct memory access (RDMA); and during the neural network training process, the present invention provides zero-copy, asynchronous, end-to-end neural network data persistence, allowing users to perform fine-grained checkpointing to ensure fault tolerance and data persistence without affecting the training speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] FIG1 is a schematic diagram showing the structure of a deep neural network checkpoint optimization system based on non-volatile memory according to an embodiment of the present invention.

[0018] FIG2 is a schematic diagram showing the structure of a deep neural network checkpoint optimization system based on non-volatile memory according to an embodiment of the present invention.

[0019] FIG3 is a schematic diagram showing the structure of a deep neural network checkpoint optimization system based on non-volatile memory according to an embodiment of the present invention.

[0020] FIG4 is a flow chart showing a non-volatile memory-based deep neural network checkpoint optimization method according to an embodiment of the present invention.

[0021] FIG. 5 is a schematic diagram showing a data reading and writing process according to an embodiment of the present invention. DETAILED DESCRIPTION

[0022] The following describes the embodiments of the present invention through specific examples. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other unless they conflict.

[0023] It should be noted that in the following description, reference is made to the accompanying drawings, which describe several embodiments of the present invention. It should be understood that other embodiments may be used and that mechanical, structural, electrical and operational changes may be made without departing from the spirit and scope of the present invention. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present invention is limited only by the claims of the published patents. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between one element or feature shown in the figure and another element or feature.

[0024] Throughout this specification, when a part is said to be "connected" to another part, this includes not only "direct connection" but also "indirect connection" with other elements interposed therebetween. Furthermore, when a part is said to "include" a certain component, unless otherwise stated, this does not exclude the other component but rather implies that the other component may be included.

[0025] The terms "first," "second," and "third" are used to describe various parts, components, regions, layers, and / or segments, but are not intended to be limiting. These terms are used solely to distinguish one part, component, region, layer, or segment from another. Therefore, a reference to a first part, component, region, layer, or segment below may also refer to a second part, component, region, layer, or segment without departing from the scope of the present invention.

[0026] Furthermore, as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence, or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, "A, B, or C" or "A, B, and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B, and C". Exceptions to this definition occur only when the combination of elements, functions, or operations is inherently mutually exclusive in some way.

[0027] The present invention provides a non-volatile memory-based deep neural network checkpoint optimization system. Before deep neural network training begins, the corresponding network structure is registered in non-volatile memory through client and server modules, and a data index and a data communication protocol based on remote direct memory access (RDMA) are created. Furthermore, during neural network training, the present invention provides zero-copy, asynchronous, end-to-end neural network data persistence, allowing users to perform fine-grained checkpointing to ensure fault tolerance and data persistence without affecting training speed.

[0028] The following is a detailed description of the embodiments of the present invention with reference to the accompanying drawings so that those skilled in the art can easily implement the present invention. The present invention can be embodied in many different forms and is not limited to the embodiments described herein.

[0029] FIG1 is a schematic diagram showing the structure of a deep neural network checkpoint optimization system based on non-volatile memory in an embodiment of the present invention.

[0030] The system comprises:

[0031] The client module 101 is located in a computing node equipped with a GPU memory 2. As an extension of the neural network framework, it is called by the user's neural network training program and is connected to the GPU memory 2; wherein the GPU memory 2 stores the corresponding neural network model data;

[0032] The server module 102 is located in the storage node equipped with non-volatile memory 3. It runs as an independent application on the storage node equipped with non-volatile memory and provides data indexing, communication and non-volatile memory management services;

[0033] The client module 101 is in communication with the server module 102;

[0034] Before each neural network model training begins, the client module 101 sends the network structure obtained by initializing the corresponding neural network model stored in the GPU display memory 2 to the client module 102, and constructs an index structure of the neural network model on the non-volatile memory to establish end-to-end communication between the GPU display memory 2 and the non-volatile memory 3;

[0035] When the server module 101 receives a checkpoint request related to the neural network model from the client module 102 during the training process of the corresponding neural network model, the corresponding model data (checkpoint file) is directly read from the GPU video memory 2 to the non-volatile memory 3 based on the index structure of the neural network model.

[0036] Therefore, during the checkpoint writing process, the present invention uses a data transmission flow that is opposite to the traditional data flow to reduce the user-kernel switching overhead. The checkpoint file is not written by the client module 101. Instead, the server module 102 actively reads the checkpoint file from the GPU memory 2 to the non-volatile memory 3.

[0037] In another embodiment, when data is recovered, the server module 102 also actively writes the data into the client GPU memory 2 in an end-to-end manner; that is, when the server module 102 receives a data recovery request from the client module 101, it actively writes the corresponding model data from the non-volatile memory 3 into the GPU video memory 2 based on the index structure of the neural network model.

[0038] Combined with the aforementioned checkpoint writing and data recovery methods, this data flow separates client-side training from server-side data persistence, implementing a client-unaware asynchronous checkpointing mechanism.

[0039] In one embodiment, the client module 101 communicates with the server module 102 via the TCP protocol.

[0040] In one embodiment, the neural network framework is the PyTorch software library; the client module 101 is located in the PyTorch software library.

[0041] In one embodiment, the neural network framework is connected to the GPU memory via a PCIe bus.

[0042] In one embodiment, the client module 101 initializes the corresponding neural network model stored in the GPU display memory 2 to obtain the network structure in the following manner:

[0043] Collect GPU memory pointers pointing to each layer of the neural network model through the neural network framework;

[0044] Use the NVIDIA Peer Memory kernel module to register the GPU address space of each layer of the model as an RDMA memory region based on the GPU memory pointer of each layer of the model, and assign a unique identifier to each memory region;

[0045] Each identifier and the metadata of each layer of the model are aggregated into a model structure package in a one-to-one correspondence to characterize the structure of this neural network model; after initialization, the client module 101 sends the structure package to the server module 102.

[0046] In one embodiment, as shown in FIG2 , the client module 102 constructs an index structure of the neural network model on the non-volatile memory 3 in the following manner: upon receiving the model structure package from the client module 101, an available thread 401 is selected from the thread pool 4 and the package is dispatched to the thread, and the thread constructs an index structure corresponding to the neural network model in the non-volatile memory 3 based on the model structure package, so as to map each layer of the neural network model to the checkpoint structure one by one.

[0047] In one embodiment, the index structure is a three-level index structure, including: a model table at a first level, model metadata at a second level, and model data information at a third level.

[0048] Specifically, based on the information in the structure package, the thread maintains a three-level index structure in non-volatile memory: model table, model metadata, and model data. This three-level index structure is constructed by first registering the model name in the model table and creating a new model metadata block in non-volatile memory to record the model structure, enabling the mapping of neural network layers to the checkpoint structure. The thread then allocates a non-volatile memory area for each neural network layer. Finally, the server module establishes end-to-end communication between the GPU memory and the non-volatile memory.

[0049] In one embodiment, when the server module 102 receives a checkpoint request from the client module during the training of the corresponding neural network model, the method of directly reading the corresponding model data from the GPU memory 2 to the non-volatile memory 3 based on the index structure of the neural network model includes:

[0050] When the client module 101 receives a user checkpoint request during the training of the corresponding neural network model, it obtains the corresponding GPU memory pointer and sends the generated checkpoint request to the server module 102;

[0051] Based on the checkpoint request from the client module, the server module 102 controls the thread corresponding to the model to obtain the RDMA memory area of ​​the model data in the CPU video memory based on the corresponding constructed index structure and read the model data into the storage area of ​​the non-volatile memory, and then directly reads the corresponding model data from the GPU video memory 2 to the non-volatile memory 3 through the RDMA read operation.

[0052] In order to better illustrate the above-mentioned deep neural network checkpoint optimization system based on non-volatile memory, the present invention provides the following specific embodiments.

[0053] Example 1: A deep neural network checkpoint optimization system based on non-volatile memory. Figure 3 is a schematic diagram of the structure of a deep neural network checkpoint optimization system based on non-volatile memory in this embodiment.

[0054] The system comprises:

[0055] A computing node comprising: a CPU memory connected via a PCIe bus and a main memory containing a PyTorch software library; the client module described in this application is located in the PyTorch software library of the computing node;

[0056] A storage node, comprising: locally connected persistent memory and a storage device containing the server module;

[0057] At the beginning of a new neural network model training task, the client module first uses PyTorch to collect GPU memory pointers to each layer in the neural network model. The client module then uses the NVIDIA Peer Memory kernel module to register the GPU address space of each layer as an RDMA memory region and assigns a unique identifier to each memory region. After registration, the client module aggregates these identifiers with metadata for each layer (including size, data type, etc.) into a model structure packet to describe the neural network model structure. Finally, the client module sends this structure packet to the server module via a TCP connection. Upon receiving the structure packet, the server module selects an available thread from the thread pool through a dispatcher and dispatches the packet to it. Based on the information in the structure packet, this thread maintains a three-level index structure in non-volatile memory: model table, model metadata, and model data. This thread first registers the model name in the model table and creates a new model metadata block in non-volatile memory to record the model structure, enabling the one-to-one mapping of neural network layers to the checkpoint structure. The thread then allocates non-volatile memory for each neural network layer. Finally, the server module establishes end-to-end communication between the client GPU memory and the server non-volatile memory.

[0058] The client module described in this application can intercept the user's checkpoint request, obtain the model data pointer in the GPU memory, and interact with the server module described in this application via TCP and RDMA links. The server module described in this application is located in the storage node. The server module processes the client module's request, manages and indexes the data in the persistent memory, and writes the model data to the persistent memory via RDMA.

[0059] In this embodiment, the client is a plug-in or additional module of the PyTorch deep learning library, and the server is implemented as a separate executable file. The combination of the client and the server can achieve the goal of improving Checkpoint performance without affecting the user's computing process.

[0060] Similar to the principles of the above embodiments, the present invention provides a deep neural network checkpoint optimization method based on non-volatile memory.

[0061] The following provides specific embodiments in conjunction with the accompanying drawings:

[0062] FIG4 is a flow chart showing a deep neural network checkpoint optimization method based on non-volatile memory according to an embodiment of the present invention.

[0063] A non-volatile memory-based deep neural network checkpoint optimization system is applied, comprising: a client module located in a computing node equipped with GPU video memory and a server module located in a storage node equipped with non-volatile memory; the system can implement the functions of the non-volatile memory-based deep neural network checkpoint optimization system in the above embodiment;

[0064] The method comprises:

[0065] Step S1: Before the start of each neural network model training, the client module will initialize the corresponding neural network model stored in the GPU video memory to obtain the network structure and send it to the client module to construct an index structure of the neural network model on the non-volatile memory to establish end-to-end communication between the GPU video memory and the non-volatile memory.

[0066] In one embodiment, the client module initializes the corresponding neural network model stored in the GPU video memory to obtain the network structure in a manner including: collecting GPU memory pointers pointing to each layer of the model in the corresponding neural network model through a neural network framework; using the NVIDIA Peer Memory kernel module to register the GPU address space of each layer of the model as an RDMA memory area based on the GPU memory pointer of each layer of the model, and assigning a unique identifier to each memory area; aggregating each identifier and the metadata of each layer of the model into a model structure package in a one-to-one correspondence.

[0067] In one embodiment, the client module constructs the index structure of the neural network model on the non-volatile memory in the following manner: after receiving the model structure package, a thread is selected from the thread pool to construct an index structure corresponding to the neural network model in the non-volatile memory based on the model structure package, so as to map each layer of the neural network model to the checkpoint structure one by one.

[0068] In one embodiment, the index structure is a three-level index structure, including: a model table at a first level, model metadata at a second level, and model data information at a third level.

[0069] In one embodiment, the client module communicates with the server module via IPoIB protocol or TCP protocol.

[0070] In one embodiment, the neural network framework is the PyTorch software library.

[0071] Step S2: When the server module receives a checkpoint request from the client module during the training of the corresponding neural network model, the corresponding model data is directly read from the GPU video memory to the non-volatile memory based on the index structure of the neural network model.

[0072] In one embodiment, step S2 includes: when the client module receives a user checkpoint request during the corresponding neural network model training process, obtaining the corresponding GPU memory pointer and sending the generated checkpoint request to the server module; the server module controls the corresponding thread based on the checkpoint request from the client module to directly read the corresponding model data from the GPU video memory to the non-volatile memory through the RDMA read operation based on the corresponding constructed index structure.

[0073] In one embodiment, the method further includes: when the server module receives a data recovery request from the client module, actively writing the corresponding model data from the non-volatile memory to the GPU video memory based on the index structure of the neural network model.

[0074] Since the implementation principle of the deep neural network checkpoint optimization method based on non-volatile memory has been described in the previous embodiment, it will not be repeated here.

[0075] In order to better illustrate the above-mentioned deep neural network checkpoint optimization method based on non-volatile memory, the present invention provides the following specific embodiments.

[0076] Example 1: A method for writing a checkpoint in a deep neural network based on non-volatile memory. Figure 5 is a schematic diagram of the data reading and writing process of this embodiment.

[0077] The method comprises:

[0078] During the data checkpoint operation:

[0079] 1. When the client initializes the model, it sends the model structure to the server.

[0080] 2. The server constructs an index structure in non-volatile memory using the received model structure, and sends a confirmation message to the client after the construction is successful.

[0081] 3. After the client receives the confirmation information, the model initialization is completed and the calculation process begins.

[0082] 4. When the calculation starts, the client sends a Checkpoint request to the server. The server copies the required model data in the client's GPU memory to the server's non-volatile memory according to the index structure through RDMA read operations.

[0083] 5. The client has completed the RDMA operation before updating the weight, so the client can perform data calculation without interruption.

[0084] It should be noted that during the model training process, a checkpoint must be written after each round of forward propagation, backpropagation, and weight update operations.

[0085] This embodiment, through the aforementioned modules, provides a purely user-mode, fast checkpoint data path and management method based on non-volatile memory. Significant performance improvements have been demonstrated in both benchmark tests and actual application scenarios. For neural network models used in practical application tasks such as computer vision and natural language processing, this embodiment improves data persistence performance by up to 9.2 times and data recovery performance by 7.0 times compared to existing checkpointing mechanisms. Furthermore, this embodiment implements a zero-copy, end-to-end data transmission mechanism with zero client wait times.

[0086] In summary, the present invention's non-volatile memory-based deep neural network checkpoint optimization system and method, through client and server modules, registers the corresponding network structure in non-volatile memory before deep neural network training begins, creates data indexes, and establishes a data communication protocol based on remote direct memory access (RDMA). Furthermore, during neural network training, the present invention provides zero-copy, asynchronous, end-to-end neural network data persistence, allowing users to perform fine-grained checkpointing to ensure fault tolerance and data persistence without affecting training speed. Therefore, the present invention effectively overcomes the various shortcomings of the existing technology and has high industrial application value.

[0087] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the present invention. Anyone skilled in the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, any equivalent modifications or alterations made by one of ordinary skill in the art without departing from the spirit and technical principles disclosed herein are intended to be covered by the claims of the present invention.

Claims

1. A deep neural network checkpoint optimization system based on non-volatile memory, characterized in that: The system comprises: A client module located in a computing node equipped with GPU memory and a server module located in a storage node equipped with non-volatile memory; Before each neural network model training starts, the client module initializes the corresponding neural network model stored in the GPU video memory to obtain a network structure, and sends it to the client module to construct an index structure of the neural network model on the non-volatile memory, so as to establish end-to-end communication between the GPU video memory and the non-volatile memory; When the server module receives a checkpoint request from the client module during the training of the corresponding neural network model, the corresponding model data is directly read from the GPU video memory to the non-volatile memory based on the index structure of the neural network model.

2. The non-volatile memory-based deep neural network checkpoint optimization system according to claim 1, characterized in that: The client module initializes the corresponding neural network model stored in the GPU memory to obtain the network structure in the following manner: Collect GPU memory pointers pointing to each layer of the model in the corresponding neural network model through the neural network framework; Use the NVIDIA Peer Memory kernel module to register the GPU address space of each layer of the model as an RDMA memory region based on the GPU memory pointer of each layer of the model, and assign a unique identifier to each memory region; Aggregate each identifier and the metadata of each layer of the model into a model structure package in a one-to-one correspondence.

3. The non-volatile memory-based deep neural network checkpoint optimization system according to claim 2, characterized in that: The client module constructs the index structure of the neural network model on the non-volatile memory in the following manner: After receiving the model structure package, a thread is selected from the thread pool to construct an index structure corresponding to the neural network model in the non-volatile memory based on the model structure package, so as to map each layer of the neural network model to the checkpoint structure one by one.

4. The non-volatile memory-based deep neural network checkpoint optimization system according to claim 3, characterized in that: The index structure is a three-level index structure, including: a model table at the first level, model metadata at the second level, and model data information at the third level.

5. The non-volatile memory-based deep neural network checkpoint optimization system according to claim 4, characterized in that: When the server module receives a checkpoint request from the client module during the training of the corresponding neural network model, the method of directly reading the corresponding model data from the GPU video memory to the non-volatile memory based on the index structure of the neural network model includes: When the client module receives a user checkpoint request during the training of the corresponding neural network model, Get the corresponding GPU memory pointer and send the generated checkpoint request to the server module; Based on the checkpoint request from the client module, the server module controls the corresponding thread to directly read the corresponding model data from the GPU video memory to the non-volatile memory through the RDMA read operation based on the corresponding constructed index structure.

6. The non-volatile memory-based deep neural network checkpoint optimization system according to claim 1, characterized in that: When the server module receives a data recovery request from the client module, the corresponding model data is actively written from the non-volatile memory to the GPU video memory based on the index structure of the neural network model.

7. The non-volatile memory-based deep neural network checkpoint optimization system according to claim 1, characterized in that: The client module communicates with the server module via the TCP protocol.

8. The non-volatile memory-based deep neural network checkpoint optimization system according to claim 2, characterized in that: The neural network framework is the PyTorch software library.

9. A deep neural network checkpoint optimization method based on non-volatile memory, characterized in that: A deep neural network checkpoint optimization system based on non-volatile memory is applied, comprising: a client module located in a computing node equipped with a GPU video memory and a server module located in a storage node equipped with a non-volatile memory, and the method comprises: Before each neural network model training starts, the client module initializes the corresponding neural network model stored in the GPU video memory to obtain a network structure, and sends it to the client module to construct an index structure of the neural network model on the non-volatile memory, so as to establish end-to-end communication between the GPU video memory and the non-volatile memory; When the server module receives a checkpoint request from the client module during the training of the corresponding neural network model, the corresponding model data is directly read from the GPU video memory to the non-volatile memory based on the index structure of the neural network model.

10. The deep neural network checkpoint optimization method based on non-volatile memory according to claim 9, characterized in that: The method further comprises: When the server module receives a data recovery request from the client module, it actively writes the corresponding model data from the non-volatile memory into the GPU video memory based on the index structure of the neural network model.

Citation Information

Patent Citations

  • Network access programming framework deployment method and system oriented to RDMA and nonvolatile memory

    CN111078607A

  • Parallel training method and device of neural network model and electronic equipment

    CN114282665A

  • Recommendation system network efficient training method and system based on nonvolatile memory

    CN115310605A

  • GPU (Graphics Processing Unit)-based time sequence diagram neural network training method and system and electronic equipment

    CN115345285A

  • Neural architecture search system for generating a neural network architecture

    US20210383240A1

Cited By

  • Video memory optimization method and device, computer equipment, storage medium and computer program product

    CN120409707A

  • RDMA message aggregation processing method and network card device

    CN120434317A