| .PHONY: test smoke smoke-full train-smoke clean | |
| test: | |
| @if python -c "import pytest" >/dev/null 2>&1; then \ | |
| python -m pytest -q; \ | |
| else \ | |
| echo "pytest is not installed; running compileall smoke checks."; \ | |
| python -m compileall -q dovla_cil scripts tests; \ | |
| fi | |
| smoke: | |
| python scripts/generate_tasks.py --mock --num-tasks 2 --out outputs/smoke_tasks.jsonl --seed 0 | |
| python scripts/generate_cil.py --backend toy --tasks outputs/smoke_tasks.jsonl --out outputs/smoke_cil --num-states-per-task 2 --k 4 --seed 0 --shard-size 4 --inline-observations | |
| python scripts/inspect_shard.py outputs/smoke_cil/manifest.json | |
| $(MAKE) test | |
| smoke-full: | |
| python scripts/smoke_full_pipeline.py --out outputs/smoke_full --device cpu | |
| train-smoke: | |
| python scripts/generate_tasks.py --mock --num-tasks 3 --out outputs/train_smoke_tasks.jsonl --seed 0 | |
| python scripts/generate_cil.py --backend toy --tasks outputs/train_smoke_tasks.jsonl --out outputs/train_smoke_cil --num-states-per-task 2 --k 4 --seed 0 --shard-size 8 --inline-observations | |
| python scripts/train_dovla.py --dataset outputs/train_smoke_cil --out outputs/train_smoke_run --epochs 1 --batch-groups 2 --records-per-group 4 --hidden-dim 64 --lr 0.001 --device auto --seed 0 | |
| clean: | |
| rm -rf outputs .pytest_cache | |
| find . -name __pycache__ -type d -prune -exec rm -rf {} + | |