We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2909e3a commit fba143fCopy full SHA for fba143f
1 file changed
src/maxtext/checkpoint_conversion/to_huggingface.py
@@ -119,6 +119,7 @@ def _get_model_mappings(
119
ValueError: If mappings for the specified `model_name` are not found.
120
"""
121
target_model_name = model_name
122
+ # Fall back to base model mappings if the given -Instruct variant belongs to the same family.
123
if target_model_name not in PARAM_MAPPING and target_model_name.endswith("-Instruct"):
124
base_name = target_model_name[: -len("-Instruct")]
125
if base_name in HF_IDS and base_name in PARAM_MAPPING:
0 commit comments