#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"

# VideoChat-Flash wants all visible GPUs to shard across at high frame counts
export CUDA_VISIBLE_DEVICES="${CUDA_VISIBLE_DEVICES:-0,1,2,3}"
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True

# VideoChat has no text-only path; use qwen3vl --frame-budgets 0 for that baseline.
python run.py --frame-budgets 64 128 256 "$@"
