Skip to content

Commit d5230e9

Browse files
committed
fix
1 parent 101679c commit d5230e9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lightllm/common/fused_moe/moe_silu_and_mul.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import triton
44
import triton.language as tl
55
from .moe_silu_and_mul_config import MoeSiluAndMulKernelConfig
6-
from lightllm.common.triton_utils.autotuner import autotune, closest_pow_of_2
6+
from lightllm.common.triton_utils.autotuner import autotune
77

88

99
@triton.jit
@@ -81,7 +81,7 @@ def _get_silu_and_mul_static_key(input: torch.Tensor, output: torch.Tensor):
8181
kernel_name="silu_and_mul_fwd:v1",
8282
configs_gen_func=_get_silu_and_mul_configs,
8383
static_key_func=_get_silu_and_mul_static_key,
84-
run_key_func=lambda input: closest_pow_of_2(input.shape[0]),
84+
run_key_func=lambda input: input.shape[0],
8585
mutates_args=["output"],
8686
)
8787
def silu_and_mul_fwd(input: torch.Tensor, output: torch.Tensor, run_config=None):

lightllm/common/fused_moe/moe_sum_reduce.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import triton.language as tl
55
from .moe_sum_recude_config import MoeSumReduceKernelConfig
66
from typing import Any, Callable, Dict, Optional, Tuple
7-
from lightllm.common.triton_utils.autotuner import autotune, closest_pow_of_2
7+
from lightllm.common.triton_utils.autotuner import autotune
88

99

1010
@triton.jit
@@ -66,7 +66,7 @@ def _get_moe_sum_reduce_configs():
6666
kernel_name="moe_sum_reduce:v1",
6767
configs_gen_func=_get_moe_sum_reduce_configs,
6868
static_key_func=_get_moe_sum_reduce_static_key,
69-
run_key_func=lambda input: closest_pow_of_2(input.shape[0]),
69+
run_key_func=lambda input: input.shape[0],
7070
mutates_args=["output"],
7171
)
7272
def moe_sum_reduce(input: torch.Tensor, output: torch.Tensor, run_config: Dict = None):

lightllm/common/quantization/triton_quant/fp8/fp8w8a8_block_gemm_kernel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from functools import lru_cache
88
from typing import Any, Dict, List, Optional, Tuple
99
from triton import Config
10-
from lightllm.common.triton_utils.autotuner import autotune, closest_pow_of_2
10+
from lightllm.common.triton_utils.autotuner import autotune
1111

1212

1313
class Fp8BlockMMKernelConfig(KernelConfigs):

lightllm/models/deepseek2/triton_kernel/rotary_emb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import triton
44
import triton.language as tl
55
import itertools
6-
from lightllm.common.triton_utils.autotuner import autotune, closest_pow_of_2
6+
from lightllm.common.triton_utils.autotuner import autotune
77

88

99
@triton.jit

0 commit comments

Comments
 (0)