Skip to content

Commit cfdbea6

Browse files
yhl-amdclaude
andcommitted
style: sort imports in activation.py (ruff I001)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 6b86c65 commit cfdbea6

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎atom/model_ops/activation.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
from typing import Optional
66

77
import torch
8-
from torch import nn
98
import torch.nn.functional as F
10-
from aiter import silu_and_mul
11-
from atom.config import QuantizationConfig
12-
from atom.quant_spec import LayerQuantConfig
13-
from aiter.jit.utils.torch_guard import torch_compile_guard
14-
159
from aiter import (
1610
QuantType,
1711
dtypes,
12+
silu_and_mul,
1813
)
14+
from aiter.jit.utils.torch_guard import torch_compile_guard
15+
from torch import nn
16+
17+
from atom.config import QuantizationConfig
18+
from atom.quant_spec import LayerQuantConfig
1919

2020

2121
def mxfp4_act_mul_quant_fuse_fake(
@@ -128,10 +128,10 @@ def forward(
128128
) -> torch.Tensor | tuple[torch.Tensor, torch.Tensor]:
129129
# fp8 quantization
130130
if x_scale is not None and self.fused_quant:
131+
import aiter as rocm_aiter
131132
from aiter.ops.triton.fused_fp8_quant import (
132133
fused_silu_mul_fp8_per_tensor_static_quant,
133134
)
134-
import aiter as rocm_aiter
135135

136136
rocm_aiter_fp8_dtype = rocm_aiter.dtypes.fp8
137137

0 commit comments

Comments
 (0)