Files
Fam Zheng f487ffee80
smoke / nanochat-smoke (push) Successful in 25s
ci: wire wandb logging via WANDB_API_KEY secret
When the secret is present, base_train --run=smoke-$run_number gets
logged to wandb (project=nanochat). Without the secret it falls
back to dummy / DummyWandb, so local runs stay offline.
2026-05-05 22:08:13 +01:00

26 lines
759 B
YAML

name: smoke
on:
push:
workflow_dispatch:
jobs:
nanochat-smoke:
runs-on: gpu
timeout-minutes: 30
steps:
- name: checkout
# actions/checkout@v4 mis-resolves server_url on subpath gitea
# (drops /gitea/ prefix), so clone manually.
run: |
git init .
git remote add origin https://famzheng.me/gitea/${{ github.repository }}.git
git fetch --depth=1 origin ${{ github.sha }}
git checkout FETCH_HEAD
- name: nvidia-smi
run: nvidia-smi --query-gpu=name,memory.free,memory.used --format=csv
- name: smoke
env:
WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }}
CI_RUN_TAG: smoke-${{ github.run_number }}
run: bash scripts/smoke.sh