distill-pipeline / scripts /run_thinking_continuous.sh
htaf's picture
added new instruct pipeline for faster generation
2739b3a
raw
history blame contribute delete
678 Bytes
#!/usr/bin/env bash
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