enable tunableop by default

This commit is contained in:
fxmarty 2024-06-06 14:02:50 +00:00
parent c36c7ec83b
commit 0d9b2f2541

View File

@ -899,6 +899,8 @@ class FlashCausalLM(Model):
os.environ.get("PYTORCH_TUNABLEOP_ENABLED") is None
or os.environ.get("PYTORCH_TUNABLEOP_ENABLED") == "1"
):
torch.cuda.tunable.enable()
if os.environ.get("PYTORCH_TUNABLEOP_TUNING") != "0":
torch.cuda.tunable.tuning_enable(True)