Skip to content

Commit eda9fcf

Browse files
committed
fix: Huggingface glue failing tests
1 parent ae50026 commit eda9fcf

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
datasets==2.16.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
transformers<=4.28.1
2-
datasets<=2.12.0
2+
datasets==2.16.1

tests/integ/test_huggingface.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def test_huggingface_training(
7171

7272
hf = HuggingFace(
7373
py_version=huggingface_pytorch_latest_training_py_version,
74-
entry_point=os.path.join(data_path, "run_glue.py"),
74+
source_dir=data_path,
75+
entry_point="run_glue.py",
7576
role="SageMakerRole",
7677
transformers_version=huggingface_training_latest_version,
7778
pytorch_version=huggingface_training_pytorch_latest_version,

tests/integ/test_huggingface_torch_distributed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def test_huggingface_torch_distributed_g5_glue(
2424
huggingface_pytorch_latest_training_py_version,
2525
):
2626
with timeout.timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
27-
data_path = os.path.join(DATA_DIR, "huggingface")
2827
estimator = HuggingFace(
2928
py_version=huggingface_pytorch_latest_training_py_version,
30-
entry_point=os.path.join(data_path, "run_glue.py"),
29+
source_dir=os.path.join(DATA_DIR, "huggingface"),
30+
entry_point="run_glue.py",
3131
role="SageMakerRole",
3232
transformers_version=huggingface_training_latest_version,
3333
pytorch_version=huggingface_training_pytorch_latest_version,

0 commit comments

Comments
 (0)