NemoVonNirgend commited on
Commit
0afa77b
·
verified ·
1 Parent(s): 2a29049

Upload runpod_setup.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. runpod_setup.sh +10 -9
runpod_setup.sh CHANGED
@@ -1,23 +1,24 @@
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 + transformers from git (required for Ministral 3) ==="
12
- pip install -U vllm --extra-index-url https://wheels.vllm.ai/nightly
13
- pip install -U git+https://github.com/huggingface/transformers
14
 
15
- echo "=== Starting vLLM server ==="
 
 
 
16
  echo "Model: RoleModel/ministral-14b-merged-official"
17
  echo "Port: 8000"
18
  echo ""
19
 
20
- vllm serve RoleModel/ministral-14b-merged-official \
21
- --dtype bfloat16 \
22
- --max-model-len 8192 \
23
- --port 8000
 
1
  #!/bin/bash
2
+ # RunPod Setup Script for Ministral 14B (Transformers-based server)
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
+ pkill -f "uvicorn" 2>/dev/null || true
10
+ pkill -f "serve_ministral" 2>/dev/null || true
11
  sleep 2
12
 
13
+ echo "=== Installing dependencies ==="
14
+ pip install -U transformers accelerate fastapi uvicorn pydantic
 
15
 
16
+ echo "=== Downloading server script ==="
17
+ curl -sSL https://huggingface.co/datasets/RoleModel/scripts/raw/main/serve_ministral.py -o /tmp/serve_ministral.py
18
+
19
+ echo "=== Starting Ministral 14B server ==="
20
  echo "Model: RoleModel/ministral-14b-merged-official"
21
  echo "Port: 8000"
22
  echo ""
23
 
24
+ python /tmp/serve_ministral.py