U
    5A·fèÚ  ã                ,   @   sô  d Z ddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZ ddlmZ ddlmZ ddlmZ ddlmZmZmZ ddlmZ d	d
lmZ e e¡Zd¢eeeeeef ef dœdd„ZddddhZ e  !dh¡Z"ej# $dd¡ %¡ Z&ej# $dd¡ %¡ Z'ej# $dd¡ %¡ Z(ej# $dd¡ %¡ Z)ej# $dd¡ %¡ Z*e +d¡Z,dZ-dZ.dZ/eddd\Z0Z1ed ƒZ2ed!ƒZ3ej4 5d"¡dk	Z6ed#ƒZ7ed$ƒZ8ed%ƒZ9ed&ƒZ:ed'ƒZ;ej4 5d(¡dk	Z<ed)ƒZ=ej4 5d*¡dk	Z>ed+ƒZ?ej4 5d,¡dk	Z@ed-ƒZAej4 5d.¡dk	ZBz ejC d.¡ZDe Ed/eD› ¡ W nZ ejCjFk
r‚   z ejC d0¡ZDe Ed/eD› ¡ W n ejCjFk
r|   dZBY nX Y nX ed1ƒZGed2ƒZHed3dd\ZIZJed4ƒZKed5ƒZLed6ƒZMed7ƒZNed8ƒZOed9ƒZPed:ƒZQed;ƒZRed<ƒZSed=ƒZTed>ƒZUed?ƒZVej4 5d@¡dk	ZWedAƒZXedBƒZYedCƒZZedDƒZ[edEƒZ\edFƒZ]edGƒZ^edHƒZ_edIƒZ`edJƒZaedKƒZbedLƒZcedMƒZdedNƒZeedOƒZfedPƒZgedQƒZhedRƒZiej4 5dS¡dk	ZjejrêzejC dT¡ W n ejCjFk
rè   dZjY nX ej4 5dU¡dk	ZkedVƒZledWƒZmedXdd\ZnZoedYƒZpedZƒZqed[ƒZred\ƒZsed]ƒZted^ƒZued_ƒZved`ƒZwedaƒZxedbƒZydcZzdZ{e'e"kr˜e&e kr˜edddd\Z{Zzne |de¡ dZ{dcZ}dZ~e*e kr¾dZ~n¸e&e"krle'e krlej4 5df¡dk	Z~e~r8dgZdZ}eD ]:Z€zejC e€¡Z}W  q0W n ejCjFk
r*   Y nX qôe}dk	Z~e~rve +e}¡e +dh¡k rve |die}› dj¡ dZ~n
e |dk¡ ej4 5dl¡dk	Zz ejC dl¡Z‚e Edme‚› ¡ W n ejCjFk
rÄ   dZ‚Y nX ej4 5dn¡dk	Zƒz ejC dn¡Z„e Edoe„› ¡ W n ejCjFk
r   dZƒY nX dcZ…ej4 5dp¡dk	p:ej4 5dq¡dk	Z†z ejC dr¡Z…e Edse…› ¡ W n ejCjFk
rz   dZ†Y nX dZ‡e(e"kràedtdd\Z‡Zˆe‡ràedudd\Z‰ZŠe‰rÐe |dveŠ› dweˆ› dx¡ nd Z‡Z‰dc ZŠZˆdZ‹e{re +ez¡ZŒeŒjeŒjŽfe,je,jŽfkZ‹dZe)e krBedydd\ZZerBe |dze› dx¡ d{d|„ Z‘d}d~„ Z’dd€„ Z“dd‚„ Z”dƒd„„ Z•d…d†„ Z–d‡dˆ„ Z—d‰dŠ„ Z˜d‹dŒ„ Z™ddŽ„ Zšdd„ Z›d‘d’„ Zœd“d”„ Zd•d–„ Zžd—d˜„ ZŸd™dš„ Z d›dœ„ Z¡ddž„ Z¢dŸd „ Z£d¡d¢„ Z¤d£d¤„ Z¥d¥d¦„ Z¦d§d¨„ Z§d©dª„ Z¨eƒ d«d¬„ ƒZ©eƒ d­d®„ ƒZªd¯d°„ Z«d±d²„ Z¬d³d´„ Z­dµd¶„ Z®d·d¸„ Z¯d¹dº„ Z°d»d¼„ Z±d½d¾„ Z²d¿dÀ„ Z³dÁdÂ„ Z´dÃdÄ„ ZµdÅdÆ„ Z¶eƒ d£dÇdÈ„ƒZ·ed¤dÉdÊ„ƒZ¸eƒ d¥dËdÌ„ƒZ¹eƒ d¦dÍdÎ„ƒZºeƒ d§dÏdÐ„ƒZ»dÑdÒ„ Z¼dÓdÔ„ Z½dÕdÖ„ Z¾d×dØ„ Z¿dÙdÚ„ ZÀdÛdÜ„ ZÁdÝdÞ„ ZÂdßdà„ ZÃdádâ„ ZÄdãdä„ ZÅdådæ„ ZÆdçdè„ ZÇdédê„ ZÈdëdì„ ZÉdídî„ ZÊed¨dïdð„ƒZËdñdò„ ZÌdódô„ ZÍdõdö„ ZÎeƒ ed÷œdødù„ƒZÏdúdû„ ZÐdüdý„ ZÑdþdÿ„ ZÒd d„ ZÓdd„ ZÔdd„ ZÕdd„ ZÖdd	„ Z×e-fed
œdd„ZØe.fed
œdd„ZÙdd„ ZÚdd„ ZÛdd„ ZÜdd„ ZÝdd„ ZÞdd„ Zßdd„ Zàdd„ Zádd „ Zâd!d"„ Zãed#d$„ ƒZäd%d&„ Zåd'd(„ Zæd)d*„ Zçd+d,„ Zèd-d.„ Zéd/d0„ Zêd1d2„ Zëd3d4„ Zìd5d6„ Zíd7d8„ Zîd9d:„ Zïd;d<„ Zðd=d>„ Zñd?d@„ ZòdAdB„ ZódCdD„ ZôdEdF„ ZõdGdH„ ZödIdJ„ Z÷dKdL„ ZødMdN„ ZùdOdP„ ZúdQdR„ ZûdSdT„ ZüdUdV„ ZýdWdX„ ZþdYdZ„ Zÿd[d\„ Z d]d^„ Zd_d`„ ZdaZdbZdcZddZdeZdfZdgZ	dhZ
diZdjZdkZdlZdmZdnZdoZdpZdqZdrZdsZdtZduZdvZdwZdxZdyZdzZd{Zd|Zd}Zd~Z dZ!d€Z"dZ#d‚Z$dƒZ%d„Z&d…Z'd†Z(d‡Z)dˆZ*d‰Z+dŠZ,d‹Z-dŒZ.ed"eÈeffd(e®effd*e’effd+eÀeffd-eÁeffdleže'ffd.eÑe	ffdte´effd1eµeffd2e¶effdBeíeffdDe÷effdneŸe)ffdeàeffd9ee(ffdŽe×effdGeœe$ffdIeåe#ffdMeÅeffdKeëeffdPeÔeffdSeÓeffdeöeffdYeìeffde¯effdZeèeffd\eòeffd:eóeffd;eôe!ffd]eãeffdde“e
ffd`e™effd‘eäe"ffdOeÒeffdeØe%ffdreùe&ffd,eúe*ffd’eÿe+ffd4e e,ffdCe­e-ffd“ee.ffg)ƒZ/d”d•„ Z0G d–d—„ d—e1ƒZ2d˜d™„ Z3G dšd›„ d›eƒZ4G dœd„ de5ƒZ6d©eedŸœd d¡„Z7dS (ª  zD
Import utilities: Utilities related to imports and our lazy inits.
é    N)ÚOrderedDict)Ú	lru_cache)Úchain)Ú
ModuleType)ÚAnyÚTupleÚUnion)Úversioné   )ÚloggingF)Úpkg_nameÚreturn_versionÚreturnc                 C   sÄ   t j | ¡d k	}d}|r°zt j | ¡}W np t jjk
r˜   | dkrz0t  | ¡}t|ddƒ}d|krn|}d}nd}W q” tk
rŒ   d}Y q”X nd}Y nX t	 
d| › d|› ¡ |r¼||fS |S d S )	NúN/AÚtorchÚ__version__ÚdevTFz	Detected z
 version: )Ú	importlibÚutilÚ	find_specÚmetadatar	   ÚPackageNotFoundErrorÚimport_moduleÚgetattrÚImportErrorÚloggerÚdebug)r   r   Zpackage_existsÚpackage_versionÚpackageZtemp_version© r   úC/tmp/pip-unpacked-wheel-zw5xktn0/transformers/utils/import_utils.pyÚ_is_package_available)   s*    

r!   Ú1ÚONZYESÚTRUEZAUTOÚUSE_TFÚ	USE_TORCHZUSE_FLAXÚUSE_TORCH_XLAÚFORCE_TF_AVAILABLEz1.10z0.21.0z1.12.0z2.2.0Z
accelerateT)r   ZapexZaqlmÚavZbitsandbytesZeetqZ
fbgemm_gpuZgalore_torchZ
lomo_optimZbs4ZcoloredlogsZcv2ZdatasetsZdecordZ
detectron2Zfaissz$Successfully imported faiss version z	faiss-cpuZftfyZg2p_enÚintel_extension_for_pytorchZjiebaZjinja2ZkenlmZ	keras_nlpZLevenshteinZlibrosaZnattenZnltkZonnxZopenaiZoptimumZ	auto_gptqZawqZquantoZpandasZpeftZ
phonemizerZpsutilZpy3nvmlZpyctcdecodeZpygmentsZpytesseractZpytestZpytorch_quantizationZrjiebaZ
sacremosesZsafetensorsZscipyZsentencepieceZseqioZggufZsklearnzscikit-learnZsmdistributedZ	soundfileZspacyZ	sudachipyZtensorflow_probabilityZtensorflow_textZtf2onnxZtimmZ
tokenizersZ
torchaudioZ
torchdistxZtorchvisionZmlxZhqqr   r   z'Disabling PyTorch because USE_TF is setÚ
tensorflow)r+   ztensorflow-cpuztensorflow-gpuz
tf-nightlyztf-nightly-cpuztf-nightly-gpuztf-nightly-rocmzintel-tensorflowzintel-tensorflow-avx512ztensorflow-rocmztensorflow-macosztensorflow-aarch64Ú2z"TensorFlow found but with version z*. Transformers requires version 2 minimum.z-Disabling Tensorflow because USE_TORCH is setZessentiaz'Successfully imported essentia version Zpretty_midiz*Successfully imported pretty_midi version Z	torch_cclZoneccl_bindings_for_pytorchZoneccl_bind_ptz Detected oneccl_bind_pt version ZflaxZjaxzJAX version z, Flax version z available.Ú	torch_xlazTorch XLA version c                   C   s   t S ©N)Ú_kenlm_availabler   r   r   r    Úis_kenlm_available   s    r0   c                   C   s   t S r.   )Ú_cv2_availabler   r   r   r    Úis_cv2_available$  s    r2   c                   C   s   t S r.   )Ú_torch_availabler   r   r   r    Úis_torch_available(  s    r4   c                  C   s    ddl } |  ¡ dkrdS dS dS )z‚
    Check whether pytorch uses deterministic algorithms by looking if torch.set_deterministic_debug_mode() is set to 1 or 2"
    r   NFT)r   Zget_deterministic_debug_mode©r   r   r   r    Úis_torch_deterministic,  s    r6   c                   C   s   t S r.   )Ú_hqq_availabler   r   r   r    Úis_hqq_available8  s    r8   c                   C   s   t S r.   )Ú_pygments_availabler   r   r   r    Úis_pygments_available<  s    r:   c                   C   s   t S r.   )Ú_torch_versionr   r   r   r    Úget_torch_version@  s    r<   c                   C   sD   t ƒ s
dS tdkrdS tƒ r0t t¡t d¡kS t t¡t d¡kS )NFr   ú2.1.0z2.1.1)r4   r;   Úis_torch_mlu_availabler	   Úparser   r   r   r    Úis_torch_sdpa_availableD  s    r@   c                   C   s   t S r.   )Ú_torchvision_availabler   r   r   r    Úis_torchvision_availableT  s    rB   c                   C   s   t S r.   )Ú_galore_torch_availabler   r   r   r    Úis_galore_torch_availableX  s    rD   c                   C   s   t S r.   )Ú_lomo_availabler   r   r   r    Úis_lomo_available\  s    rF   c                   C   s   t S r.   )Ú_pyctcdecode_availabler   r   r   r    Úis_pyctcdecode_available`  s    rH   c                   C   s   t S r.   )Ú_librosa_availabler   r   r   r    Úis_librosa_availabled  s    rJ   c                   C   s   t S r.   )Ú_essentia_availabler   r   r   r    Úis_essentia_availableh  s    rL   c                   C   s   t S r.   )Ú_pretty_midi_availabler   r   r   r    Úis_pretty_midi_availablel  s    rN   c                  C   s    t ƒ rdd l} | j ¡ S dS d S ©Nr   F)r4   r   ÚcudaÚis_availabler5   r   r   r    Úis_torch_cuda_availablep  s    
rR   c                  C   s(   t ƒ r$dd l} | j ¡ sdS tdƒS dS )Nr   FÚ	mamba_ssm©r4   r   rP   rQ   r!   r5   r   r   r    Úis_mamba_ssm_availabley  s    
rU   c                  C   sJ   t ƒ rFdd l} | j ¡ sdS tdƒrFdd l}t |j¡t d¡krFdS dS )Nr   FrS   ú2.0.4T)	r4   r   rP   rQ   r!   rS   r	   r?   r   )r   rS   r   r   r    Úis_mamba_2_ssm_available„  s    
rW   c                  C   s(   t ƒ r$dd l} | j ¡ sdS tdƒS dS )Nr   FZcausal_conv1drT   r5   r   r   r    Úis_causal_conv1d_available“  s    
rX   c                   C   s   t ƒ rtdƒS dS )NZmambapyF)r4   r!   r   r   r   r    Úis_mambapy_available  s    rY   c                  C   s6   t ƒ r2dd l} t| jdƒr2| jj ¡ o0| jj ¡ S dS )Nr   ÚmpsF)r4   r   ÚhasattrÚbackendsrZ   rQ   Zis_builtr5   r   r   r    Úis_torch_mps_available£  s
    r]   c                  C   s&   t ƒ s
