+
    $”Lj¬  ã                   óX   € ^ RI t ^ RIt^ RIt^ RIHtHt ^ RIHtHt Rt	RR lt
R tR tR# )	é    N)ÚVersionÚparse)Údefault_config_fileÚload_config_from_filezQRun commands across TPU VMs for initial setup before running `accelerate launch`.c                 óf  € V e   V P                  R\        R7      pM\        P                  ! R\        R7      pVP	                  RR4      pVP                  R\        R RR7       VP                  R	R R
R7       VP                  RR RR7       VP	                  RR4      pVP                  RRRR7       VP                  RR RR7       VP                  RRRRR7       VP                  RRRR7       VP                  RRRR7       VP                  R RR!R7       V e   VP                  \        R"7       V# )#Nz
tpu-config)ÚdescriptionzAccelerate tpu-config commandzConfig Argumentsz=Arguments that can be configured through `accelerate config`.z--config_filez.Path to the config file to use for accelerate.)ÚtypeÚdefaultÚhelpz
--tpu_namez\The name of the TPU to use. If not specified, will use the TPU specified in the config file.)r
   r   z
--tpu_zonez]The zone of the TPU to use. If not specified, will use the zone specified in the config file.zTPU Argumentsz)Arguments for options ran inside the TPU.z--use_alphaÚ
store_truezWWhether to use `gcloud alpha` when running the TPU training script instead of `gcloud`.)Úactionr   z--command_filezJThe path to the file containing the commands to run on the pod on startup.ú	--commandÚappendÚ+z:A command to run on the pod. Can be passed multiple times.)r   Únargsr   z--install_acceleratez<Whether to install accelerate on the pod. Defaults to False.z--accelerate_versionÚlatestzŠThe version of accelerate to install on the pod. If not specified, will use the latest pypi version. Specify 'dev' to install from GitHub.z--debugzGIf set, will print the command that would be run instead of running it.)Úfunc)	Ú
add_parserÚ_descriptionÚargparseÚArgumentParserÚadd_argument_groupÚadd_argumentÚstrÚset_defaultsÚtpu_command_launcher)Ú
subparsersÚparserÚconfig_argsÚpod_argss   &   ÚC/app/.local/lib/python3.14/site-packages/accelerate/commands/tpu.pyÚtpu_command_parserr"      s  € ØÒØ×&Ñ& |ÄÐ&ÓN‰ä×(Ò(Ð)HÔVbÔcˆà×+Ñ+ØÐ[ó€Kð ×ÑØÜØØ=ð	 ô ð ×ÑØØØkð ô ð
 ×ÑØØØlð ô ð
 ×(Ñ(¨Ð:eÓf€HØ×ÑØØØfð ô ð
 ×ÑØØØYð ô ð
 ×ÑØØØØIð	 ô ð ×ÑØØØKð ô ð
 ×ÑØØð Zð ô ð
 ×ÑØ˜,Ð-vð ô ð ÒØ×ÑÔ!5ÐÔ6Ø€Mó    c                 óÎ  € R pV P                   f*   \        P                  P                  \        4      '       dÐ   \        V P                   4      pV P                  '       g2   VP                  e$   V P                  '       g   VP                  V n        V P                  '       g    VP                  e   VP                  V n        V P                  '       g   VP                  V n	        V P                  '       g   VP                  V n
        V P                  R8X  d	   RV n        MVV P                  R8X  d	   RV n        M=\        \        V P                  4      \        4      '       d   RV P                   2V n        V P                  '       g   V P                  '       g   \        R4      hV P                  '       dK   \!        V P                  4      ;_uu_ 4       pVP#                  4       P%                  4       .V n        R R R 4       \        V P                  ^ ,          \&        4      '       d+   V P                   UUu. uF  q3 F  qDNK  	  K  	  uppV n        R.pV P(                  '       d   VRV P                   2.,          pWPP                  ,          pR	P+                  V4      V n        R
.pV P,                  '       d   VR.,          pVRRRRV P                  RV P                  RV P                  RR.,          pV P.                  '       d    \1        RRP+                  V4       24       R # \2        P4                  ! V4       \1        R4       R #   + '       g   i     EL[; iu uppi )NÚdevz1git+https://github.com/huggingface/accelerate.gitr   zaccelerate -Uzaccelerate==zFYou must specify either a command file or a command to run on the pod.zcd /usr/sharezpip install z; ÚgcloudÚalphaÚcomputeÚtpusztpu-vmÚsshz--zoner   z--workerÚallzRunning Ú zSuccessfully setup pod.)Úconfig_fileÚosÚpathÚisfiler   r   Úcommand_fileÚcommandÚcommandsÚtpu_nameÚtpu_zoneÚaccelerate_versionÚ
isinstancer   r   Ú
ValueErrorÚopenÚreadÚ
splitlinesÚlistÚinstall_accelerateÚjoinÚ	use_alphaÚdebugÚprintÚ
subprocessÚrun)ÚargsÚdefaultsÚfÚcmdÚlineÚnew_cmds   &     r!   r   r   Z   s“  € Ø€Hð ×ÑÒ#¤r§w¡w§~¡~Ô6I×'JÒ'JÜ(¨×)9Ñ)9Ó:ˆØ× × Ð  X×%:Ñ%:Ò%FÈtÏ|Ï|È|Ø (× 5Ñ 5ˆDÔØ||ˆ| × 1Ñ 1Ò =Ø#×,Ñ,ˆDŒLØ}}ˆ}Ø$×-Ñ-ˆDŒMØ}}ˆ}Ø$×-Ñ-ˆDŒMØ×Ñ %Ô'Ø"UˆÕØ	×	 Ñ	  HÔ	,Ø"1ˆÕÜ	”E˜$×1Ñ1Ó2´G×	<Ò	<Ø$0°×1HÑ1HÐ0IÐ"JˆÔà××Ð T§\§\ \ÜÐaÓbÐbà××ÐÜ$×#Ñ#×$Ô$¨ØŸF™F›H×/Ñ/Ó1Ð2ˆDŒL÷ %ô $—,‘,˜q•/¤4×(Ò(Ø(,¯ªÔE© Â¸šÁ™©ÒEˆŒàÐ€GØ××ÐØl 4×#:Ñ#:Ð";Ð<Ð=Õ=ˆØ|‰|Õ€GØ—9‘9˜WÓ%€D„Lð ˆ*€CØ‡~‡~€~ØˆyÕˆØØØØØØ‰ØØ‰ØØ‰ØØðõ €Cð ‡z‡z€zÜ˜Ÿ™ #›˜Ð(Ô)ÙÜ‡N‚N3ÔÜ	Ð
#Ö$÷G %×$Ð$üó
 Fs   Ç%MÈ9M!ÍM	c                  óP   € \        4       p V P                  4       p\        V4       R # ©N)r"   Ú
parse_argsr   )r   rD   s     r!   ÚmainrM   ™   s    € ÜÓ!€FØ×ÑÓ€Dä˜Ör#   rK   )r   r.   rB   Úpackaging.versionr   r   Ú&accelerate.commands.config.config_argsr   r   r   r"   r   rM   © r#   r!   Ú<module>rQ      s/   ðó" Û 	Û ç ,ç ]ð c€ô:òz<%ô~r#   