Skip to content

Commit

Permalink
There was never a bug (shhh)
Browse files Browse the repository at this point in the history
  • Loading branch information
cg123 committed Dec 30, 2023
1 parent 58d9b97 commit 7e9af2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mergekit/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def __str__(self) -> str:


def dtype_from_name(name: Optional[str]) -> torch.dtype:
if name.startswith("torch."):
name = name.removeprefix("torch.")

if name == "bfloat16":
return torch.bfloat16
elif name == "float16":
Expand Down

0 comments on commit 7e9af2d

Please sign in to comment.