Skip to content

Commit fba143f

Browse files
committed
comment
1 parent 2909e3a commit fba143f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/maxtext/checkpoint_conversion/to_huggingface.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def _get_model_mappings(
119119
ValueError: If mappings for the specified `model_name` are not found.
120120
"""
121121
target_model_name = model_name
122+
# Fall back to base model mappings if the given -Instruct variant belongs to the same family.
122123
if target_model_name not in PARAM_MAPPING and target_model_name.endswith("-Instruct"):
123124
base_name = target_model_name[: -len("-Instruct")]
124125
if base_name in HF_IDS and base_name in PARAM_MAPPING:

0 commit comments

Comments
 (0)