#!/bin/bash # Wrapper that runs the fine-tune script from the correct working directory. # Invoke `python3 -m tau_rag.scripts.finetune_from_traces` only works when # CWD is tau_platform_v4/ (the parent of tau_rag/). This script cds there # automatically, regardless of where you invoke it from. set -e SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # SCRIPT_DIR = .../tau_rag/scripts → parent of tau_rag is the project root PROJECT_ROOT="$( cd "$SCRIPT_DIR/../.." && pwd )" cd "$PROJECT_ROOT" echo "▸ Running from $(pwd)" exec python3 -m tau_rag.scripts.finetune_from_traces "$@"