dS dd l} | j ¡ o$| j ¡ S ©NFr   )r4   r   rP   rQ   Zis_bf16_supportedr5   r   r   r    Úis_torch_bf16_gpu_available¬  s    r_   c                  C   s<   t ƒ s
dS dd l} z| jjj}W n tk
r6   Y dS X dS )NFr   T)r4   r   ÚcpuÚampZautocastÚAttributeError)r   Ú_r   r   r    Úis_torch_bf16_cpu_availableµ  s    rd   c                   C   s   t  dt¡ tƒ S )Nz¬The util is_torch_bf16_available is deprecated, please use is_torch_bf16_gpu_available or is_torch_bf16_cpu_available instead according to whether it's used with cpu or gpu)ÚwarningsÚwarnÚFutureWarningr_   r   r   r   r    Úis_torch_bf16_availableÄ  s
    ýrh   c           	      C   s†   t ƒ s
dS dd l}z`|jdd|jd | ¡}|| }d\}}}|j||||j| d}|jj||j| d}||ƒ}W n   Y dS X dS )NFr   é   ©Údtype)é   é   é   )rk   ÚdeviceT)r4   r   ÚzerosZfloat16ÚtoZrandnÚnnZ	LayerNorm)	ro   r   Úxrc   ÚbatchZsentence_lengthZembedding_dimZ	embeddingZ
layer_normr   r   r    Ú!is_torch_fp16_available_on_deviceÏ  s    
ru   c                 C   sX   t ƒ s
dS dd l}| dkr tƒ S z$|jdd|jd | ¡}|| }W n   Y dS X dS )NFr   rP   ri   rj   T)r4   r   r_   rp   Zbfloat16rq   )ro   r   rs   rc   r   r   r    Ú!is_torch_bf16_available_on_deviceé  s    rv   c                  C   sŒ   t ƒ s
dS dd l} | j ¡ r(| jjd kr,dS | j | j ¡ ¡jdk rHdS t| jj 	d¡d ƒdk rfdS t 
t 
| j¡j¡t 
d¡k rˆdS dS )NFr   é   Ú.é   z1.7T)r4   r   rP   rQ   r	   Zget_device_propertiesZcurrent_deviceÚmajorÚintÚsplitr?   r   Úbase_versionr5   r   r   r    Úis_torch_tf32_availableþ  s    r~   c                   C   s   t S r.   )Ú_torch_fx_availabler   r   r   r    Úis_torch_fx_available  s    r€   c                   C   s   t S r.   )Ú_peft_availabler   r   r   r    Úis_peft_available  s    r‚   c                   C   s   t S r.   )Ú_bs4_availabler   r   r   r    Úis_bs4_available  s    r„   c                   C   s   t S r.   )Ú_tf_availabler   r   r   r    Úis_tf_available  s    r†   c                   C   s   t S r.   )Ú_coloredlogs_availabler   r   r   r    Úis_coloredlogs_available   s    rˆ   c                   C   s   t S r.   )Ú_tf2onnx_availabler   r   r   r    Úis_tf2onnx_available$  s    rŠ   c                   C   s   t S r.   )Ú_onnx_availabler   r   r   r    Úis_onnx_available(  s    rŒ   c                   C   s   t S r.   )Ú_openai_availabler   r   r   r    Úis_openai_available,  s    rŽ   c                   C   s   t S r.   )Ú_flax_availabler   r   r   r    Úis_flax_available0  s    r   c                   C   s   t S r.   )Ú_ftfy_availabler   r   r   r    Úis_ftfy_available4  s    r’   c                   C   s   t S r.   )Ú_g2p_en_availabler   r   r   r    Úis_g2p_en_available8  s    r”   c                 C   sh   t  dt¡ tsdS tj d¡dk	rd| r`z ddlm  m	} | 
¡ }W dS  tk
r^   Y dS X dS dS )zQChecks if `torch_xla` is installed and potentially if a TPU is in the environmentzv`is_torch_tpu_available` is deprecated and will be removed in 4.41.0. Please use the `is_torch_xla_available` instead.Fr-   Nr   T)re   rf   rg   r3   r   r   r   Ztorch_xla.core.xla_modelÚcoreZ	xla_modelZ
xla_deviceÚRuntimeError)Úcheck_deviceZxmrc   r   r   r    Úis_torch_tpu_available<  s     ýr˜   c                 C   sH   | r|rt dƒ‚tsdS ddl}|r2|j ¡ dkS | rD|j ¡ dkS dS )zš
    Check if `torch_xla` is available. To train a native pytorch job in an environment with torch xla installed, set
    the USE_TORCH_XLA to false.
    z6The check_is_tpu and check_is_gpu cannot both be true.Fr   N)ZGPUZCUDAZTPUT)ÚAssertionErrorÚ_torch_xla_availabler-   ZruntimeZdevice_type)Zcheck_is_tpuZcheck_is_gpur-   r   r   r    Úis_torch_xla_availableU  s    r›   c                 C   s   t j d¡d k	rtƒ S dS )NZtorch_neuronxF)r   r   r   r›   )r—   r   r   r    Úis_torch_neuroncore_availablej  s    rœ   c                 C   sn   t rtj d¡dkrdS ddl}ddl}| rZz|j ¡ }|j ¡ W S  t	k
