Skip to content

Commit 44abb82

Browse files
committed
debug import torch timing
1 parent e9d067c commit 44abb82

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ jobs:
4646
- name: Check GPU and PyTorch
4747
run: |
4848
nvidia-smi
49-
python -c "import torch; print(f'PyTorch: {torch.__version__}, CUDA: {torch.cuda.is_available()}, version: {torch.version.cuda}')"
49+
echo "Timing PyTorch import..."
50+
time python -c "import torch; print(f'PyTorch: {torch.__version__}, CUDA: {torch.cuda.is_available()}, version: {torch.version.cuda}')"
51+
echo "Second import (should be cached):"
52+
time python -c "import torch; print('Imported torch')"
5053
- name: Install mamba-ssm and test dependencies
5154
run: |
5255
# Use all available CPUs for compilation (we're only building for 1 GPU arch)

0 commit comments

Comments
 (0)