File tree Expand file tree Collapse file tree 4 files changed +1
-139
lines changed Expand file tree Collapse file tree 4 files changed +1
-139
lines changed Original file line number Diff line number Diff 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 : |
Original file line number Diff line number Diff line change 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
33check_dirs := examples tests trl
44
55ACCELERATE_CONFIG_PATH = ` pwd ` /examples/accelerate_configs
6- COMMAND_FILES_PATH = ` pwd ` /commands
76
87test :
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:
1615slow_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-
3218test_experimental :
3319 pytest -k " experimental"
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments