Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 11, 2024
1 parent 23c791d commit 2f4d24f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1159,10 +1159,11 @@ class GaudiHFModelAdapter(HFLM):
def __init__(self, *args, **kwargs):
if kwargs["device"] == "hpu":
import habana_frameworks.torch.core as htcore

# Tweak generation so that it runs faster on Gaudi
from optimum.habana.transformers.modeling_utils import adapt_transformers_to_gaudi
adapt_transformers_to_gaudi()

adapt_transformers_to_gaudi()

super().__init__(*args, **kwargs)

Expand Down

0 comments on commit 2f4d24f

Please sign in to comment.