Skip to content

Commit

Permalink
change cpu mode default to float
Browse files Browse the repository at this point in the history
  • Loading branch information
Akegarasu committed Mar 20, 2023
1 parent 8ca2ea6 commit 1885984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def prepare_model():
elif cmd_opts.precision == "bf16":
model = model.bfloat16()
else:
model = model.bfloat16()
model = model.float()
else:
if cmd_opts.precision == "fp16":
model = model.half().cuda()
Expand Down

0 comments on commit 1885984

Please sign in to comment.