Release experimental Transition Foundation Model v0.1 with reproducible source and validation
1baf215 verified Download scripts/smoke.sh from maxffarrell/transition-foundation-model: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/maxffarrell/transition-foundation-model/resolve/main/scripts/smoke.sh
- Command line
-
hf download hf://maxffarrell/transition-foundation-model/scripts/smoke.sh
-
curl -L -o smoke.sh https://huggingface.co/maxffarrell/transition-foundation-model/resolve/main/scripts/smoke.sh
1.09 kB
| 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 | |