File size: 746 Bytes
a03c852
1cff9be
a03c852
 
 
 
1cff9be
 
 
a03c852
 
1cff9be
 
a03c852
1cff9be
a03c852
 
 
 
1cff9be
a03c852
 
1cff9be
a03c852
 
 
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
26
27
#!/bin/bash
# RunPod SGLang Setup Script for Ministral 14B
# Usage: curl -sSL https://huggingface.co/datasets/RoleModel/scripts/raw/main/runpod_setup.sh | bash

set -e

echo "=== Stopping any existing processes ==="
pkill -f "sglang" 2>/dev/null || true
pkill -f "vllm" 2>/dev/null || true
sleep 2

echo "=== Installing SGLang ==="
pip install -q "sglang[all]" "transformers>=5.0.0rc0" "mistral-common>=1.8.6" --quiet

echo "=== Starting SGLang server ==="
echo "Model: RoleModel/ministral-14b-merged-official"
echo "Port: 8000"
echo ""

python -m sglang.launch_server \
  --model RoleModel/ministral-14b-merged-official \
  --dtype bfloat16 \
  --context-length 8192 \
  --port 8000 \
  --trust-remote-code \
  --served-model-name ministral-14b