|
|
@@ -45,7 +45,6 @@ required_nodes = 4
|
|
|
tensor_parallel_size = 4
|
|
|
pipeline_parallel_size = 1
|
|
|
distributed_backend = "mp"
|
|
|
-shm_size = "64gb"
|
|
|
docker_image_dir = "glm52-nf3-hybrid"
|
|
|
|
|
|
entrypoint = ["vllm", "serve"]
|
|
|
@@ -54,15 +53,15 @@ args = [
|
|
|
# Quantization & KV cache
|
|
|
"--quantization", "modelopt_fp4",
|
|
|
"--kv-cache-dtype", "fp8",
|
|
|
- "--load-format", "auto",
|
|
|
-# "--load-format", "fastsafetensors",
|
|
|
+# "--load-format", "auto",
|
|
|
+ "--load-format", "fastsafetensors",
|
|
|
# Context length (800K max-len, 877K KV pool)
|
|
|
- "--max-model-len", "800000",
|
|
|
+ "--max-model-len", "200000",
|
|
|
# Batch & memory
|
|
|
"--max-num-seqs", "4",
|
|
|
"--max-num-batched-tokens", "4096",
|
|
|
"--max-cudagraph-capture-size", "32",
|
|
|
- "--gpu-memory-utilization", "0.88",
|
|
|
+ "--gpu-memory-utilization", "0.84",
|
|
|
# Engine backends
|
|
|
"--attention-backend", "B12X_MLA_SPARSE",
|
|
|
"--moe-backend", "b12x",
|
|
|
@@ -87,6 +86,10 @@ args = [
|
|
|
]
|
|
|
|
|
|
[env]
|
|
|
+# Memory stability
|
|
|
+#PYTORCH_CUDA_ALLOC_CONF = "expandable_segments:True"
|
|
|
+#VLLM_ALLOW_LONG_MAX_MODEL_LEN = "1"
|
|
|
+
|
|
|
# ── DCP (Decode Context Parallelism) — CONTEXT: DCP4 ──────────────────────
|
|
|
# KV sharded across all 4 nodes — 4× pool, decode pays ag_rs gather
|
|
|
DECODE_CONTEXT_PARALLEL_SIZE = "4"
|