Skip to content

Commit

Permalink
quick fix os.path.split (PaddlePaddle#8508)
Browse files Browse the repository at this point in the history
  • Loading branch information
DesmonDay authored May 29, 2024
1 parent bbf945b commit 82a7177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddlenlp/transformers/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ def _fuse_or_split_keys(
if (
shard_file.endswith(".safetensors")
and config.tensor_parallel_degree > 1
and "tp" not in os.path.spilt(shard_file)[-1]
and "tp" not in os.path.split(shard_file)[-1]
):
pre_tensor_parallel_split = True
assert loaded_keys is not None, "loaded_keys is not None."
Expand Down

0 comments on commit 82a7177

Please sign in to comment.