From 7e46bc87b6e68b52e05c7eee0c9a4d4bd04a9a8f Mon Sep 17 00:00:00 2001 From: digger yu Date: Mon, 3 Jul 2023 17:09:06 +0800 Subject: [PATCH] fix CheckpointIndexFile is not defined (#4109) --- colossalai/checkpoint_io/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/colossalai/checkpoint_io/utils.py b/colossalai/checkpoint_io/utils.py index 3dada00cd..f28b3e82c 100644 --- a/colossalai/checkpoint_io/utils.py +++ b/colossalai/checkpoint_io/utils.py @@ -11,6 +11,7 @@ import torch.nn as nn from torch.optim import Optimizer from colossalai.tensor.d_tensor.d_tensor import DTensor +from .index_file import CheckpointIndexFile SAFE_WEIGHTS_NAME = "model.safetensors" WEIGHTS_NAME = "pytorch_model.bin"