#!/bin/bash # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # Aggregated embedding model serving. # GPUs: 1 set -e trap 'echo Cleaning up...; kill 0' EXIT SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" source "$SCRIPT_DIR/../../../common/launch_utils.sh" # Parse command line arguments while [[ $# -gt 0 ]]; do case $1 in -h|--help) echo "Usage: $0 [OPTIONS]" echo "Options:" echo " -h, --help Show this help message" echo "" echo "Note: System metrics are enabled by default on port 8081 (worker)" echo "Note: OpenTelemetry tracing is not yet supported for embedding models" exit 0 ;; *) echo "Unknown option: $1" echo "Use --help for usage information" exit 1 ;; esac done MODEL="Qwen/Qwen3-Embedding-4B" HTTP_PORT="${DYN_HTTP_PORT:-8000}" print_launch_banner --no-curl "Launching Embedding Worker" "$MODEL" "$HTTP_PORT" print_curl_footer <