- Add install-local-hf.sh (uv sync --extra hf or pip install -e .[hf]) - Add run-chandra-hf.sh defaulting to --method hf - Expand .env.example for upstream/local.env (MODEL_CHECKPOINT, TORCH_*)
11 lines
322 B
Bash
Executable File
11 lines
322 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run Chandra CLI with --method hf (Hugging Face local inference).
|
|
set -euo pipefail
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
for a in "$@"; do
|
|
if [[ "$a" == "--method" ]]; then
|
|
exec "${SCRIPT_DIR}/run-chandra.sh" "$@"
|
|
fi
|
|
done
|
|
exec "${SCRIPT_DIR}/run-chandra.sh" "$@" --method hf
|