diff --git a/torchchat/cli/convert_hf_checkpoint.py b/torchchat/cli/convert_hf_checkpoint.py index f95cbdaef..970b58f31 100644 --- a/torchchat/cli/convert_hf_checkpoint.py +++ b/torchchat/cli/convert_hf_checkpoint.py @@ -43,7 +43,8 @@ def convert_hf_checkpoint( # Load the json file containing weight mapping model_map_json_matches = [Path(m) for m in glob.glob(str(model_dir / "*.index.json"))] - assert len(model_map_json_matches) <= 1, "Found multiple weight mapping files" + if "mistral" not in model_name: + assert len(model_map_json_matches) <= 1, "Found multiple weight mapping files" if len(model_map_json_matches): model_map_json = model_map_json_matches[0] else: