Skip to content

Commit 82058f5

Browse files
authored
fix
1 parent 563b8ea commit 82058f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightllm/common/basemodel/basemodel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ def autotune_layers(self):
732732
@torch.no_grad()
733733
@post_empty_cache
734734
def _autotune_warmup(self):
735-
if get_triton_autotune_level() in [AutotuneLevel.NO_AUTOTUNE, AutotuneLevel.CLOSE_AUTOTUNE]:
735+
if get_triton_autotune_level() in [AutotuneLevel.ADAPTIVE_AUTOTUNE, AutotuneLevel.FORCE_AUTOTUNE]:
736736
return
737737

738738
torch.distributed.barrier()
@@ -795,7 +795,7 @@ def _autotune_warmup(self):
795795
torch.cuda.empty_cache()
796796
self.layers_num = layer_num_bak
797797
torch.distributed.barrier()
798-
set_triton_autotune_level(AutotuneLevel.NO_AUTOTUNE)
798+
set_triton_autotune_level(AutotuneLevel.USE_AUTOTUNE_HIS_CONFIG)
799799

800800
@final
801801
@torch.no_grad()

0 commit comments

Comments
 (0)