TinkerLab
ARTIFACT // RUN-P7-VERARUBIN-HBM4-SGLANG-VLLM.SH (SHELL)

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.

[KEY VERIFIED TAKEAWAY / TL;DR]This reproducible configuration artifact "AWS EC2 P7-Rubin / P7-VeraRubin HBM4 Audit & SGLang / vLLM Cluster Launcher" (run-p7-verarubin-hbm4-sglang-vllm.sh, SHELL) is paired with Tinker AI Lab's hardware-verified guide "aws-reinvent-2026-p7-verarubin-hbm4-trainium4-nitro-v7-and-sglang-consortium-cluster-inference". It exposes 4 customizable browser variables (RUN_MODE=p7_preflight, MODEL_REPO=Amazon-FMR/Ergo, MAX_CTX=1048576, SERVE_PORT=30000) with loopback-first security defaults.
01 // HOMELABLocal AI / HomeLab· Verified: 2026-12-04
Browse All 82 Artifacts →
run-p7-verarubin-hbm4-sglang-vllm.sh

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.

View Paired Guide →
Customizable Variables (Saved in Browser)
UTF-8 Encoded · Live Client-Side Compilation
#!/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
PARAMETER SPECIFICATION // 参数化变量规范说明表

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 TokenParameter DescriptionVerified DefaultExample Format
{{RUN_MODE}}Mode (p7_preflight | sglang_p7_tp8_ep8 | vllm_p7_tp8_ep8 | sglang_nvl72_ep72)p7_preflightp7_preflight
{{MODEL_REPO}}Hugging Face / Local Model PathAmazon-FMR/ErgoAmazon-FMR/Ergo
{{MAX_CTX}}Max Context Length (up to 1048576)10485761048576
{{SERVE_PORT}}API Listen Port3000030000
PAIRED HARDWARE MANIFEST // 配套实测环境与边界记录

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"

Tested Hardware & OS

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)

Pinned Stack & Model Versions
NVIDIA NVLink 6 (3.0 TB/s bidir/GPU) / AWS EFAv5 (1,600 Gbps/GPU) / Nitro V7 NIESGLang (LMSYS SGLang Consortium multi-vendor release) & vLLM v0.34.xAmazon Ergo 1.1T-A55B (MXFP4/FP8/BF16) & Kimi-K3.1-Pro 2.8T
Offline Boundary (Zero external telemetry inside VPC/Nitro V7 cryptographic boundary; weights loaded from private S3/FSx Lustre)

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.

Known Operational Limits & Failure Modes
  • 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.
DEPLOYMENT CHECKLIST // 配置落地核验步骤

3-Step Verification Checklist After Deploying run-p7-verarubin-hbm4-sglang-vllm.sh

  1. Verify all 8 (or 72) Rubin GPUs report full HBM4 capacity (288 GB/pkg) and NVLink 6 NV6 links via nvidia-smi topo -m before launching SGLang/vLLM.
  2. Confirm EFAv5 RDMA interfaces (fi_info -p efa) and NCCL_NET_GDR_LEVEL=SYS are active on multi-node P7 UltraClusters.
  3. Enable --kv-cache-dtype fp8 / fp8_e4m3 and prefix/radix caching so 1M-context agent workflows double concurrent slot density inside HBM4.