Skip to content

Commit

Permalink
fix download script
Browse files Browse the repository at this point in the history
  • Loading branch information
goliaro committed Oct 31, 2023
1 parent 17fa6f3 commit cdc12e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions inference/utils/download_hf_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def parse_args():

def main(args):
if args.full_precision_only:
data_types = ff.DataType.DT_FLOAT
data_types = (ff.DataType.DT_FLOAT,)
elif args.half_precision_only:
data_types = ff.DataType.DT_HALF
data_types = (ff.DataType.DT_HALF,)
else:
data_types = (ff.DataType.DT_FLOAT, ff.DataType.DT_HALF)

Expand Down
4 changes: 2 additions & 2 deletions inference/utils/download_peft_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def parse_args():

def main(args):
if args.full_precision_only:
data_types = ff.DataType.DT_FLOAT
data_types = (ff.DataType.DT_FLOAT,)
elif args.half_precision_only:
data_types = ff.DataType.DT_HALF
data_types = (ff.DataType.DT_HALF,)
else:
data_types = (ff.DataType.DT_FLOAT, ff.DataType.DT_HALF)

Expand Down

0 comments on commit cdc12e6

Please sign in to comment.