docstr: Load shard model, load model from multiple files.
docstr_tok: ["Load","shard","model",",","load","model","from","multiple","files","."]
code: def load_sharded_model(
      self,
      model: GeminiDDP,
      checkpoint_index_file: Path,
      strict: bool = False,
      use_safetensors: bool = False,
  ):
      """
      Load shard model, load model from multiple files.
      """
      assert isinstance(
          model, GeminiDDP
      ), "Please boost the model before loading!"
      return super().load_sharded_model(
          model,
          checkpoint_index_file,
          strict,
          use_safetensors,
          load_sub_module=False,
      )
  
imports: import gc
  import logging
  import os
  import random
  from pathlib import Path
  from typing import Callable, Iterator, List, Optional, Tuple
  import numpy
  import torch
  import torch.distributed
  import torch.nn
  from torch.distributed.distributed_c10d import _get_default_group
  from torch.optim import Optimizer
  from torch.optim.lr_scheduler import _LRScheduler
  from torch.utils.data import DataLoader
  from torch.utils.data.distributed import DistributedSampler
  from colossalai.checkpoint_io import CheckpointIndexFile, CheckpointIO, GeneralCheckpointIO
  from colossalai.checkpoint_io.utils import get_model_base_filenames, get_optimizer_base_filenames, load_shard_state_dict, save_config_file, save_state_dict, save_state_dict_shards
  from colossalai.cluster import DistCoordinator, ProcessGroupMesh
  from colossalai.interface import ModelWrapper, OptimizerWrapper
  from colossalai.shardformer import ShardConfig, ShardFormer
  from colossalai.utils import get_current_device
  from colossalai.utils.device import IS_NPU_AVAILABLE
  from colossalai.zero import GeminiDDP, GeminiOptimizer
  from colossalai.zero.gemini.memory_tracer import MemStats
  from .dp_plugin_base import DPPluginBase
label_desc: Use image node_id 7 for calling the GeminiCheckpointIO obj's underlying member method code with example usage: obj.load_sharded_model(model, checkpoint_index_file, strict, use_safetensors) and returns: super