+
    &j                        a  R t0 t ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIt^ RI	H
t
 ^ RIHtHtHtHt . t] ^ k ] ! R R4      4       t]
P$                  ! ].4        ! R R	4      t]]3R
 R lltRRR/R R llltR# )    N)	dataclassBufferedIOBase)Any)_load_saveDEFAULT_PROTOCOLMAP_LOCATIONc                   ,   a  ] tR t^t o V 3R ltRtV tR# )_Entryc                >   < V ^8  d   Qh/ S[ ;R&   S[;R&   S[;R&   # )   key
is_storagelength)strboolint)format__classdict__s   "x/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/torch/distributed/_serialization.py__annotate___Entry.__annotate__   s(     	H    K	      N)__name__
__module____qualname____firstlineno____annotate_func____static_attributes____classdictcell__r   s   @r   r   r      s      r   r   c                      a  ] tR t^t o V 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R	 lR
 ltV 3R lR lt	V 3R lR lt
V 3R lR ltRtV tR# )_PseudoZipFilec                   < V ^8  d   QhRR/# )r   returnNr   )r   r   s   "r   r   _PseudoZipFile.__annotate__   s     9 9$ 9r   c                    / V n         R # Nrecordsselfs   &r   __init___PseudoZipFile.__init__   s	    68r   c                0   < V ^8  d   QhRS[ RS[RS[RR/# )r   r   datar   r'   N)r   objectr   )r   r   s   "r   r   r(      s)     + + +6 +3 +4 +r   c                &    W#3V P                   V&   R # r*   r+   )r.   r   r2   r   s   &&&&r   write_record_PseudoZipFile.write_record   s    !NSr   c                $   < V ^8  d   QhRS[ RR/# r   fr'   Nr   )r   r   s   "r   r   r(      s     ? ?. ?T ?r   c           
        . pV P                   P                  4        F=  w  pw  rEVP                  \        V\	        V\
        P                  4      VR 7      4       K?  	  \        P                  ! W!\        R7       V P                   P                  4        F  w  rF\	        V\        4      '       d   VP                  V4       K.  \	        V\        4      '       d#   VP                  VP                  R4      4       Kf  \	        V\
        P                  4      '       d   VP                  VRR^4       K  \!        R\#        V4       24      h	  R# ))r   r   r   )protocolutf-8Fzunknown type: N)r,   itemsappendr   
isinstancetorchUntypedStoragepickledumpr	   valuesbyteswriter   encode_write_file	TypeErrortype)r.   r9   entriesr   r2   r   _s   &&     r   write_to_PseudoZipFile.write_to   s    #'<<#5#5#7C$NN)$0D0DE! $8 	G)9:||**,GD$&&D#&&G,-D%"6"677  E5!4.d =>> -r   c                $   < V ^8  d   QhRS[ RR/# r8   r   )r   r   s   "r   r   r(   6   s     ? ?> ?d ?r   c                   \         P                  ! V4      pV F  pVP                  VP                  4      pVP                  '       d   VP                  ^ 8X  d   \
        P                  ! ^ 4      pM4\
        P                  ! V\
        P                  R7      P                  4       pVVP                  3V P                  VP                  &   K  WCP                  3V P                  VP                  &   K  	  R# )r   dtypeN)_weights_only_unpicklerloadreadr   r   r@   rA   
frombufferuint8untyped_storager,   r   )r.   r9   rK   entryr2   storages   &&    r   	read_from_PseudoZipFile.read_from6   s    )..q1E66%,,'D<<1$#2215G#..#kk &o'  LL+UYY'
 ,0*>UYY'! r   c                &   < V ^8  d   QhRS[ RS[/# r   r   r'   )r   r   )r   r   s   "r   r   r(   K   s     # #c #d #r   c                    WP                   9   # r*   r+   r.   r   s   &&r   
has_record_PseudoZipFile.has_recordK   s    ll""r   c                &   < V ^8  d   QhRS[ RS[/# r^   )r   r3   )r   r   s   "r   r   r(   N   s     $ $c $f $r   c                6    V P                   V,          ^ ,          # )r   r+   r`   s   &&r   
get_record_PseudoZipFile.get_recordN   s    ||C ##r   c                F   < V ^8  d   QhRS[ RS[RS[RS[P                  /# )r   r   _length_typer'   )r   r   r@   Tensor)r   r   s   "r   r   r(   Q   s7     E EE!$E-0E	Er   c                ~    \         P                  ! V P                  V,          ^ ,          \         P                  R7      # )r   rQ   )r@   tensorr,   rW   )r.   r   rh   ri   s   &&&&r   get_storage_from_record&_PseudoZipFile.get_storage_from_recordQ   s'     ||DLL-a0DDr   c                    < V ^8  d   QhRS[ /# )r   r'   )r   )r   r   s   "r   r   r(   V   s      # r   c                    R # )torchftr   r-   s   &r   serialization_id_PseudoZipFile.serialization_idV   s    r   r+   N)r   r   r   r   r/   r5   rM   r[   ra   re   rm   rr   r!   r"   r#   s   @r   r%   r%      sW     9 9+ +? ?.? ?*# #$ $E E
 r   r%   c          
      L    V ^8  d   QhR\         R\        R\        R\        RR/# )r   objr9   pickle_modulepickle_protocolr'   N)r3   r   r   r   )r   s   "r   r   r   Z   s:      	  	
 
r   c                \    \        4       p\        V VVVRR7       VP                  V4       R# )a  
Save the object to a file-like object in a streaming fashion compatible with
network sockets.

This behaves similarly to :func:`torch.save` with a few notable differences:

* A non-seekable file like object can be used when loading.
* No forwards/backwards compatibility is provided for the serialization
  format. This is only intended to be used with a single version of PyTorch
  with transient storage (i.e. sockets or temp files).
* mmap is not supported

See :func:`torch.save` for more details on specific arguments.
F)zip_filerv   rw   _disable_byteorder_recordN)r%   r   rM   )ru   r9   rv   rw   ry   s   &&&& r   _streaming_saver{   Z   s3    * H	#'"' ar   weights_onlyTc                `    V ^8  d   QhR\         R\        R\        R\        R\        R\        /# )r   r9   map_locationrv   r|   pickle_load_argsr'   )r   r
   r   r   r3   )r   s   "r   r   r   z   sD     $ $$$ $
 $ $ $r   c          	         V'       d   Ve   \        R4      h\        pM
Vf   \        pRV9  d   RVR&   \        4       pVP	                  V 4       \        RRVRVRV/VB # )z
Load the object from a file-like object in a streaming fashion compatible with
network sockets.

See :func:`_streaming_save` for more details about the streaming behavior.

See :func:`torch.load` for more details on specific arguments.
zDCan not safely load weights when explicit pickle_module is specifiedencodingr<   ry   r~   rv   r   )RuntimeErrorrS   rB   r%   r[   r   )r9   r~   rv   r|   r   ry   s   &&&$, r   _streaming_loadr   z   s      $V  0 "M))'.$Hq ! $ 	 r   c                V    V ^8  d   Qh/ ^ \         9   d   \        \        ,          ;R&   # )r   __all__)__conditional_annotations__listr   )r   s   "r   r   r      s      c  r   )NN)r   rB   dataclassesr   ior   typingr   r@   torch._weights_only_unpicklerrS   torch.serializationr   r   r	   r
   r   r   _add_safe_globalsr%   r{   r   r   )r   s   @r   <module>r      s     !    ? L L       ) )6( 3? ?J  +	@$
 $ $r   