mirror of https://github.com/InternLM/InternLM
fix AutoModel map in convert2hf.py (#116)
parent
cde899f3e5
commit
c52a47a993
|
@ -167,7 +167,7 @@ if __name__ == "__main__":
|
|||
# TODO There should be a better way to add this.
|
||||
with open(os.path.join(target_folder, "config.json")) as fp:
|
||||
config_dict = json.load(fp)
|
||||
config_dict["auto_map"]["AutoModel"] = "modeling_internlm.InternLMModel"
|
||||
config_dict["auto_map"]["AutoModel"] = "modeling_internlm.InternLMForCausalLM"
|
||||
with open(os.path.join(target_folder, "config.json"), "w") as fp:
|
||||
json.dump(config_dict, fp, indent=2)
|
||||
|
||||
|
|
Loading…
Reference in New Issue