Buckets:
| # 中文源码导读(2026-09-15)|阅读顺序 083|本地工程 | |
| # 来源:官方同路径无此文件。 | |
| # 作用:按顺序验证四个任务的小预算更新与同目录恢复。 | |
| # 对照基准:test-time-training/discover@6c40e82;完整路线见 docs/CODE_READING_ORDER_ZH.md。 | |
| # Usage: bash scripts/validate_all.sh /absolute/model/path runs/validation [--rollout-gpus {6|8}] | |
| set -euo pipefail | |
| cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." | |
| model="${1:?model path required}" | |
| output="${2:?new validation output directory required}" | |
| rollout_args=() | |
| if [ "$#" -eq 4 ] && [ "$3" = --rollout-gpus ] && { [ "$4" = 6 ] || [ "$4" = 8 ]; }; then | |
| rollout_args=(--rollout-gpus "$4") | |
| elif [ "$#" -ne 2 ]; then | |
| echo 'Usage: bash scripts/validate_all.sh /absolute/model/path runs/validation [--rollout-gpus {6|8}]' >&2 | |
| exit 2 | |
| fi | |
| bash scripts/test.sh | |
| bash scripts/eval_root.sh | |
| for task in ac1 ac2 denoising erdos; do | |
| bash scripts/run.sh "$task" --model-path "$model" --run-dir "$output/$task" --smoke "${rollout_args[@]}" | |
| # Reload the complete adapter, optimizer and tree. The target is already | |
| # reached, so this checks restoration without taking an additional update. | |
| bash scripts/run.sh "$task" --model-path "$model" --run-dir "$output/$task" --resume "${rollout_args[@]}" | |
| done | |
Xet Storage Details
- Size:
- 1.32 kB
- Xet hash:
- c04fadbc3e0ba32346227d20008600b0d139a1874b211369f6c23d8e5578b03a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.