File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
paddleformers/trainer/utils Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 19
19
from typing import List , Union
20
20
21
21
import paddle
22
- from paddle .distributed .checkpoint .load_state_dict import (
22
+ from paddle .distributed .fleet .utils .log_util import logger
23
+ from paddle .distributed .flex_checkpoint .dcp .load_state_dict import (
23
24
_load_state_dict ,
24
25
get_rank_to_read_files ,
25
26
)
26
- from paddle .distributed .checkpoint .metadata import (
27
+ from paddle .distributed .flex_checkpoint . dcp .metadata import (
27
28
LocalTensorIndex ,
28
29
LocalTensorMetadata ,
29
30
Metadata ,
30
31
)
31
- from paddle .distributed .checkpoint .utils import flatten_state_dict
32
- from paddle .distributed .fleet .utils .log_util import logger
32
+ from paddle .distributed .flex_checkpoint .dcp .utils import flatten_state_dict
33
33
34
34
MODEL_WEIGHT_SUFFIX = ".pdparams"
35
35
OPTIMIZER_WEIGHT_SUFFIX = ".pdopt"
You can’t perform that action at this time.
0 commit comments