File size: 732 Bytes
014b14c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
# CPU smoke suite — proves the harness works before spending GPU.
# Fast logic-only tests by default; add --full to include the tiny-model
# train/eval and the HF dataset-schema probes (needs network).
set -euo pipefail
cd "$(dirname "$0")/.."

export HF_HUB_DISABLE_PROGRESS_BARS=1
export TOKENIZERS_PARALLELISM=false

if [[ "${1:-}" == "--full" ]]; then
  echo ">> full smoke suite (logic + tiny-model train/eval + dataset probes)"
  python -m pytest -q -p no:cacheprovider
else
  echo ">> fast smoke suite (pure logic; no model/network)"
  python -m pytest -q -m "not slow and not network" -p no:cacheprovider
  echo
  echo "   (run './scripts/smoke_all.sh --full' to also exercise training + datasets)"
fi