rX   Y dS X t
|dƒol|j ¡ S )zQChecks if `torch_npu` is installed and potentially if a NPU is in the environmentÚ	torch_npuNFr   Únpu)r3   r   r   r   r   r   rž   Údevice_countrQ   r–   r[   )r—   r   r   rc   r   r   r    Úis_torch_npu_availableq  s    
r    c                 C   s‚   t rtj d¡dkrdS ddl}ddl}ddlm} d|d< | rnz|j 	¡ }|j 
¡ W S  tk
rl   Y dS X t|d	ƒo€|j 
¡ S )
zQChecks if `torch_mlu` is installed and potentially if a MLU is in the environmentÚ	torch_mluNFr   ri   )Údepszdeepspeed-mlu>=0.10.1Z	deepspeedÚmlu)r3   r   r   r   r   r¡   Zdependency_versions_tabler¢   r£   rŸ   rQ   r–   r[   )r—   r   r¡   r¢   rc   r   r   r    r>   „  s    
r>   c                   C   s   t ƒ s
dS t t¡t d¡kS )NFz2.0.0©r4   r	   r?   r;   r   r   r   r    Úis_torchdynamo_available›  s    r¥   c                  C   s   t ƒ s
dS dd l} t| dƒS )NFr   Úcompile)r4   r   r[   r5   r   r   r    Úis_torch_compile_available¢  s    r§   c                  C   sl   t ƒ s
dS zdd l} | j ¡ W S  tk
rf   zdd lm} | ¡ W  Y S  tk
r`   Y Y dS X Y nX d S r^   )r4   r   ÚcompilerZis_compilingÚ	ExceptionZtorch._dynamoZ_dynamo)r   Zdynamor   r   r    Úis_torchdynamo_compiling­  s    rª   c                   C   s$   t j d¡d krdS t j d¡d k	S )NZtorch_tensorrtFztorch_tensorrt.fx©r   r   r   r   r   r   r    Úis_torch_tensorrt_fx_availableÀ  s    r¬   c                   C   s   t S r.   )Ú_datasets_availabler   r   r   r    Úis_datasets_availableÆ  s    r®   c                   C   s   t S r.   )Ú_detectron2_availabler   r   r   r    Úis_detectron2_availableÊ  s    r°   c                   C   s   t S r.   )Ú_rjieba_availabler   r   r   r    Úis_rjieba_availableÎ  s    r²   c                   C   s   t S r.   )Ú_psutil_availabler   r   r   r    Úis_psutil_availableÒ  s    r´   c                   C   s   t S r.   )Ú_py3nvml_availabler   r   r   r    Úis_py3nvml_availableÖ  s    r¶   c                   C   s   t S r.   )Ú_sacremoses_availabler   r   r   r    Úis_sacremoses_availableÚ  s    r¸   c                   C   s   t S r.   )Ú_apex_availabler   r   r   r    Úis_apex_availableÞ  s    rº   c                   C   s   t S r.   )Ú_aqlm_availabler   r   r   r    Úis_aqlm_availableâ  s    r¼   c                   C   s   t S r.   )Ú_av_availabler   r   r   r    Úis_av_availableæ  s    r¾   c                   C   s2   zt  d ¡ ¡ W n tk
r(   Y dS X dS dS )zÃ
    Code comes from *torch.utils.cpp_extension.is_ninja_available()*. Returns `True` if the
    [ninja](https://ninja-build.org/) build system is available on the system, `False` otherwise.
    zninja --versionFTN)Ú
subprocessÚcheck_outputr|   r©   r   r   r   r    Úis_ninja_availableê  s
    rÁ   c               	   C   sT   dd„ } t ƒ rtsdS | tƒ}| tƒ}||krPt d|› d|› dt› d¡ dS dS )	Nc                 S   s$   t t | ¡jƒd t t | ¡jƒ S )Nrx   )Ústrr	   r?   rz   Úminor)Zfull_versionr   r   r    Ú get_major_and_minor_from_versionø  s    z;is_ipex_available.<locals>.get_major_and_minor_from_versionFzIntel Extension for PyTorch z needs to work with PyTorch z.*, but PyTorch z? is found. Please switch to the matching version and run again.T)r4   Ú_ipex_availabler;   Ú_ipex_versionr   Úwarning)rÄ   Ztorch_major_and_minorZipex_major_and_minorr   r   r    Úis_ipex_available÷  s    
ÿrÈ   c                 C   s”   t ƒ s
dS t t¡}tƒ r$ddl}n"|jdk sB|jdkrF|jdk rFdS ddl}| r€z|j	 
¡ }|j	 ¡ W S  tk
r~   Y dS X t|dƒo’|j	 ¡ S )zª
    Checks if XPU acceleration is available either via `intel_extension_for_pytorch` or
    via stock PyTorch (>=2.4) and potentially if a XPU is in the environment
    Fr   Nri   rm   Úxpu)r4   r	   r?   r;   rÈ   r*   rz   rÃ   r   rÉ   rŸ   rQ   r–   r[   )r—   Útorch_versionr*   r   rc   r   r   r    Úis_torch_xpu_available	  s    


rË   c                  C   s    t ƒ s
dS dd l} to| j ¡ S r^   )r4   r   Ú_bitsandbytes_availablerP   rQ   r5   r   r   r    Úis_bitsandbytes_available$  s    rÍ   c                  C   s¤   t ƒ s
dS tdƒsdS dd l} | j ¡ s2tƒ s2dS | jjrVt tj	 d¡¡t d¡kS | jj
rzt tj	 d¡¡t d¡kS tƒ rœt tj	 d¡¡t d¡kS dS d S )NFÚ
flash_attnr   r=   rV   z2.3.3)r4   r!   r   rP   rQ   r>   r	   r?   r   r   Zhipr5   r   r   r    Úis_flash_attn_2_available/  s    rÏ   c                   C   s(   t dƒsdS t tj d¡¡t d¡kS )NrÎ   Fr=   ©r!   r	   r?   r   r   r   r   r   r    Ú#is_flash_attn_greater_or_equal_2_10G  s    rÑ   ©Zlibrary_versionc                 C   s(   t dƒsdS t tj d¡¡t | ¡kS )NrÎ   FrÐ   rÒ   r   r   r    Úis_flash_attn_greater_or_equalN  s    rÓ   c                   C   s   t S r.   )Ú_torchdistx_availabler   r   r   r    Úis_torchdistx_availableV  s    rÕ   c                   C   s   t S r.   )Ú_faiss_availabler   r   r   r    Úis_faiss_availableZ  s    r×   c                   C   s   t S r.   )Ú_scipy_availabler   r   r   r    Úis_scipy_available^  s    rÙ   c                   C   s   t S r.   )Ú_sklearn_availabler   r   r   r    Úis_sklearn_availableb  s    rÛ   c                   C   s   t S r.   )Ú_sentencepiece_availabler   r   r   r    Úis_sentencepiece_availablef  s    rÝ   c                   C   s   t S r.   )Ú_is_seqio_availabler   r   r   r    Úis_seqio_availablej  s    rß   c                   C   s   t S r.   )Ú_is_gguf_availabler   r   r   r    Úis_gguf_availablen  s    rá   c                   C   s$   t j d¡d krdS t j d¡d k	S )NZgoogleFzgoogle.protobufr«   r   r   r   r    Úis_protobuf_availabler  s    râ   ©Úmin_versionc                 C   s   t ot t¡t | ¡kS r.   )Ú_accelerate_availabler	   r?   Ú_accelerate_versionrã   r   r   r    Úis_accelerate_availablex  s    rç   c                 C   s   t ƒ ot t¡t | ¡kS r.   r¤   rã   r   r   r    Úis_fsdp_available|  s    rè   c                   C   s   t S r.   )Ú_optimum_availabler   r   r   r    Úis_optimum_available€  s    rê   c                   C   s   t S r.   )Ú_auto_awq_availabler   r   r   r    Úis_auto_awq_available„  s    rì   c                   C   s   t S r.   )Ú_quanto_availabler   r   r   r    Úis_quanto_availableˆ  s    rî   c                   C   s   t S r.   )Ú_auto_gptq_availabler   r   r   r    Úis_auto_gptq_availableŒ  s    rð   c                   C   s   t S r.   )Ú_eetq_availabler   r   r   r    Úis_eetq_available  s    rò   c                   C   s   t S r.   )Ú_fbgemm_gpu_availabler   r   r   r    Úis_fbgemm_gpu_available”  s    rô   c                   C   s   t S r.   )Ú_levenshtein_availabler   r   r   r    Úis_levenshtein_available˜  s    rö   c                   C   s   t o
tdƒS )Nzoptimum.neuron)ré   r!   r   r   r   r    Úis_optimum_neuron_availableœ  s    r÷   c                   C   s   t S r.   )Ú_safetensors_availabler   r   r   r    Úis_safetensors_available   s    rù   c                   C   s   t S r.   )Ú_tokenizers_availabler   r   r   r    Úis_tokenizers_available¤  s    rû   c                  C   s€   t j d¡d k	} | r|zt j d¡}W nF t jjk
rj   zt j d¡}W n t jjk
rd   Y Y dS X Y nX t d|› ¡ | S )NZPILZPillowzPillow-SIMDFzDetected PIL version )r   r   r   r   r	   r   r   r   )Z_pil_availabler   r   r   r    Úis_vision_available¨  s    rü   c                   C   s   t S r.   )Ú_pytesseract_availabler   r   r   r    Úis_pytesseract_available·  s    rþ   c                   C   s   t S r.   )Ú_pytest_availabler   r   r   r    Úis_pytest_available»  s    r   c                   C   s   t S r.   )Ú_spacy_availabler   r   r   r    Úis_spacy_available¿  s    r  c                   C   s
   t ƒ otS r.   )r†   Ú_tensorflow_text_availabler   r   r   r    Úis_tensorflow_text_availableÃ  s    r  c                   C   s
   t ƒ otS r.   )r  Ú_keras_nlp_availabler   r   r   r    Úis_keras_nlp_availableÇ  s    r  c               
   C   s†   zdt jd j} d| ƒ jkr"tdƒ‚dtjkr4tdƒ‚dtjkrTtjd dk rTtdƒ‚tj 	d¡d k	W S  t
ttfk
r€   Y d	S X d S )
NZIPythonZIPKernelAppÚconsoleZ
VSCODE_PIDZvscodeZDATABRICKS_RUNTIME_VERSIONz11.0Z
databricksF)ÚsysÚmodulesÚget_ipythonÚconfigr   ÚosÚenvironr   r   r   rb   ÚKeyError)r
  r   r   r    Úis_in_notebookË  s    
r  c                   C   s   t S r.   )Ú_pytorch_quantization_availabler   r   r   r    Ú!is_pytorch_quantization_availableÝ  s    r  c                   C   s   t S r.   )Ú!_tensorflow_probability_availabler   r   r   r    Ú#is_tensorflow_probability_availableá  s    r  c                   C   s   t S r.   )Ú_pandas_availabler   r   r   r    Úis_pandas_availableå  s    r  c                  C   sJ   t  dd¡} z t | ¡} |  dd¡s*W dS W n tjk
rD   Y dS X tS )NÚSM_FRAMEWORK_PARAMSú{}Z*sagemaker_distributed_dataparallel_enabledF)r  ÚgetenvÚjsonÚloadsÚgetÚJSONDecodeErrorÚ_smdistributed_available)Zsagemaker_paramsr   r   r    Úis_sagemaker_dp_enabledé  s    

r  c                  C   sŒ   t  dd¡} zt | ¡} d| kr&W dS W n tjk
r@   Y dS X t  dd¡}z t |¡}| dd¡slW dS W n tjk
r†   Y dS X tS )NZSM_HP_MP_PARAMETERSr  Z
partitionsFr  Zsagemaker_mpi_enabled)r  r  r  r  r  r  r  )Zsmp_optionsZmpi_optionsr   r   r    Úis_sagemaker_mp_enabled÷  s    



r  c                   C   s
   dt jkS )NZSAGEMAKER_JOB_NAME)r  r  r   r   r   r    Úis_training_run_on_sagemaker  s    r   c                   C   s   t S r.   )Ú_soundfile_availabler   r   r   r    Úis_soundfile_availble  s    r"  c                   C   s   t S r.   )Ú_timm_availabler   r   r   r    Úis_timm_available  s    r$  c                   C   s   t S r.   )Ú_natten_availabler   r   r   r    Úis_natten_available  s    r&  c                   C   s   t S r.   )Ú_nltk_availabler   r   r   r    Úis_nltk_available  s    r(  c                   C   s   t S r.   ©Ú_torchaudio_availabler   r   r   r    Úis_torchaudio_available#  s    r+  c                   C   s   t S r.   r)  r   r   r   r    Úis_speech_available'  s    r,  c                   C   s   t S r.   )Ú_phonemizer_availabler   r   r   r    Úis_phonemizer_available,  s    r.  c                    s   ‡ fdd„}|S )Nc                     s   t stdƒ‚n
ˆ | |ŽS d S )Nz|You need to install pytorch to use this method or class, or activate it with environment variables USE_TORCH=1 and USE_TF=0.)r3   r   )ÚargsÚkwargs©Úfnr   r    Úwrapper1  s
    ÿz"torch_only_method.<locals>.wrapperr   )r2  r3  r   r1  r    Útorch_only_method0  s    	r4  c                   C   s   t S r.   )Ú_is_ccl_availabler   r   r   r    Úis_ccl_available=  s    r6  c                   C   s   t S r.   )Ú_decord_availabler   r   r   r    Úis_decord_availableA  s    r8  c                   C   s   t S r.   )Ú_sudachipy_availabler   r   r   r    Úis_sudachi_availableE  s    r:  c                   C   s   t S r.   )Ú_sudachipy_versionr   r   r   r    Úget_sudachi_versionI  s    r<  c                   C   s   t ƒ s
dS t t¡t d¡kS )NFz0.6.8)r:  r	   r?   r;  r   r   r   r    Úis_sudachi_projection_availableM  s    r=  c                   C   s   t j d¡d k	ot d¡d k	S )NZrhoknpZjumanpp)r   r   r   ÚshutilÚwhichr   r   r   r    Úis_jumanpp_availableV  s    r@  c                   C   s   t j d¡d k	S )NZ	pyximportr«   r   r   r   r    Úis_cython_availableZ  s    rA  c                   C   s   t S r.   )Ú_jieba_availabler   r   r   r    Úis_jieba_available^  s    rC  c                   C   s   t S r.   )Ú_jinja_availabler   r   r   r    Úis_jinja_availableb  s    rE  c                   C   s   t S r.   )Ú_mlx_availabler   r   r   r    Úis_mlx_availablef  s    rG  zÃ
{0} requires the PyAv library but it was not found in your environment. You can install it with:
```
pip install av
```
Please note that you may need to restart your runtime after installation.
zÐ
{0} requires the OpenCV library but it was not found in your environment. You can install it with:
```
pip install opencv-python
```
Please note that you may need to restart your runtime after installation.
ub  
{0} requires the ðŸ¤— Datasets library but it was not found in your environment. You can install it with:
```
pip install datasets
```
In a notebook or a colab, you can install it by executing a cell with
```
!pip install datasets
```
then restarting your kernel.

Note that if you have a local folder named `datasets` or a local python file named `datasets.py` in your current
working directory, python may try to import this instead of the ðŸ¤— Datasets library. You should rename this folder or
that python file if that's the case. Please note that you may need to restart your runtime after installation.
u<  
{0} requires the ðŸ¤— Tokenizers library but it was not found in your environment. You can install it with:
```
pip install tokenizers
```
In a notebook or a colab, you can install it by executing a cell with
```
!pip install tokenizers
```
Please note that you may need to restart your runtime after installation.
aB  
{0} requires the SentencePiece library but it was not found in your environment. Checkout the instructions on the
installation page of its repo: https://github.com/google/sentencepiece#installation and follow the ones
that match your environment. Please note that you may need to restart your runtime after installation.
aT  
{0} requires the protobuf library but it was not found in your environment. Checkout the instructions on the
installation page of its repo: https://github.com/protocolbuffers/protobuf/tree/master/python#installation and follow the ones
that match your environment. Please note that you may need to restart your runtime after installation.
aF  
{0} requires the faiss library but it was not found in your environment. Checkout the instructions on the
installation page of its repo: https://github.com/facebookresearch/faiss/blob/master/INSTALL.md and follow the ones
that match your environment. Please note that you may need to restart your runtime after installation.
a$  
{0} requires the PyTorch library but it was not found in your environment. Checkout the instructions on the
installation page: https://pytorch.org/get-started/locally/ and follow the ones that match your environment.
Please note that you may need to restart your runtime after installation.
a(  
{0} requires the Torchvision library but it was not found in your environment. Checkout the instructions on the
installation page: https://pytorch.org/get-started/locally/ and follow the ones that match your environment.
Please note that you may need to restart your runtime after installation.
a  
{0} requires the PyTorch library but it was not found in your environment.
However, we were able to find a TensorFlow installation. TensorFlow classes begin
with "TF", but are otherwise identically named to our PyTorch classes. This
means that the TF equivalent of the class you tried to import would be "TF{0}".
If you want to use TensorFlow, please use TF classes instead!

If you really do want to use PyTorch please go to
https://pytorch.org/get-started/locally/ and follow the instructions that
match your environment.
aÄ  
{0} requires the TensorFlow library but it was not found in your environment.
However, we were able to find a PyTorch installation. PyTorch classes do not begin
with "TF", but are otherwise identically named to our TF classes.
If you want to use PyTorch, please use those classes instead!

If you really do want to use TensorFlow, please follow the instructions on the
installation page https://www.tensorflow.org/install that match your environment.
zØ
{0} requires the Beautiful Soup library but it was not found in your environment. You can install it with pip:
`pip install beautifulsoup4`. Please note that you may need to restart your runtime after installation.
aC  
{0} requires the scikit-learn library but it was not found in your environment. You can install it with:
```
pip install -U scikit-learn
```
In a notebook or a colab, you can install it by executing a cell with
```
!pip install -U scikit-learn
```
Please note that you may need to restart your runtime after installation.
a!  
{0} requires the TensorFlow library but it was not found in your environment. Checkout the instructions on the
installation page: https://www.tensorflow.org/install and follow the ones that match your environment.
Please note that you may need to restart your runtime after installation.
aD  
{0} requires the detectron2 library but it was not found in your environment. Checkout the instructions on the
installation page: https://github.com/facebookresearch/detectron2/blob/master/INSTALL.md and follow the ones
that match your environment. Please note that you may need to restart your runtime after installation.
a  
{0} requires the FLAX library but it was not found in your environment. Checkout the instructions on the
installation page: https://github.com/google/flax and follow the ones that match your environment.
Please note that you may need to restart your runtime after installation.
a8  
{0} requires the ftfy library but it was not found in your environment. Checkout the instructions on the
installation section: https://github.com/rspeer/python-ftfy/tree/master#installing and follow the ones
that match your environment. Please note that you may need to restart your runtime after installation.
zà
{0} requires the python-Levenshtein library but it was not found in your environment. You can install it with pip: `pip
install python-Levenshtein`. Please note that you may need to restart your runtime after installation.
zÈ
{0} requires the g2p-en library but it was not found in your environment. You can install it with pip:
`pip install g2p-en`. Please note that you may need to restart your runtime after installation.
a  
{0} requires the pytorch-quantization library but it was not found in your environment. You can install it with pip:
`pip install pytorch-quantization --extra-index-url https://pypi.ngc.nvidia.com`
Please note that you may need to restart your runtime after installation.
zÿ
{0} requires the tensorflow_probability library but it was not found in your environment. You can install it with pip as
explained here: https://github.com/tensorflow/probability. Please note that you may need to restart your runtime after installation.
a  
{0} requires the tensorflow_text library but it was not found in your environment. You can install it with pip as
explained here: https://www.tensorflow.org/text/guide/tf_text_intro.
Please note that you may need to restart your runtime after installation.
a  
{0} requires the pandas library but it was not found in your environment. You can install it with pip as
explained here: https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html.
Please note that you may need to restart your runtime after installation.
zÐ
{0} requires the phonemizer library but it was not found in your environment. You can install it with pip:
`pip install phonemizer`. Please note that you may need to restart your runtime after installation.
zÐ
{0} requires the sacremoses library but it was not found in your environment. You can install it with pip:
`pip install sacremoses`. Please note that you may need to restart your runtime after installation.
zÆ
{0} requires the scipy library but it was not found in your environment. You can install it with pip:
`pip install scipy`. Please note that you may need to restart your runtime after installation.
zÐ
{0} requires the torchaudio library but it was not found in your environment. You can install it with pip:
`pip install torchaudio`. Please note that you may need to restart your runtime after installation.
zÄ
{0} requires the timm library but it was not found in your environment. You can install it with pip:
`pip install timm`. Please note that you may need to restart your runtime after installation.
a"  
{0} requires the natten library but it was not found in your environment. You can install it by referring to:
shi-labs.com/natten . You can also install it with pip (may take longer to build):
`pip install natten`. Please note that you may need to restart your runtime after installation.
z¥
{0} requires the numexpr library but it was not found in your environment. You can install it by referring to:
https://numexpr.readthedocs.io/en/latest/index.html.
zÚ
{0} requires the NLTK library but it was not found in your environment. You can install it by referring to:
https://www.nltk.org/install.html. Please note that you may need to restart your runtime after installation.
zÅ
{0} requires the PIL library but it was not found in your environment. You can install it with pip:
`pip install pillow`. Please note that you may need to restart your runtime after installation.
zÒ
{0} requires the PyTesseract library but it was not found in your environment. You can install it with pip:
`pip install pytesseract`. Please note that you may need to restart your runtime after installation.
zÒ
{0} requires the pyctcdecode library but it was not found in your environment. You can install it with pip:
`pip install pyctcdecode`. Please note that you may need to restart your runtime after installation.
zü
{0} requires the accelerate library >= {ACCELERATE_MIN_VERSION} it was not found in your environment.
You can install or update it with pip: `pip install --upgrade accelerate`. Please note that you may need to restart your
runtime after installation.
a  
{0} requires the torch ccl library but it was not found in your environment. You can install it with pip:
`pip install oneccl_bind_pt -f https://developer.intel.com/ipex-whl-stable`
Please note that you may need to restart your runtime after installation.
zÛ
{0} requires essentia library. But that was not found in your environment. You can install them with pip:
`pip install essentia==2.1b6.dev1034`
Please note that you may need to restart your runtime after installation.
zÏ
{0} requires thes librosa library. But that was not found in your environment. You can install them with pip:
`pip install librosa`
Please note that you may need to restart your runtime after installation.
z×
{0} requires thes pretty_midi library. But that was not found in your environment. You can install them with pip:
`pip install pretty_midi`
Please note that you may need to restart your runtime after installation.
zÈ
{0} requires the decord library but it was not found in your environment. You can install it with pip: `pip install
decord`. Please note that you may need to restart your runtime after installation.
zÈ
{0} requires the Cython library but it was not found in your environment. You can install it with pip: `pip install
Cython`. Please note that you may need to restart your runtime after installation.
zÆ
{0} requires the jieba library but it was not found in your environment. You can install it with pip: `pip install
jieba`. Please note that you may need to restart your runtime after installation.
zÄ
{0} requires the peft library but it was not found in your environment. You can install it with pip: `pip install
peft`. Please note that you may need to restart your runtime after installation.
zÇ
{0} requires the jinja library but it was not found in your environment. You can install it with pip: `pip install
jinja2`. Please note that you may need to restart your runtime after installation.
ZlevenshteinZprotobufZspeechÚtfZvisionZcythonZjinjac                    s¶   t |ttfƒs|g}t| dƒr$| jn| jj‰ d|krVd|krVtƒ sVtƒ rVtt	 
ˆ ¡ƒ‚d|kr€d|kr€tƒ r€tƒ s€tt 
ˆ ¡ƒ‚dd„ |D ƒ}‡ fdd„|D ƒ}|r²td |¡ƒ‚d S )	NÚ__name__r   rH  c                 s   s   | ]}t | V  qd S r.   )ÚBACKENDS_MAPPING)Ú.0Úbackendr   r   r    Ú	<genexpr>ø  s     z$requires_backends.<locals>.<genexpr>c                    s    g | ]\}}|ƒ s|  ˆ ¡‘qS r   )Úformat)rK  Ú	availableÚmsg©Únamer   r    Ú
<listcomp>ù  s      z%requires_backends.<locals>.<listcomp>Ú )Ú
isinstanceÚlistÚtupler[   rI  Ú	__class__r4   r†   r   ÚPYTORCH_IMPORT_ERROR_WITH_TFrN  ÚTF_IMPORT_ERROR_WITH_PYTORCHÚjoin)Úobjr\   ZchecksÚfailedr   rQ  r    Úrequires_backendsê  s    r^  c                       s    e Zd ZdZ‡ fdd„Z‡  ZS )ÚDummyObjectzÂ
    Metaclass for the dummy objects. Any class inheriting from it will return the ImportError generated by
    `requires_backend` each time a user tries to access any method of that class.
    c                    s.   |  d¡r|dkrtƒ  |¡S t| | jƒ d S )Nrc   Z_from_config)Ú
