Skip to content

Commit

Permalink
import triton files when triton is supported and installed
Browse files Browse the repository at this point in the history
  • Loading branch information
oelayan7 committed Feb 1, 2025
1 parent 241bffd commit ec8e8e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from deepspeed.ops.transformer.inference.op_binding.workspace import WorkspaceOp
from deepspeed.accelerator import get_accelerator
import deepspeed
if deepspeed.HAS_TRITON:
if deepspeed.HAS_TRITON and get_accelerator().is_triton_supported():
from deepspeed.ops.transformer.inference.triton.mlp import TritonMLP
from deepspeed.ops.transformer.inference.triton.attention import TritonSelfAttention

Expand Down

0 comments on commit ec8e8e1

Please sign in to comment.