Skip to content

Commit

Permalink
Made default hf export torch.float32
Browse files Browse the repository at this point in the history
  • Loading branch information
nickypro committed Sep 16, 2023
1 parent fc11cc3 commit 19f40a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def version2_export(model, filepath, group_size=64):
out_file.close()
print(f"wrote {filepath}")

def hf_export(llama_model, filepath, group_size=64, dtype=torch.float16):
def hf_export(llama_model, filepath, group_size=64, dtype=torch.float32):
""" Generate the pytorch_model.bin state_dict and config.json for HuggingFace """

try:
Expand Down

0 comments on commit 19f40a2

Please sign in to comment.