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
chenpangpang
transformers
Commits
ab2f8d12
Unverified
Commit
ab2f8d12
authored
Mar 08, 2022
by
Patrick von Platen
Committed by
GitHub
Mar 08, 2022
Browse files
add hf hub to env version command (#15981)
parent
72983303
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/transformers/commands/env.py
src/transformers/commands/env.py
+3
-0
No files found.
src/transformers/commands/env.py
View file @
ab2f8d12
...
...
@@ -15,6 +15,8 @@
import
platform
from
argparse
import
ArgumentParser
import
huggingface_hub
from
..
import
__version__
as
version
from
..file_utils
import
is_flax_available
,
is_tf_available
,
is_torch_available
from
.
import
BaseTransformersCLICommand
...
...
@@ -70,6 +72,7 @@ class EnvironmentCommand(BaseTransformersCLICommand):
"`transformers` version"
:
version
,
"Platform"
:
platform
.
platform
(),
"Python version"
:
platform
.
python_version
(),
"Huggingface_hub version"
:
huggingface_hub
.
__version__
,
"PyTorch version (GPU?)"
:
f
"
{
pt_version
}
(
{
pt_cuda_available
}
)"
,
"Tensorflow version (GPU?)"
:
f
"
{
tf_version
}
(
{
tf_cuda_available
}
)"
,
"Flax version (CPU?/GPU?/TPU?)"
:
f
"
{
flax_version
}
(
{
jax_backend
}
)"
,
...
...
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