Transparent AI Workload Migration via GPU State Checkpointing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods for migrating deep learning training (DLT) jobs between nodes in cloud environments are inefficient and unreliable, as they require custom code and are not transparent to data scientists, leading to significant challenges in managing AI workloads.

Innovation Solution

The implementation of a system that transparently and preemptively migrates DLT jobs by checkpointing the GPU and CPU states, storing them in shared memory, and resuming the job on a different node, making every DLT job inherently preemptable and migratable without additional developer effort.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If traditional cluster schedulers (Kubernetes, YARN) are used for DLT jobs, then resource management capability is improved, but technical efficiency and reliability of DLT job execution deteriorate

Engineering Contradiction:
Improveresource management capabilityVSAvoidDLT job execution reliability
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The system segments the scheduling function into two distinct components: a traditional cluster scheduler for general resource management and a specialized DLT job scheduler for deep learning training job optimization. This segmentation allows each scheduler to be optimized for its specific purpose, resolving the contradiction between general resource management capability and DLT-specific execution reliability.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

A DLT job scheduler acts as an intermediary layer between the traditional cluster scheduler and DLT job execution. This intermediary captures GPU states, manages checkpoints, and coordinates migrations, thereby preserving DLT job reliability while still utilizing the traditional scheduler's resource management capabilities.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Speed

If DLT jobs are migrated between nodes without checkpointing, then migration speed is improved, but loss of processing time increases

Engineering Contradiction:
Improvemigration speedVSAvoidprocessing time loss
Core Design Contradiction:
SpeedVSLoss of time

Solution Approach 1:

The system performs preliminary checkpointing of GPU states during normal DLT job execution before migration is needed. By capturing and storing the computational state in advance, the system enables rapid migration without losing processing time, as the checkpointed state can be quickly restored on the destination node.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The checkpointing mechanism ensures continuity of useful action by preserving the computational state of DLT jobs. When migration occurs, the job can be resumed from the checkpointed state rather than restarting, maintaining continuous productive computation across node transitions.

Inventive Principle:
Principle #20Continuity of useful action

3Adaptability or versatility

If custom migration code is implemented by data scientists, then migration functionality is achieved, but ease of operation and accessibility deteriorate

Engineering Contradiction:
Improvemigration functionalityVSAvoiddeveloper effort requirement
Core Design Contradiction:
Adaptability or versatilityVSEase of operation

Solution Approach 1:

The DLT job scheduler provides self-service migration capabilities that automatically capture GPU states, manage checkpoints, and coordinate node migrations without requiring data scientists to write custom migration code. This makes the migration functionality transparent and accessible to all users while maintaining adaptability for different DLT job types.

Inventive Principle:
Principle #25Self-service

4Device complexity

If GPU states are not captured during migration, then migration simplicity is improved, but reliability and continuity of DLT jobs deteriorate

Engineering Contradiction:
Improvemigration process complexityVSAvoidDLT job continuity
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

The system extracts and captures the essential GPU state information (model parameters, optimizer state, computational context) during migration. By separating the critical state data from the migration process and storing it in checkpoints, the system maintains DLT job reliability and continuity while keeping the migration process itself relatively simple through automated state capture and restoration.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS20250055923A1Artificial intelligence workload migration for planet-scale artificial intelligence infrastructure service
Publication Date: 2025.02.13 MICROSOFT TECHNOLOGY LICENSING LLC
  • US20250055923A1 patent drawing
  • US20250055923A1 patent drawing
  • US20250055923A1 patent drawing

AI summary

The disclosure herein describes platform-level migration for deep learning training (DLT) jobs from a checkpointed stated between a source node and a destination node. The checkpointing is performed through capturing GPU state (e.g., device state) and CPU state (e.g., 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 libraries). Restoring the DLT job on the destination node involves resumption of processing of a destination GPU at the same checkpointed state.