Skip to content

Commit

Permalink
fix(server): fix convert (huggingface#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil authored May 5, 2023
1 parent e68509a commit 690fc31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/text_generation_server/utils/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def convert_files(pt_files: List[Path], st_files: List[Path]):

N = len(pt_files)
# We do this instead of using tqdm because we want to parse the logs with the launcher
start = datetime.datetime.now()

for i, (pt_file, sf_file) in enumerate(zip(pt_files, st_files)):
start = datetime.datetime.now()
convert_file(pt_file, sf_file)
elapsed = datetime.datetime.now() - start
logger.info(f"Convert: [{i + 1}/{N}] -- Took: {elapsed}")

0 comments on commit 690fc31

Please sign in to comment.