startswithÚsuperÚ__getattribute__r^  Z	_backends)ÚclsÚkey©rX  r   r    rb    s    zDummyObject.__getattribute__)rI  Ú
__module__Ú__qualname__Ú__doc__rb  Ú__classcell__r   r   re  r    r_  þ  s   r_  c                 C   s    t ƒ rdd l}t| |jjƒS dS rO   )r€   Ztorch.fxrU  ZfxZProxy)rs   r   r   r   r    Úis_torch_fx_proxy
  s    rj  c                       sT   e Zd ZdZd‡ fdd„	Z‡ fdd„Zeedœdd	„Zed
œdd„Z	dd„ Z
‡  ZS )Ú_LazyModulezu
    Module class that surfaces all objects but only performs associated imports when the objects are requested.
    Nc           	         s¢   t ƒ  |¡ t| ¡ ƒ| _i | _| ¡ D ]\}}|D ]}|| j|< q4q(t| ¡ ƒtt| 	¡ Ž ƒ | _
|| _|| _tj |¡g| _|d krŒi n|| _|| _|| _d S r.   )ra  Ú__init__ÚsetÚkeysÚ_modulesÚ_class_to_moduleÚitemsrV  r   ÚvaluesÚ__all__Ú__file__Ú__spec__r  ÚpathÚdirnameÚ__path__Ú_objectsÚ_nameÚ_import_structure)	ÚselfrR  Zmodule_fileZimport_structureZmodule_specÚextra_objectsrd  rr  Úvaluere  r   r    rl    s    z_LazyModule.__init__c                    s,   t ƒ  ¡ }| jD ]}||kr| |¡ q|S r.   )ra  Ú__dir__rs  Úappend)r|  ÚresultÚattrre  r   r    r  *  s
    

