AWS EC2 P7-Rubin / P7-VeraRubin HBM4 Audit & SGLang / vLLM Cluster Launcher (run-p7-verarubin-hbm4-sglang-vllm.sh)
Audits NVIDIA Rubin HBM4 capacity (288 GB/GPU), NVLink 6 topology, and AWS EFAv5 RDMA interfaces, then launches SGLang or vLLM v0.34.x with TP8/EP8 FP8 KV caching for 1T+ MoE models.
AWS EC2 P7-Rubin / P7-VeraRubin HBM4 Audit & SGLang / vLLM Cluster Launcher
Audits NVIDIA Rubin HBM4 capacity (288 GB/GPU), NVLink 6 topology, and AWS EFAv5 RDMA interfaces, then launches SGLang or vLLM v0.34.x with TP8/EP8 FP8 KV caching for 1T+ MoE models.
#!/usr/bin/env bash
# Tinker AI — AWS EC2 P7-Rubin / P7-VeraRubin HBM4 & SGLang / vLLM Launcher (Guide #79)
set -euo pipefail
MODE="p7_preflight"
MODEL="Amazon-FMR/Ergo"
CTX="1048576"
PORT="30000"
if [ "$MODE" = "p7_preflight" ]; then
echo "=== [1/3] NVIDIA Rubin HBM4 Capacity Check (288 GB/GPU -> 2 TB P7-Rubin / 20.7 TB NVL72) ==="
nvidia-smi --query-gpu=index,name,memory.total,pcie.link.gen.current --format=csv 2>/dev/null || echo "Info: Run on an NVIDIA Rubin EC2 P7 host."
echo "=== [2/3] NVLink 6 Single-Domain Topology ==="
nvidia-smi topo -m 2>/dev/null | head -n 20 || true
echo "=== [3/3] AWS EFAv5 (1,600 Gbps/GPU) & Nitro V7 RDMA Check ==="
fi_info -p efa 2>/dev/null | grep -E "provider:|domain:|fabric:" | head -n 12 || echo "Info: Install aws-ofi-nccl & EFA driver for multi-node scale-out."
exit 0
elif [ "$MODE" = "sglang_p7_tp8_ep8" ]; then
echo "=== [SGLang TP8 + EP8 · EC2 P7-Rubin 2 TB HBM4 · $MODEL @ $CTX Ctx] ==="
exec python3 -m sglang.launch_server \
--model-path "$MODEL" \
--tp-size 8 --ep-size 8 \
--quantization fp8 \
--kv-cache-dtype fp8_e4m3 \
--context-length "$CTX" \
--mem-fraction-static 0.88 \
--host 0.0.0.0 --port "$PORT"
elif [ "$MODE" = "vllm_p7_tp8_ep8" ]; then
echo "=== [vLLM v0.34.x TP8 + Expert Parallel · EC2 P7-Rubin 2 TB HBM4 · $MODEL @ $CTX Ctx] ==="
exec vllm serve "$MODEL" \
--tensor-parallel-size 8 \
--enable-expert-parallel \
--kv-cache-dtype fp8 \
--max-model-len "$CTX" \
--enable-prefix-caching \
--gpu-memory-utilization 0.90 \
--host 0.0.0.0 --port "$PORT"
elif [ "$MODE" = "sglang_nvl72_ep72" ]; then
echo "=== [SGLang NVL72 EP72 Disaggregated Template · P7-VeraRubin 20.7 TB HBM4] ==="
echo "Export NCCL_NET_GDR_LEVEL=SYS and FI_PROVIDER=efa across NVL72 ranks; split Prefill (TP8) and Decode (DP9 x TP8 / EP72)."
else
echo "Unknown RUN_MODE=$MODE" >&2
exit 1
fi
Customizable Parameter Reference for run-p7-verarubin-hbm4-sglang-vllm.sh
This SHELL artifact exposes 4 template variables compiled client-side in your browser.
| Template Token | Parameter Description | Verified Default | Example Format |
|---|---|---|---|
{{RUN_MODE}} | Mode (p7_preflight | sglang_p7_tp8_ep8 | vllm_p7_tp8_ep8 | sglang_nvl72_ep72) | p7_preflight | p7_preflight |
{{MODEL_REPO}} | Hugging Face / Local Model Path | Amazon-FMR/Ergo | Amazon-FMR/Ergo |
{{MAX_CTX}} | Max Context Length (up to 1048576) | 1048576 | 1048576 |
{{SERVE_PORT}} | API Listen Port | 30000 | 30000 |
Verified Environment for "AWS re:Invent 2026 HBM4 Cluster Architecture: EC2 P7-VeraRubin UltraServer (72× Rubin · 20.7 TB HBM4 · 1,400 TB/s) & P7-Rubin (2 TB HBM4) vs Trainium4 NVLink Fusion & Nitro V7 on SGLang / vLLM"
Amazon EC2 P7-VeraRubin UltraServer (72× Rubin · 20.7 TB HBM4 · 1,400 TB/s · EFAv5 115.2 Tbps), EC2 P7-Rubin (8× Rubin · 2 TB HBM4 · 130 TB/s · Intel Xeon 6), AWS Nitro V7 (1.6 Tbps/card)
AWS Nitro V7’s Nitro Isolation Engine (NIE) cryptographically separates tenant HBM4/host memory and network packets at 1.6 Tbps/card so neither cloud operators nor third-party model vendors can inspect prompts or KV states.
- AWS Trainium4 (10× compute over Trainium3, 2× HBM capacity, 4×–5× memory bandwidth, NVLink Fusion) is a 2H 2027 roadmap target; production deployments in Dec 2026 must target GA P7-Rubin / P7-VeraRubin or Trainium3SR.
- Running 72-GPU EP72 expert parallelism without NVLink 6 topology-aware placement (
--dp-size,--enable-ep-moe) degrades tail latency due to uneven expert routing skew. - SGLang and vLLM FP4/FP8 kernels require CUDA 13.x / Rubin-capable containers; older Blackwell-only images fall back to BF16 and halve effective decode throughput.
3-Step Verification Checklist After Deploying run-p7-verarubin-hbm4-sglang-vllm.sh
- Verify all 8 (or 72) Rubin GPUs report full HBM4 capacity (
288 GB/pkg) and NVLink 6NV6links vianvidia-smi topo -mbefore launching SGLang/vLLM. - Confirm
EFAv5RDMA interfaces (fi_info -p efa) andNCCL_NET_GDR_LEVEL=SYSare active on multi-node P7 UltraClusters. - Enable
--kv-cache-dtype fp8/fp8_e4m3and prefix/radix caching so 1M-context agent workflows double concurrent slot density inside HBM4.