o
    ½Ù¾i^  ã                   @   s$   d dl Z dd„ Zdd„ Zdd„ ZdS )é    Nc                 C   s(   t jjj | |||||||||	|
¡ d S ©N)ÚtorchÚopsÚ
sgl_kernelÚ"es_fp8_blockwise_scaled_grouped_mmÚdefault)ÚoutputÚaÚbÚscales_aÚscales_bÚstride_aÚstride_bÚstride_dÚproblem_sizesÚexpert_offsetsÚ	workspace© r   úT/home/ubuntu/.local/lib/python3.10/site-packages/sgl_kernel/expert_specialization.pyr      s   
õr   c              
   C   s"   t jjj ||||| |||¡ d S r   )r   r   r   Ú%es_sm100_mxfp8_blockscaled_grouped_mmr   )r   r	   r
   ÚsfaÚsfbr   r   Úblockscale_offsetsr   r   r   r       s   
ÿr   c                 C   s   t jjj | |||||¡ d S r   )r   r   r   Ú(es_sm100_mxfp8_blockscaled_grouped_quantr   )Úinputr   r   r   Úquant_outputÚscale_factorr   r   r   r   (   s   
úr   )r   r   r   r   r   r   r   r   Ú<module>   s    