Download scripts/run_thinking_continuous.sh from htaf/distill-pipeline: direct link, hf CLI and curl.
- Browser
- Download file 678 Bytes
-
https://huggingface.co/htaf/distill-pipeline/resolve/main/scripts/run_thinking_continuous.sh
- Command line
-
hf download hf://htaf/distill-pipeline/scripts/run_thinking_continuous.sh
-
curl -L -o run_thinking_continuous.sh https://huggingface.co/htaf/distill-pipeline/resolve/main/scripts/run_thinking_continuous.sh
678 Bytes
| set -euo pipefail | |
| # Continuous "thinking" pipeline runner. | |
| # - Uses default thinking cache/output | |
| # - Random-walk over chunks | |
| # - No limit: processes all available chunks/questions; loop restarts after completion | |
| # | |
| # Stop with Ctrl+C. | |
| ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| # Load .env if present | |
| if [[ -f "$ROOT_DIR/.env" ]]; then | |
| set -a | |
| source "$ROOT_DIR/.env" | |
| set +a | |
| fi | |
| while true; do | |
| PIPELINE_SEED_MODE=question-first \ | |
| PIPELINE_RANDOM_WALK=1 \ | |
| QUESTION_MAX_PER_CHUNK="${QUESTION_MAX_PER_CHUNK:-5}" \ | |
| npm run pipeline -- --verbose | |
| echo "Run finished at $(date). Sleeping 10s before next loop..." | |
| sleep 10 | |
| done | |