
    ?Ki                     ^    S r SSKJr  \" 5       (       a  SSKJr  SSKJr  SSKJr  S\4S jrg)	zFP-Quant integration file   )is_fp_quant_available    )FPQuantConfig)FPQuantDtypeconfigc                    U R                   S:X  a  [        R                  nO9U R                   S:X  a  [        R                  nO[	        SU R                    35      eU R
                  S:X  a  [        R                  nO[	        SU R
                   35      e[        UU R                  UU R                  U R                  U R                  U R                  U R                  S9$ )Nmxfp4nvfp4zUnsupported forward dtype: bf16zUnsupported backward dtype: )forward_dtypeforward_methodbackward_dtypestore_master_weightshadamard_group_sizepseudoquantizationtransform_initmodules_to_not_convert)r   r   MXFP4NVFP4
ValueErrorr   BF16FPQuantLinearConfigr   r   r   r   r   r   )r   r   r   s      d/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/transformers/integrations/fp_quant.pyadapt_fp_quant_configr      s    w&$**				($**6v7K7K6LMNN&%**78M8M7NOPP#,,%#88"66!44,,%<<	 	    N)	__doc__utilsr   fp_quantr   r   r   &transformers.utils.quantization_configr    r   r   <module>r!      s/    
 =% @- r   