Skip to content

Commit 31caf64

Browse files
Remove unused commands directory (#4258)
Co-authored-by: behroozazarkhalili <ermiaazarkhalili>
1 parent 8e2d551 commit 31caf64

File tree

4 files changed

+1
-139
lines changed

4 files changed

+1
-139
lines changed

.github/workflows/slow-tests.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,6 @@ jobs:
102102
source .venv/bin/activate
103103
make slow_tests
104104
105-
- name: Run end-to-end examples tests on multi GPU
106-
if: always()
107-
run: |
108-
source .venv/bin/activate
109-
uv pip install deepspeed
110-
make test_examples
111-
112105
- name: Generate Reports
113106
if: always()
114107
run: |

Makefile

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
.PHONY: test precommit common_tests slow_tests test_examples tests_gpu test_experimental
1+
.PHONY: test precommit common_tests slow_tests tests_gpu test_experimental
22

33
check_dirs := examples tests trl
44

55
ACCELERATE_CONFIG_PATH = `pwd`/examples/accelerate_configs
6-
COMMAND_FILES_PATH = `pwd`/commands
76

87
test:
98
pytest -n auto -m "not slow and not low_priority" -s -v --reruns 5 --reruns-delay 1 --only-rerun '(OSError|Timeout|HTTPError.*502|HTTPError.*504||not less than or equal to 0.01)' tests/
@@ -16,18 +15,5 @@ precommit:
1615
slow_tests:
1716
pytest -m "slow" tests/ $(if $(IS_GITHUB_CI),--report-log "slow_tests.log",)
1817

19-
test_examples:
20-
touch temp_results_sft_tests.txt
21-
for file in $(ACCELERATE_CONFIG_PATH)/*.yaml; do \
22-
TRL_ACCELERATE_CONFIG=$${file} bash $(COMMAND_FILES_PATH)/run_sft.sh; \
23-
echo $$?','$${file} >> temp_results_sft_tests.txt; \
24-
done
25-
26-
touch temp_results_dpo_tests.txt
27-
for file in $(ACCELERATE_CONFIG_PATH)/*.yaml; do \
28-
TRL_ACCELERATE_CONFIG=$${file} bash $(COMMAND_FILES_PATH)/run_dpo.sh; \
29-
echo $$?','$${file} >> temp_results_dpo_tests.txt; \
30-
done
31-
3218
test_experimental:
3319
pytest -k "experimental"

commands/run_dpo.sh

Lines changed: 0 additions & 58 deletions
This file was deleted.

commands/run_sft.sh

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)