Skip to content

Commit

Permalink
Merge pull request #393 from Anhforth/masternew
Browse files Browse the repository at this point in the history
released 1.7.3
  • Loading branch information
ftgreat authored Jun 14, 2023
2 parents 36c083f + 49b5d1f commit 166a5d7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Empty file modified BAAI_Aquila_Model_License.pdf
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion examples/AltDiffusion-m18/generate.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
loader = AutoLoader(task_name="text2img", #contrastive learning
model_name="AltDiffusion-m18",
model_dir="./checkpoints",
use_fp16=False)
fp16=False)
model = loader.get_model()
model.eval()
model.to(device)
Expand Down
2 changes: 1 addition & 1 deletion examples/AltDiffusion/generate.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
loader = AutoLoader(task_name="text2img", #contrastive learning
model_name="AltDiffusion-m9",
model_dir="./checkpoints",
use_fp16=False)
fp16=False)

model = loader.get_model()
model.eval()
Expand Down
2 changes: 0 additions & 2 deletions flagai/auto_model/auto_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ def __init__(self,
only_download_config=only_download_config,
device=device,
**kwargs)
if kwargs.get("use_fp16", None):
self.model.half()

if model_type == "nlp":
if brief_model_name in ["galactica",]:
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

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

0 comments on commit 166a5d7

Please sign in to comment.