File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lightllm/common/basemodel Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments