Skip to content

Commit 166a5d7

Browse files
authored
Merge pull request #393 from Anhforth/masternew
released 1.7.3
2 parents 36c083f + 49b5d1f commit 166a5d7

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

BAAI_Aquila_Model_License.pdf

100644100755
File mode changed.

examples/AltDiffusion-m18/generate.py

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
loader = AutoLoader(task_name="text2img", #contrastive learning
1212
model_name="AltDiffusion-m18",
1313
model_dir="./checkpoints",
14-
use_fp16=False)
14+
fp16=False)
1515
model = loader.get_model()
1616
model.eval()
1717
model.to(device)

examples/AltDiffusion/generate.py

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
loader = AutoLoader(task_name="text2img", #contrastive learning
1212
model_name="AltDiffusion-m9",
1313
model_dir="./checkpoints",
14-
use_fp16=False)
14+
fp16=False)
1515

1616
model = loader.get_model()
1717
model.eval()

flagai/auto_model/auto_loader.py

-2
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ def __init__(self,
220220
only_download_config=only_download_config,
221221
device=device,
222222
**kwargs)
223-
if kwargs.get("use_fp16", None):
224-
self.model.half()
225223

226224
if model_type == "nlp":
227225
if brief_model_name in ["galactica",]:

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="flagai",
8-
version="v1.7.2",
8+
version="v1.7.3",
99
description="FlagAI aims to help researchers and developers to freely train and test large-scale models for NLP/CV/VL tasks.",
1010
long_description=open("README.md", encoding="utf-8").read(),
1111
long_description_content_type="text/markdown",
@@ -36,5 +36,7 @@
3636
'taming-transformers-rom1504 == 0.0.6',
3737
'rouge-score == 0.1.2',
3838
'sacrebleu == 2.3.1',
39+
'jsonlines == 3.1.0',
40+
'accelerate == 0.19.0'
3941
]
4042
)

0 commit comments

Comments
 (0)