o
    Ti                     @   s   d dl Z dd Zdd ZdS )    Nc                 C   s@   ddl m} |  st| ||||S ddlm} || |||S )Nr   )get_accelerator   )matmul_fp8_triton)	deepspeedr   is_triton_supportedmatmul_fp8_fallbackfp8_gemm_tritonr   )inpweightscalequantization_group_size	quantizerr   r    r   W/home/ubuntu/.local/lib/python3.10/site-packages/deepspeed/ops/fp_quantizer/fp8_gemm.py
matmul_fp8   s
   
r   c                 C   s   t | |j||dS )N)r   )torchmatmul
dequantize)r	   r
   r   r   r   r   r   r   r      s   r   )r   r   r   r   r   r   r   <module>   s   