44 pull_request :
55 branches : ["main"]
66
7- image : " pytorchlightning/lightning-thunder:ubuntu24.04-cuda12.6.3-cudnn-fe1.10.0-py3.10-pt_2.7.1 -dev"
7+ image : " pytorchlightning/lightning-thunder:ubuntu24.04-cuda12.6.3-cudnn-fe1.10.0-py3.10-pt_2.8.0 -dev"
88machine : " L4_X_2"
99interruptible : " true"
1010timeout : " 45" # minutes
1919 NCCL_DEBUG : " INFO"
2020 CUBLAS_WORKSPACE_CONFIG : " :4096:8"
2121 NCCL_IGNORE_DISABLED_P2P : " 1"
22- TORCH_VERSION : " 2.7.1 "
22+ TORCH_VERSION : " 2.8.0 "
2323 RUN_ONLY_CUDA_TESTS : " 1" # run CUDA tests only
2424
2525run : |
3030 pip list
3131 set -ex
3232
33- pip install -q '.[extra,test]' "torch==${TORCH_VERSION}" cffi -U
33+ pip install -q '.[extra,test]' "torch==${TORCH_VERSION}" cffi -U --upgrade-strategy eager
3434
3535 if [ "${dependency}" == "compiler" ]; then
3636 pip uninstall -y torchvision torchaudio
@@ -41,17 +41,20 @@ run: |
4141
4242 pip list
4343 python -c "import torch ; gpus = torch.cuda.device_count() ; assert gpus >= 2, f'GPU: {gpus}'"
44- python -c "from torch import __version__ as ver ; assert str(ver).split('+')[0] == '$TORCH_VERSION', f'PyTorch: installed {ver} but expected $TORCH_VERSION'"
44+ python -c "from torch import __version__ as ver ; assert str(ver).split('+')[0] == '${ TORCH_VERSION} ', f'PyTorch: installed {ver} but expected ${ TORCH_VERSION} '"
4545
4646 pytest -v --durations=100
4747
4848 wget https://raw.githubusercontent.com/Lightning-AI/utilities/main/scripts/run_standalone_tests.sh
4949 PL_RUN_STANDALONE_TESTS=1 bash run_standalone_tests.sh "tests"
5050
5151 if [ "${dependency}" == "compiler" ]; then
52- pip uninstall -y lightning-thunder
52+ pip uninstall -y lightning-thunder transformers
5353 # install thunder from source, so that, thunder.tests will be available
5454 pip install -U "lightning-thunder[test] @ git+https://github.com/Lightning-AI/lightning-thunder.git" "torch==${TORCH_VERSION}"
55+ # Pin transformers to match thunder's test_networks.py requirements
56+ # See: https://github.com/Lightning-AI/lightning-thunder/blob/main/requirements/test.txt
57+ pip install transformers==4.52.4 # todo: find more robust way
5558 # without env var, it filters out all tests
5659 RUN_ONLY_CUDA_TESTS=0 pytest tests/ext_thunder/test_thunder_networks.py -v
5760 fi
0 commit comments