# US 2025/0094212 A1 · Transparent pre-emption and migration for planet-scale computer

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0094212 A1
- Document ID: US20250094212A1
- Status: Published application
- Kind: A1
- Application number: 18/961,400
- Filed: 2024-11-26
- Published: 2025-03-20
- Earliest claimed: 2021-03-25
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Muthian SIVATHANU; Srinidhi VISWANATHA; Dharma Kiritkumar SHUKLA; Nipun KWATRA; Ramachandran RAMJEE; Rimma Vladimirovna NEHME; Pankaj SHARMA; Bhalakumaaran Erode RANGANATHAN; Vaibhav SHARMA
- Web page: https://patentgrep.com/patent/US20250094212A1

## CPC

- G06F 9/4856: {resumption being on a different machine, e.g. task migration, virtual machine migration (G06F9/5088 takes precedence)}
- G06F 9/461: {Saving or restoring of program or task context}
- G06F 9/5088: {involving task migration}
- G06F 9/54: Interprogram communication
- G06F 11/1471: involving logging of persistent data for recovery
- G06N 3/08: Learning methods
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 1/60: Memory management
- H04L 67/568: Storing data temporarily at an intermediate stage, e.g. caching
- G06F 11/203: {using migration}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The disclosure herein describes platform-level checkpointing for deep learning (DL) jobs. The checkpointing is performed through capturing two kinds of state data: (i) GPU state (device state), and (ii) CPU state (host state). The GPU state includes GPU data (e.g., model parameters, optimizer state, etc.) that is located in the GPU and GPU context (e.g., the default stream in GPU, various handles created by the libraries such as DNN, Blas, etc.). Only a fraction of the GPU memory is copied because the checkpointing is done in a domain-aware manner. The “active” memory contains useful data like model parameters. To be able to capture the useful data, memory management is controlled to identify which parts of the memory are active. Also, to restore the destination GPU to the same context/state, a mechanism is used to capture such state-changing events on an original GPU and replayed on a destination GPU.

## Claims

### Claim 1

A system comprising a processor and a storage medium embodying instructions that, upon execution of the instructions by the processor, cause the processor to:
capture, at a first node in a cloud computing environment, a log of calls, the calls being state-changing graphics processing unit (GPU) calls to a GPU executing a deep learning training (DLT) job, the capturing of the log comprising intercepting and recording the calls;
replay the calls in the log at a second node, the second node being different from the first node; and
resume processing of the DLT job on the second node.

### Claim 2 (depends on 1)

The system of claim 1, wherein the instructions further cause the processor to implement a proxy client at the first node, the proxy client being configured to receive the calls and to isolate GPU-related activities in a separate proxy process that has a different address space than host address space of the first node, wherein the proxy process is stateless across checkpoints, isolating temporary GPU-related mappings to the address space of the proxy process.

### Claim 3 (depends on 2)

The system of claim 2, wherein the proxy process executes on a proxy node that is different from the first and second nodes, the proxy node having a first GPU that executes the calls intercepted at the first node and ships back return values to the proxy client through shared memory.

### Claim 4 (depends on 1)

The system of claim 1, wherein the instructions further cause the processor to detect ones of the calls that are idempotent, the recording of the calls comprise only recording calls that are not idempotent.

### Claim 5 (depends on 1)

The system of claim 1, wherein the instructions further cause the processor to determine, from log of calls, that a handle that was earlier created is later destroyed, and in response to the determining that the handle was destroyed, creation, configuration change, and set association calls linked to the handle are removed from the log, thereby compressing the log.

### Claim 6 (depends on 1)

The system of claim 1, wherein the instructions further cause the processor to identify a time to perform a checkpointing of a state of the DLT job, wherein the log is captured at the time of the checkpointing for transmission to and replay at the second node, the time of the checkpointing being selected substantially at an epoch boundary of the DLT job.

### Claim 7 (depends on 1)

The system of claim 1, wherein the instructions further cause the processor to identify a time to perform a checkpointing of a state of the DLT job, wherein the log is captured at the time of the checkpointing for transmission to and replay at the second node, the time of the checkpointing being determined by a global scheduler.

### Claim 8

A method for storing a checkpointed state of a job at a first node in a cloud computing environment and resuming the job on a second node from the checkpointed state, the second node being different from the first node, the method comprising:
capturing, at the first node, a log of calls, the calls being state-changing graphics processing unit (GPU) calls to a GPU executing the job, the capturing of the log comprising intercepting and recording the calls;
replaying the calls in the log at the second node; and
resuming processing of the job on the second node from the checkpointed state.

### Claim 9 (depends on 8)

The method of claim 8, wherein method further comprises implementing a proxy client at the first node, the proxy client being configured to receive the calls and to isolate GPU-related activities in a separate proxy process that has a different address space than a host address space of the first node, wherein the proxy process is stateless across checkpoints, isolating temporary GPU-related mappings to the address space of the proxy process.

### Claim 10 (depends on 9)

The method of claim 9, wherein the proxy process executes on a proxy node that is different from the first and second nodes, the proxy node having a first GPU that executes the calls intercepted at the first node and ships back return values to the proxy client through shared memory.

### Claim 11 (depends on 8)

The method of claim 8, further comprising detecting ones of the calls that are idempotent, the recording of the calls comprise only recording calls that are not idempotent.

### Claim 12 (depends on 8)

The method of claim 8, further comprising determining, from the log of calls, that a handle that was earlier created is later destroyed, and in response to the determining that the handle was destroyed, removing, from the log, creation, configuration change, and set association calls linked to the handle, thereby compressing the log.

### Claim 13 (depends on 8)

The method of claim 8, wherein the job is a deep learning training (DLT) job, the method further comprising identifying a time to perform a checkpointing of the state of the job, wherein the log is captured at the time of the checkpointing for transmission to and replay at the second node, the time of the checkpointing being selected substantially at an epoch boundary of the DLT job.

### Claim 14 (depends on 8)

The method of claim 8, further comprising identifying a time to perform a checkpointing of the state of the job, wherein the log is captured at the time of the checkpointing for transmission to and replay at the second node, the time of the checkpointing being determined by a global scheduler.

### Claim 15

A computer-readable storage medium embodying instructions for execution by a processor, the instructions causing the processor to:
capture, at a first node, a log of calls, the calls being state-changing graphics processing unit (GPU) calls to a GPU executing a job, the capturing of the log comprising intercepting and recording the calls;
replaying the calls in the log at a second node that is different from the first node; and
resuming processing of the job on the second node.

### Claim 16 (depends on 15)

The computer-readable storage medium of claim 15, wherein instruction further causes the processor to implement a proxy client at the first node, the proxy client being configured to receive the calls and to isolate GPU-related activities in a separate proxy process that has a different address space than a host address space of the first node, wherein the proxy process is stateless across checkpoints and isolates temporary GPU-related mappings to the address space of the proxy process.

### Claim 17 (depends on 16)

The computer-readable storage medium of claim 16, wherein the proxy process executes on a proxy node that is different from the first and second nodes, the proxy node having a first GPU that executes the calls intercepted at the first node and ships back return values to the proxy client through shared memory.

### Claim 18 (depends on 15)

The computer-readable storage medium of claim 15, wherein the instructions further cause the processor to detect ones of the calls that are idempotent, and the recording of the calls is limited to only recording calls that are not idempotent.

### Claim 19 (depends on 15)

The computer-readable storage medium of claim 15, wherein the instructions further cause the processor to determine, from the log of calls, that a handle that was earlier created is later destroyed, and in response to the determining that the handle was destroyed, removing, from the log, creation, configuration change, and set association calls linked to the handle, thereby compressing the log.

### Claim 20 (depends on 15)

The computer-readable storage medium of claim 15, wherein the instructions further cause the processor to identify a time to perform a checkpointing of a state of the job, wherein the log is captured at the time of the checkpointing for transmission to and replay at the second node, the time of the checkpointing being selected substantially at an epoch boundary of the job.
