|
@@ -45,7 +45,12 @@ args = [
|
|
|
"--load-format", "safetensors",
|
|
"--load-format", "safetensors",
|
|
|
# Aiden's measured shape (production-1.6, carried into 1.7.1); --tp 4 /
|
|
# Aiden's measured shape (production-1.6, carried into 1.7.1); --tp 4 /
|
|
|
# --nnodes 4 / --node-rank / --dist-init-addr are appended by the launcher
|
|
# --nnodes 4 / --node-rank / --dist-init-addr are appended by the launcher
|
|
|
- "--ep-size", "4",
|
|
|
|
|
|
|
+ # A/B 2026-10-18 (specs/tech-architecture/dsv41-1017-tuning.md): EP2 (the
|
|
|
|
|
+ # knapcio TP4/EP2 shape) decodes ~+9% over EP4 (probe medians 39-43 vs
|
|
|
|
|
+ # 37.6 tok/s c1) with the same quality score (87/100) and 13.5 GB GPU
|
|
|
|
|
+ # headroom — adopted. --enable-deepseek-v4-fp4-indexer measured neutral
|
|
|
|
|
+ # (decode) / negative (c2, 8K): not used.
|
|
|
|
|
+ "--ep-size", "2",
|
|
|
"--attention-backend", "dsv4",
|
|
"--attention-backend", "dsv4",
|
|
|
"--moe-runner-backend", "flashinfer_mxfp4",
|
|
"--moe-runner-backend", "flashinfer_mxfp4",
|
|
|
# required for the MXFP8 route (selects the block-scaled path the hook wraps;
|
|
# required for the MXFP8 route (selects the block-scaled path the hook wraps;
|
|
@@ -53,7 +58,7 @@ args = [
|
|
|
"--fp8-gemm-backend", "flashinfer_cutlass",
|
|
"--fp8-gemm-backend", "flashinfer_cutlass",
|
|
|
"--mem-fraction-static", "0.80",
|
|
"--mem-fraction-static", "0.80",
|
|
|
"--chunked-prefill-size", "2048",
|
|
"--chunked-prefill-size", "2048",
|
|
|
- "--context-length", "524288",
|
|
|
|
|
|
|
+ "--context-length", "1048576",
|
|
|
"--max-running-requests", "16",
|
|
"--max-running-requests", "16",
|
|
|
"--cuda-graph-max-bs-decode", "16",
|
|
"--cuda-graph-max-bs-decode", "16",
|
|
|
"--random-seed", "0",
|
|
"--random-seed", "0",
|
|
@@ -118,6 +123,10 @@ SPARK_LATE_TAIL_SKIP = "1"
|
|
|
SPARK_LATE_TAIL_SKIP_ALL = "1"
|
|
SPARK_LATE_TAIL_SKIP_ALL = "1"
|
|
|
SPARK_SM120_REAL_HEADS = "1"
|
|
SPARK_SM120_REAL_HEADS = "1"
|
|
|
SPARK_ENGRAM_THREADS = "64"
|
|
SPARK_ENGRAM_THREADS = "64"
|
|
|
|
|
+# MUST track --chunked-prefill-size: the per-chunk engram lookup is
|
|
|
|
|
+# max_prefill_tokens x hash columns (~2 x chunk x 12). 2048 chunk -> 49,152 ids
|
|
|
|
|
+# (fits the 65536 default); 8192 chunk -> 196,608 ids and the engine dies with
|
|
|
|
|
+# "a lookup of 190608 ids exceeds SPARK_ENGRAM_MAX_IDS" (measured 2026-10-18).
|
|
|
SPARK_ENGRAM_MAX_IDS = "65536"
|
|
SPARK_ENGRAM_MAX_IDS = "65536"
|
|
|
SPARK_MXFP8_BACKEND = "b12x"
|
|
SPARK_MXFP8_BACKEND = "b12x"
|
|
|
SPARK_ROCE_AR = "1"
|
|
SPARK_ROCE_AR = "1"
|