Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,7 @@ def _fuse_or_split_keys(
except NotImplementedError:
if convert_from_hf:
raise ValueError("`convert_from_hf=True` is not supported")
transpose_weight_keys = None
state_dict = load_state_dict(
shard_file,
tp_actions if pre_tensor_parallel_split else None,
Expand Down Expand Up @@ -1934,6 +1935,7 @@ def from_pretrained(
except NotImplementedError:
if convert_from_hf:
raise ValueError("`convert_from_hf=True` is not supported")
transpose_weight_keys = None
state_dict = load_state_dict(
resolved_archive_file,
convert_from_hf=convert_from_hf,
Expand Down