Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
21468337
Unverified
Commit
21468337
authored
Sep 07, 2021
by
Anton Lozhkov
Committed by
GitHub
Sep 07, 2021
Browse files
Add unit_divisor to downloads (#13468)
parent
63b90a51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/file_utils.py
src/transformers/file_utils.py
+1
-0
No files found.
src/transformers/file_utils.py
View file @
21468337
...
@@ -1518,6 +1518,7 @@ def http_get(url: str, temp_file: BinaryIO, proxies=None, resume_size=0, headers
...
@@ -1518,6 +1518,7 @@ def http_get(url: str, temp_file: BinaryIO, proxies=None, resume_size=0, headers
progress
=
tqdm
(
progress
=
tqdm
(
unit
=
"B"
,
unit
=
"B"
,
unit_scale
=
True
,
unit_scale
=
True
,
unit_divisor
=
1024
,
total
=
total
,
total
=
total
,
initial
=
resume_size
,
initial
=
resume_size
,
desc
=
"Downloading"
,
desc
=
"Downloading"
,
...
...
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