File size: 1,086 Bytes
1baf215 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/usr/bin/env bash
set -euo pipefail
# All outputs are contained in the ignored artifacts/ directory.
uv sync --locked --extra dev --extra baselines --extra export
uv run --no-sync pytest -q
uv run --no-sync ruff check tfm tests
uv run --no-sync python -m tfm.data.generate --output artifacts/quick/data --systems 90 --days 2 --seed 42 --parquet
for model in mlp transformer gru; do
uv run --no-sync python -m tfm.training.train --data artifacts/quick/data --output "artifacts/quick/$model" --model "$model" --epochs 3 --samples 1024 --validation-samples 128 --batch-size 32 --device auto --seed 42
uv run --no-sync python -m tfm.evaluation.benchmark --data artifacts/quick/data --checkpoint "artifacts/quick/$model/checkpoint.pt" --output "artifacts/quick/report-$model" --samples 128 --calibration-samples 128 --counterfactual-samples 6 --device auto
done
uv run --no-sync python -m tfm.export.onnx --checkpoint artifacts/quick/transformer/checkpoint.pt --data artifacts/quick/data --output artifacts/quick/onnx --calibration artifacts/quick/report-transformer/calibration.json
|