Skip to content

Commit

Permalink
Merge branch 'main' into synapse_1_20
Browse files Browse the repository at this point in the history
  • Loading branch information
regisss committed Mar 7, 2025
2 parents 81f33ed + 93ade6a commit 73dd3ed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,11 @@ def pytest_sessionstart(session):
device = "gaudi2" if os.environ["GAUDI2_CI"] == "1" else "gaudi1"
# Try to automatically detect it
else:
import habana_frameworks.torch.hpu as torch_hpu
from optimum.habana.utils import get_device_name

name = torch_hpu.get_device_name().strip()
if not name:
raise RuntimeError("Expected a Gaudi device but did not detect one.")
device = name.split()[-1].lower()
device = get_device_name()

# torch_hpu.get_device_name() returns GAUDI for G1
# optimum.habana.utils.get_device_name() returns `gaudi` for G1
if "gaudi" == device:
# use "gaudi1" since this is used in tests, baselines, etc.
device = "gaudi1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
datasets
datasets <= 2.19.2
peft
Original file line number Diff line number Diff line change
@@ -1 +1 @@
datasets
datasets <= 2.19.2
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
datasets
datasets <= 2.19.2
peft

0 comments on commit 73dd3ed

Please sign in to comment.