/usr/local/lib/python3.6/site-packages/transformers/utils/__pycache__
NameSizeModeActions
doc.cpython-36.pyc345520644editdlrm
dummy_detectron2_objects.cpython-36.pyc7650644editdlrm
dummy_flax_objects.cpython-36.pyc476390644editdlrm
dummy_pt_objects.cpython-36.pyc2099100644editdlrm
dummy_pytorch_quantization_and_torch_objects.cpython-36.pyc38530644editdlrm
dummy_scatter_objects.cpython-36.pyc20440644editdlrm
dummy_sentencepiece_and_speech_objects.cpython-36.pyc6410644editdlrm
dummy_sentencepiece_and_tokenizers_objects.cpython-36.pyc4580644editdlrm
dummy_sentencepiece_objects.cpython-36.pyc76300644editdlrm
dummy_speech_objects.cpython-36.pyc6130644editdlrm
dummy_tf_objects.cpython-36.pyc985960644editdlrm
dummy_timm_and_vision_objects.cpython-36.pyc16240644editdlrm
dummy_timm_objects.cpython-36.pyc16470644editdlrm
dummy_tokenizers_objects.cpython-36.pyc147460644editdlrm
dummy_vision_objects.cpython-36.pyc65940644editdlrm
fx.cpython-36.pyc179760644editdlrm
fx_transformations.cpython-36.pyc95630644editdlrm
generic.cpython-36.pyc104930644editdlrm
hp_naming.cpython-36.pyc37510644editdlrm
hub.cpython-36.pyc316490644editdlrm
import_utils.cpython-36.pyc227740644editdlrm
logging.cpython-36.pyc95570644editdlrm
model_parallel_utils.cpython-36.pyc19760644editdlrm
notebook.cpython-36.pyc121900644editdlrm
sentencepiece_model_pb2.cpython-36.pyc128230644editdlrm
versions.cpython-36.pyc30620644editdlrm
__init__.cpython-36.pyc46450644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/transformers/utils/__pycache__/versions.cpython-36.pyc (3062B)
3 Eg@sdZddlZddlZddlZddlmZddlmZejdkrHddl Z n ddl j Z ej ej ejejejejdZdd Zdeeedd d d Zd dZdS)z- Utilities for working with package versions N)Optional)version)=>cCs\|dkrtd|dkr tdt|tj|tj|sXt|d|d|d|dS)Nzgot_ver is Nonezwant_ver is Nonez@ is required for a normal functioning of this module, but found z==.) ValueErroropsrparse ImportError)opgot_verwant_ver requirementpkghintrE/usr/local/lib/python3.6/site-packages/transformers/utils/versions.py_compare_versions+sr)rrreturnc Cs|dk rd|nd}tjd|r4|dd}}}ntjd|}|sRtd||d\}}|jd}i}xf|D]^} tjd | }|std||d\}}|||<|tkrrt|d ttjd |qrW|d kr*d jddt j ddD} x(|j D]\}}t || ||||qWdSyt j|} Wn.t jk rft jd|d|YnX|dk rx(|j D]\}}t || ||||q|WdS)a/ Perform a runtime check of the dependency versions, using the exact same syntax used by pip. The installed module version comes from the *site-packages* dir via *importlib_metadata*. Args: requirement (`str`): pip style definition, e.g., "tokenizers==0.9.4", "tqdm>=4.27", "numpy" hint (`str`, *optional*): what suggestion to print in case of requirements not being met Example: ```python require_version("pandas>1.1.2") require_version("numpy>1.18.5", "this is important to have for whatever reason") ```N z ^[\w_\-\d]+$z^([^!=<>\s]+)([\s!=<>]{1,2}.+)zgrequirement needs to be in the pip package format, .e.g., package_a==1.23, or package_b>=1.23, but got r,z^([\s!=<>]{1,2})(.+)z: need one of z , but got pythonrcSsg|] }t|qSr)str).0xrrr bsz#require_version..rzThe 'zB' distribution was not found and is required by this application. )rematchfindallr splitr listkeysjoinsys version_infoitemsrimportlib_metadatarZPackageNotFoundError) rrrr rr Z want_fullZ want_rangewantedwrrrrrequire_version6s@         $  r,cCsd}t||S)zCrequire_version wrapper which emits a core-specific hint on failurez[Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main)r,)rrrrrrequire_version_coreusr-)rr)N)__doc__operatorrr&typingr packagingrr'r)Zimportlib.metadatametadataltleeqnegegtr rrr,r-rrrrs"       ?