Skip to content

Commit d9bf753

Browse files
authored
[tests] Add 'save_strategy="no"' in tests to counteract transformers v4.48.0 bug (#582)
1 parent 301603b commit d9bf753

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/span/test_model_card.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def test_model_card(absa_dataset: Dataset, tmp_path: Path) -> None:
2626
logging_steps=1,
2727
max_steps=2,
2828
eval_strategy="steps",
29+
save_strategy="no",
2930
)
3031
trainer = AbsaTrainer(
3132
model=model,

tests/test_model_card.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def test_model_card(tmp_path: Path) -> None:
3636
logging_steps=1,
3737
max_steps=2,
3838
eval_strategy="steps",
39+
save_strategy="no",
3940
)
4041
trainer = Trainer(
4142
model=model,

0 commit comments

Comments
 (0)