mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
enable tunableop by default
This commit is contained in:
parent
c36c7ec83b
commit
0d9b2f2541
@ -899,6 +899,8 @@ class FlashCausalLM(Model):
|
|||||||
os.environ.get("PYTORCH_TUNABLEOP_ENABLED") is None
|
os.environ.get("PYTORCH_TUNABLEOP_ENABLED") is None
|
||||||
or os.environ.get("PYTORCH_TUNABLEOP_ENABLED") == "1"
|
or os.environ.get("PYTORCH_TUNABLEOP_ENABLED") == "1"
|
||||||
):
|
):
|
||||||
|
torch.cuda.tunable.enable()
|
||||||
|
|
||||||
if os.environ.get("PYTORCH_TUNABLEOP_TUNING") != "0":
|
if os.environ.get("PYTORCH_TUNABLEOP_TUNING") != "0":
|
||||||
torch.cuda.tunable.tuning_enable(True)
|
torch.cuda.tunable.tuning_enable(True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user