Skip to content

Commit 160f732

Browse files
committed
[CI] LLM tests integration
ghstack-source-id: 5f47a70 Pull-Request: #3216
1 parent 47ad9d8 commit 160f732

File tree

7 files changed

+3
-12
lines changed

7 files changed

+3
-12
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ 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"]
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"

0 commit comments

Comments
 (0)