Skip to content

Commit 3a724f5

Browse files
author
Marcin Kardas
committed
Fix dtype as str
1 parent 1a1e448 commit 3a724f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

galai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def load_model(
7171
dtype = default_dtype
7272

7373
if isinstance(dtype, str):
74-
dtype = getattr(torch, "float16", None)
74+
dtype = getattr(torch, dtype, None)
7575
if dtype not in (torch.float16, torch.float32, torch.bfloat16):
7676
raise ValueError(
7777
f"Unsupported dtype: {dtype}"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup, find_packages
22

33
PACKAGE_NAME = 'galai'
4-
VERSION = "1.1.6"
4+
VERSION = "1.1.7.dev0"
55
DESCRIPTION = "API for the GALACTICA model"
66
KEYWORDS = "Scientific Intelligence"
77
URL = 'https://github.com/paperswithcode/galai'

0 commit comments

Comments
 (0)