NemoVonNirgend commited on
Commit
45f03a9
·
verified ·
1 Parent(s): 1cff9be

Upload runpod_setup.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. runpod_setup.sh +7 -11
runpod_setup.sh CHANGED
@@ -1,26 +1,22 @@
1
  #!/bin/bash
2
- # RunPod SGLang Setup Script for Ministral 14B
3
  # Usage: curl -sSL https://huggingface.co/datasets/RoleModel/scripts/raw/main/runpod_setup.sh | bash
4
 
5
  set -e
6
 
7
  echo "=== Stopping any existing processes ==="
8
- pkill -f "sglang" 2>/dev/null || true
9
  pkill -f "vllm" 2>/dev/null || true
10
  sleep 2
11
 
12
- echo "=== Installing SGLang ==="
13
- pip install -q "sglang[all]" "transformers>=5.0.0rc0" "mistral-common>=1.8.6" --quiet
14
 
15
- echo "=== Starting SGLang server ==="
16
  echo "Model: RoleModel/ministral-14b-merged-official"
17
  echo "Port: 8000"
18
  echo ""
19
 
20
- python -m sglang.launch_server \
21
- --model RoleModel/ministral-14b-merged-official \
22
  --dtype bfloat16 \
23
- --context-length 8192 \
24
- --port 8000 \
25
- --trust-remote-code \
26
- --served-model-name ministral-14b
 
1
  #!/bin/bash
2
+ # RunPod vLLM Setup Script for Ministral 14B
3
  # Usage: curl -sSL https://huggingface.co/datasets/RoleModel/scripts/raw/main/runpod_setup.sh | bash
4
 
5
  set -e
6
 
7
  echo "=== Stopping any existing processes ==="
 
8
  pkill -f "vllm" 2>/dev/null || true
9
  sleep 2
10
 
11
+ echo "=== Installing vLLM nightly (required for Ministral 3) ==="
12
+ pip install -U vllm --extra-index-url https://wheels.vllm.ai/nightly
13
 
14
+ echo "=== Starting vLLM server ==="
15
  echo "Model: RoleModel/ministral-14b-merged-official"
16
  echo "Port: 8000"
17
  echo ""
18
 
19
+ vllm serve RoleModel/ministral-14b-merged-official \
 
20
  --dtype bfloat16 \
21
+ --max-model-len 8192 \
22
+ --port 8000