+
    QV-j½  ã                   óš   € ^ RI Ht ^ RIt^ RIHtHtHt ^RIHtH	t	H
t
 ]
P                  ! ]4      tR R ltR R ltR	 R
 ltRR R lltR# )é    )ÚOptionalN)Ú
DiscussionÚHfApiÚget_repo_discussions)Úcached_fileÚhttp_user_agentÚloggingc                ób   € V ^8„  d   QhR\         R\        R\        R\        R\        R,          /# )é   ÚapiÚmodel_idÚpr_titleÚtokenÚreturnr   )r   Ústrr   )Úformats   "Út/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/transformers/safetensors_conversion.pyÚ__annotate__r      s5   € ÷ ñ ”Uð ¤cð ´Sð Äð ÌÐR^ÕI_ñ ó    c                 óV  € V P                  WR 7      ^ ,          P                  p\        WR7       Fu  pVP                  V8X  g   K  VP                  R8X  g   K)  VP
                  '       g   K=  V P                  WP                  VR7      pWF^,          P                  8X  g   Ks  Vu # 	  R# )©r   )Úrepo_idr   Úopen©Úrevisionr   N)Úlist_repo_commitsÚ	commit_idr   ÚtitleÚstatusÚis_pull_requestÚgit_reference)r   r   r   r   Úmain_commitÚ
discussionÚcommitss   &&&&   r   Úprevious_prr%      s�   € Ø×'Ñ'¨Ð'Ó>¸qÕA×KÑK€KÜ*°8×Iˆ
Ø×Ñ˜xÖ'¨J×,=Ñ,=ÀÖ,GÈJ×Lf×LfÒLfØ×+Ñ+¨H×?WÑ?WÐ_dÐ+ÓeˆGà a�j×2Ñ2Ö2Ø!Ò!ñ Jñ r   c                ó<   € V ^8„  d   QhR\         R\        R\         /# )r   r   Úprivater   ©r   Úbool)r   s   "r   r   r      s&   € ÷ !Bñ !BœCð !B¬$ð !B¼#ñ !Br   c           	      óà  € \         P                  R 4       RpV R2pR pRW!V ./p\        P                  ! VRVR7      P	                  4       pVR,          p\        P
                  ! RV R	V 24      ;_uu_ 4       p	 \         P                  R
4       V! V	4       RRR4       R#   \         d,   p
\         P                  R\        T
4       24        Rp
?
L;Rp
?
ii ; i  + '       g   i     R# ; i)z;Attempting to convert .bin model on the fly to safetensors.z$https://safetensors-convert.hf.spacez	/call/runc                 óž  € V P                  4        F¸  p\        V\        4      '       g   VP                  4       pVP	                  R 4      '       dd   VR,          p\
        P                  RV 24       VR8X  d    R# VR8X  d   \
        P                  R4       K‰  \
        P                  RV 24       K£  \
        P                  V4       Kº  	  R# )zevent::é   NNzSafetensors conversion status: ÚcompleteNÚ	heartbeatÚ	HeartbeatzUnknown status )Ú
iter_linesÚ
isinstancer   ÚdecodeÚ
startswithÚloggerÚdebug)Ú_sse_connectionÚliner   s   &  r   ÚstartÚspawn_conversion.<locals>.start   s—   € Ø#×.Ñ.Ö0ˆDÜ˜d¤C×(Ò(Ø—{‘{“}�Ø�‰˜x×(Ò(Ø˜b��Ü—‘Ð>¸v¸hÐGÔHà˜ZÔ'ÚØ˜{Ô*Ü—L‘L Ö-ä—L‘L ?°6°(Ð!;Ö<ä—‘˜TÖ"ó 1r   ÚdataT)Úfollow_redirectsÚjsonÚevent_idÚGETÚ/z*Spawning safetensors automatic conversion.zError during conversion: N)
r4   ÚinfoÚhttpxÚpostr<   Ústreamr5   Ú	ExceptionÚwarningÚrepr)r   r'   r   Úsafetensors_convert_space_urlÚsse_urlr8   r:   Úresultr=   Ússe_connectionÚes   &&&        r   Úspawn_conversionrL      sÙ   € Ü
‡K�KÐMÔNà$JÐ!Ø.Ð/¨yÐ9€Gò#ð" �X¨Ð.Ð/€Dä�ZŠZ˜°$¸TÔB×GÑGÓI€FØ�jÕ!€Hä	�Š�e ˜y¨¨(¨Ð4×	5Ô	5¸ð	BÜ�L‰LÐEÔFÙ�.Ô!÷ 
6Ñ	5øô ô 	BÜ�N‰NÐ6´t¸A³w°iÐ@×AÑAûð	Bú÷	 
6×	5Ð	5ús0   Á:CÁ<B#Â#CÂ.!CÃCÃCÃCÃC-	c                ó0   € V ^8„  d   QhR\         R\        /# )r   r   r   )r   r   )r   s   "r   r   r   ;   s   € ÷ ñ ¤Uð ´cñ r   c                 óz  € V P                  V4      P                  p\        P                  R 4       RpVP	                  R4      p\        WWER7      pVe   V'       g,   VP                  R8w  d   \        WSV4       \        WWER7      pM\        P                  R4       Vf   \        R4      hRVP                   2pV# )z(Attempting to create safetensors variantz*Adding `safetensors` variant of this modelr   r   ÚSFconvertbotzSafetensors PR existszÙCould not create safetensors conversion PR. The repo does not appear to have a file named pytorch_model.bin or model.safetensors.If you are loading with variant, use `use_safetensors=False` to load the original model.zrefs/pr/)
Ú
model_infor'   r4   r@   Úgetr%   ÚauthorrL   ÚOSErrorÚnum)r   r   Úkwargsr'   r   r   ÚprÚshas   &&,     r   Úget_conversion_pr_referencerX   ;   s¨   € Ø�n‰n˜XÓ&×.Ñ.€Gä
‡K�KÐ:Ô;Ø;€HØ�J‰J�wÓ€Eô
 
�S HÔ	:€Bà	‚zŸ' b§i¡i°>Ô&AÜ˜¨Ô2Ü˜¨Ô>‰ä�‰Ð+Ô,Ø	‚zÜðgó
ð 	
ð
 �R—V‘V�HÐ
€Cà€Jr   c                óH   € V ^8„  d   QhR\         R\        R\         R\         /# )r   Úpretrained_model_name_or_pathÚignore_errors_during_conversionÚsafe_weights_nameÚsafe_weights_index_namer(   )r   s   "r   r   r   W   s0   € ÷ ñ Ü#&ðä%)ðô ðô !ñ	r   c                 óH  €  \        VP                  R 4      R\        4       /R7      p\        WP3/ VB pVf   R# WdR&   VR VP	                  V VVVP                  R 4      R7      pV'       d   TMTp\        W3/ VB p	W–V3#   \         d   p
T'       g   T
h Rp
?
R# Rp
?
ii ; i)r   z
user-agent)r   ÚheadersNr   Ú_commit_hashr   )NN)r   rQ   r   rX   Úfile_existsr   rD   )rZ   r[   r\   r]   Úcached_file_kwargsr   rW   ÚshardedÚfilenameÚresolved_archive_filerK   s   &&&&,      r   Úauto_conversionrf   W   sÆ   € ðÜÐ,×0Ñ0°Ó9ÀLÔRaÓRcÐCdÔeˆÜ)¨#ÑcÐPbÑcˆàŠ;ØÐØ),˜:Ñ&Ø˜~Ð.ð —/‘/Ø)Ø#ØØ$×(Ñ(¨Ó1ð	 "ó 
ˆ÷ /6Ñ*Ð;Lˆä +Ð,IÑ jÐWiÑ jÐØ$¨7Ð2Ð2øÜô ß.ØˆGõ /ûðús   ‚7B ºAB ÂB!Â
BÂB!)Fzmodel.safetensorszmodel.safetensors.index.json)Útypingr   rA   Úhuggingface_hubr   r   r   Úutilsr   r   r	   Ú
get_loggerÚ__name__r4   r%   rL   rX   rf   © r   r   Ú<module>rm      sD   ðÝ ã ß CÑ Cç 8Ñ 8ð 
×	Ò	˜HÓ	%€õõ!BõH÷8ñ r   