z_LazyModule.__dir__)rR  r   c                 C   sz   || j kr| j | S || jkr*|  |¡}n@|| j ¡ krT|  | j| ¡}t||ƒ}ntd| j› d|› ƒ‚t| ||ƒ |S )Nzmodule z has no attribute )	ry  ro  Ú_get_modulerp  rn  r   rb   rI  Úsetattr)r|  rR  r~  Úmoduler   r   r    Ú__getattr__3  s    


z_LazyModule.__getattr__)Úmodule_namec              
   C   sZ   zt  d| | j¡W S  tk
rT } z"td| j› d|› d|› ƒ|‚W 5 d }~X Y nX d S )Nrx   zFailed to import z@ because of the following error (look up to see its traceback):
)r   r   rI  r©   r–   )r|  r‡  Úer   r   r    rƒ  A  s    ÿýz_LazyModule._get_modulec                 C   s   | j | j| j| jffS r.   )rX  rz  rt  r{  )r|  r   r   r    Ú
__reduce__J  s    z_LazyModule.__reduce__)NN)rI  rf  rg  rh  rl  r  rÂ   r   r†  rƒ  r‰  ri  r   r   re  r    rk    s   		rk  c                   @   s   e Zd ZdZdS )ÚOptionalDependencyNotAvailablezPInternally used error class for signalling an optional dependency was not found.N)rI  rf  rg  rh  r   r   r   r    rŠ  N  s   rŠ  ú__init__.py)rv  r   c                 C   sL   d}t j | |¡}tjj||| gd}tj |¡}|j |¡ t	j
| }|S )zþImports transformers directly

    Args:
        path (`str`): The path to the source file
        file (`str`, *optional*): The file to join with the path. Defaults to "__init__.py".

    Returns:
        `ModuleType`: The resulting imported module
    Ztransformers)Úsubmodule_search_locations)r  rv  r[  r   r   Úspec_from_file_locationÚmodule_from_specÚloaderÚexec_moduler  r	  )rv  ÚfilerR  ÚlocationÚspecr…  r   r   r    Údirect_transformers_importR  s    

