Skip to content

Commit

Permalink
revert config files + address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
younesbelkada committed Jan 15, 2024
1 parent 57d1401 commit 7f9762f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 22 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/slow-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,7 @@ jobs:
if: always()
run: |
source activate trl
make slow_sft_tests
- name: Run slow DPO tests on single GPU
if: always()
run: |
source activate trl
make slow_dpo_tests
make slow_tests
- name: Generate Report
if: always()
Expand Down Expand Up @@ -79,13 +73,7 @@ jobs:
if: always()
run: |
source activate trl
make slow_sft_tests
- name: Run slow DPO tests on Multi GPU
if: always()
run: |
source activate trl
make slow_dpo_tests
make slow_tests
- name: Run end-to-end SFT examples tests on multi GPU
if: always()
Expand Down
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ benchmark_aux:
tests_common_gpu:
python -m pytest tests/test_* $(if $(IS_GITHUB_CI),--report-log "common_tests.log",)

slow_sft_tests:
python -m pytest tests/slow/test_sft_slow.py $(if $(IS_GITHUB_CI),--report-log "sft_slow.log",)

slow_dpo_tests:
python -m pytest tests/slow/test_dpo_slow.py $(if $(IS_GITHUB_CI),--report-log "dpo_slow.log",)
slow_tests:
python -m pytest tests/slow/test_* $(if $(IS_GITHUB_CI),--report-log "slow_tests.log",)

run_sft_examples:
touch temp_results_sft_tests.txt
Expand Down
1 change: 1 addition & 0 deletions commands/run_dpo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ fi
CMD="""
accelerate launch $EXTRA_ACCELERATE_ARGS \
--num_processes $NUM_GPUS \
--mixed_precision 'fp16' \
`pwd`/examples/scripts/dpo.py \
--model_name_or_path $MODEL_NAME \
--output_dir $OUTPUT_DIR \
Expand Down
1 change: 1 addition & 0 deletions commands/run_sft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ fi
CMD="""
accelerate launch $EXTRA_ACCELERATE_ARGS \
--num_processes $NUM_GPUS \
--mixed_precision 'fp16' \
`pwd`/examples/scripts/sft.py \
--model_name $MODEL_NAME \
--dataset_name $DATASET_NAME \
Expand Down
2 changes: 1 addition & 1 deletion examples/accelerate_configs/deepspeed_zero1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ distributed_type: DEEPSPEED
downcast_bf16: 'no'
machine_rank: 0
main_training_function: main
mixed_precision: 'fp16'
mixed_precision: 'bf16'
num_machines: 1
num_processes: 8
rdzv_backend: static
Expand Down
2 changes: 1 addition & 1 deletion examples/accelerate_configs/deepspeed_zero2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ distributed_type: DEEPSPEED
downcast_bf16: 'no'
machine_rank: 0
main_training_function: main
mixed_precision: 'fp16'
mixed_precision: 'bf16'
num_machines: 1
num_processes: 8
rdzv_backend: static
Expand Down
2 changes: 1 addition & 1 deletion examples/accelerate_configs/deepspeed_zero3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ distributed_type: DEEPSPEED
downcast_bf16: 'no'
machine_rank: 0
main_training_function: main
mixed_precision: 'fp16'
mixed_precision: 'bf16'
num_machines: 1
num_processes: 8
rdzv_backend: static
Expand Down

0 comments on commit 7f9762f

Please sign in to comment.