Skip to content

Commit ee90d15

Browse files
authored
fix
1 parent 5e4d422 commit ee90d15

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lightllm/common/triton_utils/autotuner.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,9 @@ def __call__(self, *args, **kwargs):
160160
all_configs = self.cached_configs.get(static_key, {})
161161
for run_config in all_configs.values():
162162
# warmup all configs
163-
ori_config = kwargs.get("run_config")
164-
kwargs["run_config"] = run_config
165-
self.kernel_warmup(static_key, *args, **kwargs)
166-
kwargs["run_config"] = ori_config
163+
_copy_kwargs = kwargs.copy()
164+
_copy_kwargs["run_config"] = run_config
165+
self.kernel_warmup(static_key, *args, **_copy_kwargs)
167166

168167
if static_key not in self.cached_configs and autotune_level == AutotuneLevel.USE_AUTOTUNE_HIS_CONFIG:
169168
if (dist.is_initialized() and get_current_rank_in_node() == 0) or not dist.is_initialized():

0 commit comments

Comments
 (0)