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 committed Sep 5, 2024
1 parent 1b352af commit b981d63
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 @@ -1890,7 +1890,7 @@ def _find_mismatched_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 b981d63

Please sign in to comment.