Skip to content

Commit

Permalink
Fix baichuan convert script not detecing model (#3739)
Browse files Browse the repository at this point in the history
It seems nobody objects.
  • Loading branch information
Galunid authored Oct 23, 2023
1 parent 96981f3 commit 6336701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert-baichuan-hf-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def parse_args() -> argparse.Namespace:
with open(dir_model / "config.json", "r", encoding="utf-8") as f:
hparams = json.load(f)
print("hello print: ",hparams["architectures"][0])
if hparams["architectures"][0] != "BaichuanForCausalLM":
if hparams["architectures"][0] != "BaichuanForCausalLM" and hparams["architectures"][0] != "BaiChuanForCausalLM":
print("Model architecture not supported: " + hparams["architectures"][0])

sys.exit()
Expand Down

0 comments on commit 6336701

Please sign in to comment.