+
     °³jS	  ã                   óX   € ^ RI Ht ^ RIHt RtR tR	R ltR t]R8X  d
   ]! 4        R# R# )
é    )ÚCustomArgumentParser)Úmerge_fsdp_weightsa!  Utility to merge the weights from multiple FSDP checkpoints into a single combined checkpoint. Should be used if
`SHARDED_STATE_DICT` was used for the model. Weights will be saved to `{output_path}`.

This is a CPU-bound process and requires enough RAM to load the entire model state dict.c                 ó|   € \        V P                  V P                  V P                  '       * V P                  4       R # ©N)r   Úcheckpoint_directoryÚoutput_pathÚunsafe_serializationÚremove_checkpoint_dir)Úargss   &ÚZ/home/luca/screen-checking/.venv/lib/python3.14/site-packages/accelerate/commands/merge.pyÚmerge_commandr      s/   € ÜØ×!Ñ! 4×#3Ñ#3¸×9RÑ9RÔ5RÐTX×TnÑTnöó    Nc                 óF  € V e   V P                  R\        R7      pM\        \        R7      pVP                  R\        RR7       VP                  R\        RR7       VP                  RR	R
RR7       VP                  RR	RR
R7       V e   VP                  \        R7       V# )Nzmerge-weights)Údescriptionr   z5A directory containing sharded weights saved by FSDP.)ÚtypeÚhelpr   zHThe path to save the merged weights. Defaults to the current directory. z--unsafe_serializationÚ
store_trueFzZWhether to save the merged weights as `.bin` rather than `.safetensors` (not recommended).)ÚactionÚdefaultr   z--remove_checkpoint_dirz9Whether to remove the checkpoint directory after merging.)r   r   r   )Úfunc)Ú
add_parserr   r   Úadd_argumentÚstrÚset_defaultsr   )Ú
subparsersÚparsers   & r   Úmerge_command_parserr       sº   € ØÒØ×&Ñ& ÄKÐ&ÓP‰ä%´+Ô>ˆà
×ÑÐ.´SÐ?vÐÔwØ
×ÑØÜØWð ô ð
 ×ÑØ ØØØið	 ô ð ×ÑØ!ØØHØð	 ô ð ÒØ×Ñ¤ÐÔ/Ø€Mr   c                  óP   € \        4       p V P                  4       p\        V4       R # r   )r   Ú
parse_argsr   )r   r   s     r   Úmainr    >   s    € Ü!Ó#€FØ×ÑÓ€DÜ�$Ör   Ú__main__r   )	Úaccelerate.commands.utilsr   Úaccelerate.utilsr   r   r   r   r    Ú__name__© r   r   Ú<module>r&      s8   ðõ  ;Ý /ð\€òôò<ð ˆzÔÙ†Fñ r   