Skip to content

Commit e71b5ae

Browse files
committed
[CI] LLM tests integration
ghstack-source-id: 633f090 Pull-Request: #3216
1 parent 47ad9d8 commit e71b5ae

File tree

7 files changed

+7
-16
lines changed

7 files changed

+7
-16
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: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ permissions:
2121

2222
jobs:
2323
unittests:
24+
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ', '), 'llm/')) }}
2425
strategy:
2526
matrix:
2627
python_version: ["3.9"]
2728
cuda_arch_version: ["12.8"]
2829
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
2930
with:
3031
repository: pytorch/rl
31-
runner: "linux.g5.4xlarge.nvidia.gpu"
32+
runner: "linux.g6.4xlarge.experimental.nvidia.gpu"
3233
# gpu-arch-type: cuda
3334
# gpu-arch-version: "11.7"
3435
docker-image: "nvidia/cudagl:11.4.0-base"
@@ -50,7 +51,7 @@ jobs:
5051
export TF_CPP_MIN_LOG_LEVEL=0
5152
export TD_GET_DEFAULTS_TO_NONE=1
5253
53-
bash .github/unittest/linux_libs/scripts_llm/setup_env.sh
54-
bash .github/unittest/linux_libs/scripts_llm/install.sh
55-
bash .github/unittest/linux_libs/scripts_llm/run_test.sh
56-
bash .github/unittest/linux_libs/scripts_llm/post_process.sh
54+
bash .github/unittest/llm/scripts_llm/setup_env.sh
55+
bash .github/unittest/llm/scripts_llm/install.sh
56+
bash .github/unittest/llm/scripts_llm/run_test.sh
57+
bash .github/unittest/llm/scripts_llm/post_process.sh

0 commit comments

Comments
 (0)