[ROCm] triton+triton_kernels 3.8 mxfp4 MoE support (gpt-oss + DeepSeek-V4) (#55934)
Signed-off-by: Rohan Potdar <rohan.potdar@amd.com> Signed-off-by: Rohan138 <rohanpotdar138@gmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: Matt <156021403+mawong-amd@users.noreply.github.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
Matt
parent
95f4925c3a
commit
3e267bae70
@@ -17,14 +17,19 @@ from vllm.model_executor.layers.quantization.utils.ocp_mx_utils import (
|
||||
)
|
||||
from vllm.model_executor.layers.quantization.utils.quant_utils import GroupShape
|
||||
from vllm.platforms import current_platform
|
||||
from vllm.utils.import_utils import has_triton_kernels
|
||||
from vllm.utils.import_utils import get_triton_kernels_version
|
||||
from vllm.utils.math_utils import cdiv
|
||||
|
||||
logger = init_logger(__name__)
|
||||
|
||||
if has_triton_kernels():
|
||||
_triton_kernels_version = get_triton_kernels_version()
|
||||
|
||||
if _triton_kernels_version is not None:
|
||||
try:
|
||||
from triton_kernels.matmul_ogs import PrecisionConfig
|
||||
if _triton_kernels_version == "3.8":
|
||||
from triton_kernels.matmul import PrecisionConfig
|
||||
else:
|
||||
from triton_kernels.matmul_ogs import PrecisionConfig
|
||||
except (ImportError, AttributeError) as e:
|
||||
logger.error(
|
||||
"Failed to import Triton kernels. Please make sure your triton "
|
||||
|
||||
Reference in New Issue
Block a user