#!/usr/bin/env bash set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" usage() { cat <<'EOF' Usage: ./scripts/sync_mthreads_env.sh [uv sync args...] This syncs only the generic Qwen3-ASR dependencies for a Moore Threads host. The MUSA GPU stack (runtime, PyTorch, vLLM, kernels) should come from the official Moore Threads vLLM image or the vendor's matching installation package. EOF } if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then usage exit 0 fi cd "$ROOT_DIR" uv sync --project "$ROOT_DIR/environments/mthreads" --no-dev --no-install-project "$@" echo "[sync_mthreads_env] Synced common dependencies only." echo "[sync_mthreads_env] Use the official Moore Threads vLLM Docker image for the GPU runtime stack."