Files
composable-evidence-states-…/.gitea/workflows/gpu-smoke.yaml
T
2026-10-01 22:16:29 +08:00

28 lines
1.0 KiB
YAML

name: GPU smoke
on:
workflow_dispatch:
jobs:
extractor:
runs-on: gpu
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Verify CUDA
run: nvidia-smi
- name: Reuse runner PyTorch and install lightweight dependencies
run: |
uv venv --system-site-packages --python python .venv-gpu
uv pip install --python .venv-gpu/bin/python numpy pillow pyyaml scipy transformers pytest ruff
- name: Verify PyTorch sees the GPU
run: |
.venv-gpu/bin/python -c "import torch; assert torch.cuda.is_available(); print(torch.__version__, torch.version.cuda, torch.cuda.get_device_name(), torch.cuda.get_device_capability())"
- name: Build smoke dataset
run: .venv-gpu/bin/python -m data.build_splits --config configs/mvp.yaml --small
- name: Train extractor
run: .venv-gpu/bin/python train_extractor.py --config configs/mvp.yaml --backbone clip --epochs 1