Skip to content

Commit

Permalink
Fix dtype as str
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Kardas committed Feb 14, 2023
1 parent 1a1e448 commit 3a724f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion galai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def load_model(
dtype = default_dtype

if isinstance(dtype, str):
dtype = getattr(torch, "float16", None)
dtype = getattr(torch, dtype, None)
if dtype not in (torch.float16, torch.float32, torch.bfloat16):
raise ValueError(
f"Unsupported dtype: {dtype}"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages

PACKAGE_NAME = 'galai'
VERSION = "1.1.6"
VERSION = "1.1.7.dev0"
DESCRIPTION = "API for the GALACTICA model"
KEYWORDS = "Scientific Intelligence"
URL = 'https://github.com/paperswithcode/galai'
Expand Down

0 comments on commit 3a724f5

Please sign in to comment.