Skip to content

Commit

Permalink
More fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cg123 committed Dec 30, 2023
1 parent 7e9af2d commit 2bd639e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mergekit/scripts/mixtral_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ def build(
if config.dtype:
out_dtype = dtype_from_name(config.dtype)
elif base_cfg.torch_dtype:
out_dtype = dtype_from_name(base_cfg.torch_dtype)
out_dtype = base_cfg.torch_dtype
if isinstance(out_dtype, str):
out_dtype = dtype_from_name(out_dtype)
else:
out_dtype = None

Expand Down

0 comments on commit 2bd639e

Please sign in to comment.