Skip to content

Commit

Permalink
move ort training tests to onnxruntime-training
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Jan 13, 2025
1 parent 0a7a23d commit 64e9c86
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test_onnxruntime_training.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ jobs:
- name: Test with pytest (trainer)
run: |
RUN_SLOW=1 pytest tests/onnxruntime/training/test_trainer.py --durations=0 -s -vvvv
RUN_SLOW=1 pytest tests/onnxruntime-training/test_trainer.py --durations=0 -s -vvvv
env:
HF_DATASETS_TRUST_REMOTE_CODE: 1

- name: Test with pytest (examples)
run: |
RUN_SLOW=1 pytest tests/onnxruntime/training/test_examples.py --durations=0 -s -vvvv
RUN_SLOW=1 pytest tests/onnxruntime-training/test_examples.py --durations=0 -s -vvvv
env:
HF_DATASETS_TRUST_REMOTE_CODE: 1
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def test_trainer_fp16_ds_stage1(self, test_name, model_name, task, data_metric_c
weight_decay=self.weight_decay,
logging_dir=tmp_dir,
fp16=True,
deepspeed="tests/onnxruntime/ds_configs/ds_config_zero_stage_1.json",
deepspeed="tests/onnxruntime-training/ds_configs/ds_config_zero_stage_1.json",
)

trainer, _ = get_ort_trainer(
Expand Down Expand Up @@ -769,7 +769,7 @@ def test_trainer_fp16_ds_stage2(self, test_name, model_name, task, data_metric_c
weight_decay=self.weight_decay,
logging_dir=tmp_dir,
fp16=True,
deepspeed="tests/onnxruntime/ds_configs/ds_config_zero_stage_2.json",
deepspeed="tests/onnxruntime-training/ds_configs/ds_config_zero_stage_2.json",
)

trainer, _ = get_ort_trainer(
Expand Down

0 comments on commit 64e9c86

Please sign in to comment.