+
    "Ý³jå  ã                   ór   € R t ^ RIHtHtHt ^ RIt^ RIHt ] ! R R]4      4       t] ! R R]4      4       t	R# )z7Protocols for some functionalities in tensor subclasses)ÚOptionalÚProtocolÚruntime_checkableN©ÚQuantizeTensorKwargsc                   ó0   a € ] tR t^t o RtV 3R ltRtV tR# )ÚSupportsActivationPreScalinga  Protocol for activation scale that should be multiplied with activation before quantization,
or before we use activation in matrix multiplications, used for algorithms like AWQ

A class that have `act_pre_scale: Optional[torch.Tensor]` attribute implements the Protocol
c                óJ   <€ V ^8„  d   Qh/ S[ S[P                  ,          ;R&   # )é   Úact_pre_scale©r   ÚtorchÚTensor)ÚformatÚ__classdict__s   "€Úo/home/luca/screen-checking/.venv/lib/python3.14/site-packages/torchao/quantization/quantize_/common/protocol.pyÚ__annotate__Ú)SupportsActivationPreScaling.__annotate__   s   ø‡ ‚ ñ ™EŸL™LÕ)Ñ)ò ó    © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__©r   s   @r   r   r      s   ø‡ € ñ÷ ƒ r   r   c                   óB   a € ] tR t^t o RtV 3R lR ltV 3R ltRtV tR# )ÚIsStaticQuantizationConfigzÊProtocol for static quantization configuration.

A class that has `act_quant_scale: Optional[torch.Tensor]` attribute and
`get_act_quant_kwargs() -> QuantizeTensorKwargs` method implements the Protocol
c                ó    <€ V ^8„  d   QhRS[ /# )r
   Úreturnr   )r   r   s   "€r   r   Ú'IsStaticQuantizationConfig.__annotate__'   s   ø€ ×?Ñ?Ñ&:Ñ?r   c                ó   € R # )Nr   )Úselfs   &r   Úget_act_quant_kwargsÚ/IsStaticQuantizationConfig.get_act_quant_kwargs'   s   € ¹Cr   c                óJ   <€ V ^8„  d   Qh/ S[ S[P                  ,          ;R&   # )r
   Úact_quant_scaler   )r   r   s   "€r   r   r#      s   ø‡ ‚ ñ ™eŸl™lÕ+Ñ+ò r   r   N)	r   r   r   r   r   r&   r   r   r   r   s   @r   r    r       s   ø‡ € ñ÷ @Ð?÷ ƒ r   r    )
r   Útypingr   r   r   r   Ú<torchao.quantization.quantize_.common.quantize_tensor_kwargsr   r   r    r   r   r   Ú<module>r,      sQ   ðñ >ç 8Ñ 8ã õð
 ô* 8ó *ó ð*ð ô	@ ó 	@ó ò	@r   