Skip to content

Commit f5920a5

Browse files
committed
Update
[ghstack-poisoned]
1 parent 969a3e7 commit f5920a5

File tree

7 files changed

+2
-11
lines changed

7 files changed

+2
-11
lines changed

.github/unittest/linux_libs/scripts_llm/run_test.sh renamed to .github/unittest/llm/scripts_llm/run_test.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,4 @@ lib_dir="${env_dir}/lib"
2323

2424
conda deactivate && conda activate ./env
2525

26-
python -c "import transformers, datasets"
27-
28-
pytest test/test_rlhf.py --instafail -v --durations 200 --capture no --error-for-skips
29-
30-
python examples/rlhf/train_rlhf.py \
31-
sys.device=cuda:0 sys.ref_device=cuda:0 \
32-
model.name_or_path=gpt2 train.max_epochs=2 \
33-
data.batch_size=2 train.ppo.ppo_batch_size=2 \
34-
train.ppo.ppo_num_epochs=1 reward_model.name_or_path= \
35-
train.ppo.episode_length=8 train.ppo.num_rollouts_per_epoch=4 \
36-
data.block_size=110 io.logger=csv
26+
pytest test/llm -vvv --instafail --durations 600 --capture no --error-for-skips

.github/workflows/test-linux-llm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ permissions:
2121

2222
jobs:
2323
unittests:
24+
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'llm/') }}
2425
strategy:
2526
matrix:
2627
python_version: ["3.9"]

0 commit comments

Comments
 (0)