#!/bin/bash # RunPod Setup Script for Ministral 14B (Transformers-based server) # Usage: curl -sSL https://huggingface.co/datasets/RoleModel/scripts/raw/main/runpod_setup.sh | bash set -e echo "=== Stopping any existing processes ===" pkill -f "vllm" 2>/dev/null || true pkill -f "uvicorn" 2>/dev/null || true pkill -f "serve_ministral" 2>/dev/null || true sleep 2 echo "=== Installing dependencies ===" pip install -U transformers accelerate fastapi uvicorn pydantic echo "=== Downloading server script ===" curl -sSL https://huggingface.co/datasets/RoleModel/scripts/raw/main/serve_ministral.py -o /tmp/serve_ministral.py echo "=== Starting Ministral 14B server ===" echo "Model: RoleModel/ministral-14b-merged-official" echo "Port: 8000" echo "" python /tmp/serve_ministral.py