r”  )F)T)FF)T)F)F)F)r‹  (8  rh  Úimportlib.metadatar   Úimportlib.utilr  r  r>  r¿   r  re   Úcollectionsr   Ú	functoolsr   Ú	itertoolsr   Útypesr   Útypingr   r   r   Ú	packagingr	   rT  r   Z
get_loggerrI  r   rÂ   Úboolr!   ZENV_VARS_TRUE_VALUESÚunionZENV_VARS_TRUE_AND_AUTO_VALUESr  r  Úupperr%   r&   ZUSE_JAXr'   r(   r?   ZTORCH_FX_REQUIRED_VERSIONZACCELERATE_MIN_VERSIONZFSDP_MIN_VERSIONZXLA_FSDPV2_MIN_VERSIONrå   ræ   r¹   r»   r   r   r½   rÌ   rñ   ró   rC   rE   rƒ   r‡   r1   r­   r7  r¯   rÖ   r   Z_faiss_versionr   r   r‘   r“   rÅ   rÆ   rB  rD  r/   r  rõ   rI   r%  r'  r‹   r   ré   rï   rë   rí   r  r   r-  r³   rµ   rG   r9   rý   rÿ   r  r±   r·   rø   rØ   rÜ   rÞ   rà   rÚ   r  r!  r  r9  r;  r  r  r‰   r#  rú   r*  rÔ   rA   rF  r7   r;   r3   ÚinfoZ_tf_versionr…   Ú
candidatesÚpkgrK   Z_essentia_versionrM   Z_pretty_midi_versionZccl_versionr5  r   Z_flax_versionZ_jax_availableZ_jax_versionr   rÊ   rz   rÃ   rš   Z_torch_xla_versionr0   r2   r4   r6   r8   r:   r<   r@   rB   rD   rF   rH   rJ   rL   rN   rR   rU   rW   rX   rY   r]   r_   rd   rh   ru   rv   r~   r€   r‚   r„   r†   rˆ   rŠ   rŒ   rŽ   r   r’   r”   r˜   r›   rœ   r    r>   r¥   r§   rª   r¬   r®   r°   r²   r´   r¶   r¸   rº   r¼   r¾   rÁ   rÈ   rË   rÍ   rÏ   rÑ   rÓ   rÕ   r×   rÙ   rÛ   rÝ   rß   rá   râ   rç   rè   rê   rì   rî   rð   rò   rô   rö   r÷   rù   rû   rü   rþ   r   r  r  r  r  r  r  r  r  r  r   r"  r$  r&  r(  r+  r,  r.  r4  r6  r8  r:  r<  r=  r@  rA  rC  rE  rG  ZAV_IMPORT_ERRORZCV2_IMPORT_ERRORZDATASETS_IMPORT_ERRORZTOKENIZERS_IMPORT_ERRORZSENTENCEPIECE_IMPORT_ERRORZPROTOBUF_IMPORT_ERRORZFAISS_IMPORT_ERRORZPYTORCH_IMPORT_ERRORZTORCHVISION_IMPORT_ERRORrY  rZ  ZBS4_IMPORT_ERRORZSKLEARN_IMPORT_ERRORZTENSORFLOW_IMPORT_ERRORZDETECTRON2_IMPORT_ERRORZFLAX_IMPORT_ERRORZFTFY_IMPORT_ERRORZLEVENSHTEIN_IMPORT_ERRORZG2P_EN_IMPORT_ERRORZ!PYTORCH_QUANTIZATION_IMPORT_ERRORZ#TENSORFLOW_PROBABILITY_IMPORT_ERRORZTENSORFLOW_TEXT_IMPORT_ERRORZPANDAS_IMPORT_ERRORZPHONEMIZER_IMPORT_ERRORZSACREMOSES_IMPORT_ERRORZSCIPY_IMPORT_ERRORZSPEECH_IMPORT_ERRORZTIMM_IMPORT_ERRORZNATTEN_IMPORT_ERRORZNUMEXPR_IMPORT_ERRORZNLTK_IMPORT_ERRORZVISION_IMPORT_ERRORZPYTESSERACT_IMPORT_ERRORZPYCTCDECODE_IMPORT_ERRORZACCELERATE_IMPORT_ERRORZCCL_IMPORT_ERRORZESSENTIA_IMPORT_ERRORZLIBROSA_IMPORT_ERRORZPRETTY_MIDI_IMPORT_ERRORZDECORD_IMPORT_ERRORZCYTHON_IMPORT_ERRORZJIEBA_IMPORT_ERRORZPEFT_IMPORT_ERRORZJINJA_IMPORT_ERRORrJ  r^  Útyper_  rj  rk  ÚBaseExceptionrŠ  r”  r   r   r   r    Ú<module>   s  
&!





ÿ


þ



þ
	
		

	

×ÿ/<