File size: 786 Bytes
a03c852 0afa77b a03c852 1cff9be 0afa77b a03c852 0afa77b a03c852 0afa77b a03c852 0afa77b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/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
|