set -e ENV_NAME=${1:-sgl2b} if conda env list | awk '{print $1}' | grep -qx "sgl26b"; then conda create -y -n "${ENV_NAME}" --clone sgl26b echo "Cloned sgl26b into ${ENV_NAME}" exit 0 fi echo "sgl26b was not found." echo "Create a fresh environment manually following the official InternVL dependency stack, then install this repo in editable mode." exit 1