smart_ide/services/chandra/run-chandra-hf.sh
4NK d6a61e7cbe chandra: document and script local HuggingFace install (hf extra, run-chandra-hf)
- 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_*)
2026-04-03 22:28:20 +02:00

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