Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
690fc317
Unverified
Commit
690fc317
authored
May 05, 2023
by
Nicolas Patry
Committed by
GitHub
May 05, 2023
Browse files
fix(server): fix convert (#284)
parent
e68509ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
server/text_generation_server/utils/convert.py
server/text_generation_server/utils/convert.py
+3
-1
No files found.
server/text_generation_server/utils/convert.py
View file @
690fc317
...
...
@@ -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
}
"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment