/usr/local/lib/python3.6/site-packages/transformers/commands/__pycache__
NameSizeModeActions
add_new_model.cpython-36.pyc65310644editdlrm
add_new_model_like.cpython-36.pyc426880644editdlrm
convert.cpython-36.pyc49430644editdlrm
download.cpython-36.pyc16600644editdlrm
env.cpython-36.pyc26050644editdlrm
lfs.cpython-36.pyc72440644editdlrm
run.cpython-36.pyc33720644editdlrm
serving.cpython-36.pyc67480644editdlrm
train.cpython-36.pyc45890644editdlrm
transformers_cli.cpython-36.pyc12610644editdlrm
user.cpython-36.pyc84530644editdlrm
__init__.cpython-36.pyc7940644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/transformers/commands/__pycache__/env.cpython-36.pyc (2605B)
3 Eg @sdddlZddlmZddlZddlmZddlmZm Z m Z ddlm Z dd Z Gd d d e Z dS) N)ArgumentParser) __version__)is_flax_availableis_tf_availableis_torch_available)BaseTransformersCLICommandcCstS)N)EnvironmentCommand)_r C/usr/local/lib/python3.6/site-packages/transformers/commands/env.pyinfo_command_factorysrc@s2eZdZeedddZddZeddZdS) r )parsercCs|jd}|jtddS)Nenv)func) add_parser set_defaultsr)rZdownload_parserr r r register_subcommands z&EnvironmentCommand.register_subcommandcCs,d}d}tr&ddl}|j}|jj}d}d}trvddl}|j}y|jj}Wn$t k rtt |j j d}YnXd}d}d} d} t rddl} ddl} ddl} | j}| j}| j} | jjjj} ttjtjtj|d|d|d|d|d| d|| ddd }td t|j||S) Nz not installedZNArZGPUz ()z ) z`transformers` versionPlatformzPython versionzHuggingface_hub versionzPyTorch version (GPU?)zTensorflow version (GPU?)zFlax version (CPU?/GPU?/TPU?)z Jax versionzJaxLib versionzUsing GPU in script?z/Using distributed or parallel set-up in script?zV Copy-and-paste the text below in your GitHub issue and FILL OUT the two last points. )rtorchrZcudaZ is_availablerZ tensorflowtestZis_gpu_availableAttributeErrorboolconfigZlist_physical_devicesrflaxjaxjaxliblibZ xla_bridge get_backendplatformversionpython_versionhuggingface_hubprint format_dict)selfZ pt_versionZpt_cuda_availablerZ tf_versionZtf_cuda_availabletfZ flax_versionZ jax_versionZjaxlib_versionZ jax_backendrrrinfor r r run#sR zEnvironmentCommand.runcCsdjdd|jDdS)N cSs g|]\}}d|d|qS)z- z: r ).0propvalr r r \sz2EnvironmentCommand.format_dict..)joinitems)dr r r r&ZszEnvironmentCommand.format_dictN)__name__ __module__ __qualname__ staticmethodrrr*r&r r r r r s7r )r!argparserr$rr"utilsrrrr rr r r r r s