Skip to content

ormandj/GLM-5.3-Flash-W4A16-NVFP4-K32-Experts-FP8-WO

Download glm53-flash-ormandj-sglang-sm120-tp2-393k-c1-adaptive-mtp-recipe.toml

glm53-flash-ormandj-sglang-sm120-tp2-393k-c1-adaptive-mtp-recipe.toml · 8,550 bytes · SHA-256 279a1d37641f54316fa42053663833878f0a9cc1d3ad6ac01bf1e07efa91b9b3

A recipe is a reproducible starting point, not a promotion

Status text and notes describe when the recipe was written. Loading a recipe starts a loopback-only container and changes no route; qualify it with eval preflight before use.

Field Value
Status verified
Family glm-5.3-flash-multimodal-moe
Weights ormandj/GLM-5.3-Flash-W4A16-NVFP4-K32-Experts-FP8-WO @ c3cbb9891b67c741bcbf6b176dd7af9265b069db
Engine sglang-glm53-sm120-v0.1.1-rc14
Image ghcr.io/ormandj/sglang-glm53-flash-sm120@sha256:0c0637959c3931829f05154087bbefd2c50003fb9b2010200ce0ec82f4d71a53
Quantization ModelOpt mixed W4A16 NVFP4 K32 routed experts plus FP8 weight-only attention/shared experts; FP8 E4M3 KV; BF16 recurrent state; native adaptive EAGLE MTP [3,5]
Context tokens 393216
Hardware 2x NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition · sm_120 · 192 GB
Served model name glm53-flash-ormandj-sglang-sm120-tp2-393k-c1-adaptive-mtp
Suited for qualification, compatibility, text, tool-use, structured-output, multimodal, long-context, concurrency, speculative-decoding
Origin 2026-09-02 fully qualified 393216-token C1 profile, reclassified after the operator waived the default 3 GiB reserve for exclusive model-only GPUs

Recorded in the recipe:

  • validated_prompt_tokens: 304491
  • default_reserve_mib_per_gpu: 3072
  • effective_reserve_mib_per_gpu: 0
  • qualification: full functional, thinking-control, coding, multimodal, capacity, and endurance gates passed; no OOM or crash

Benchmark findings that measured this served model:

Sources:

Use this recipe

anvil-serving models recipes show 'ormandj/GLM-5.3-Flash-W4A16-NVFP4-K32-Experts-FP8-WO' --registry ./glm53-flash-ormandj-sglang-sm120-tp2-393k-c1-adaptive-mtp-recipe.toml
anvil-serving models recipes load 'ormandj/GLM-5.3-Flash-W4A16-NVFP4-K32-Experts-FP8-WO' --container my-serve --registry ./glm53-flash-ormandj-sglang-sm120-tp2-393k-c1-adaptive-mtp-recipe.toml --dry-run

Review the dry run, then repeat the load command with --confirm. See model lifecycle for importing a recipe into your own registry.

File

schema = "anvil-serving.serve-recipes/v1"

[[recipe]]
model = "ormandj/GLM-5.3-Flash-W4A16-NVFP4-K32-Experts-FP8-WO"
status = "verified"
source = "2026-09-02 fully qualified 393216-token C1 profile, reclassified after the operator waived the default 3 GiB reserve for exclusive model-only GPUs"
family = "glm-5.3-flash-multimodal-moe"
total_params_b = 744
active_params_b = 40

[recipe.download]
repo = "ormandj/GLM-5.3-Flash-W4A16-NVFP4-K32-Experts-FP8-WO"
revision = "c3cbb9891b67c741bcbf6b176dd7af9265b069db"
volume = "vllm-hfcache"
require_complete_cache = true

[recipe.hardware]
gpu = "2x NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition"
arch = "sm_120"
vram_total_gb = 192
vram_note = "Aggregate PCIe VRAM without NVLink under WSL2; exclusive TP=2 only. The default 3072 MiB/card campaign reserve is explicitly waived for these model-only devices. The complete workload left 2101 MiB free per card with no OOM, CUDA error, crash, restart, corruption, or unexplained request loss."

[recipe.serve]
engine = "sglang-glm53-sm120-v0.1.1-rc14"
allow_cuda_visible_devices_index = true
image = "ghcr.io/ormandj/sglang-glm53-flash-sm120@sha256:0c0637959c3931829f05154087bbefd2c50003fb9b2010200ce0ec82f4d71a53"
entrypoint = [
  "bash",
  "-lc",
  '''set -e; printf '%s\n' '{"1":{"candidate_steps":[3,5],"up_hysteresis":0.0,"down_hysteresis":-0.25,"ceiling_coeff":0},"4":{"candidate_steps":[3,5],"up_hysteresis":0.0,"down_hysteresis":-0.25,"ceiling_coeff":0}}' > /tmp/glm53-adaptive.json; LP=/opt/sglang-source/python/sglang/srt/layers/logits_processor.py; echo '05cfcbd9c1439af751a22fb03490a2e5a252ea4bf5ad5febdae1eb87dce1e9a7  /opt/sglang-source/python/sglang/srt/layers/logits_processor.py' | sha256sum -c -; test "$(grep -Fc 'enabled=self.do_tensor_parallel_all_gather and not self.use_attn_tp_group,' "$LP")" = 1 || { echo 'anvil patch: logits gatherer anchor drift' >&2; exit 3; }; sed -i 's/enabled=self.do_tensor_parallel_all_gather and not self.use_attn_tp_group,/enabled=False,/' "$LP"; grep -Fq 'enabled=False,' "$LP" || { echo 'anvil patch: logits gatherer postcondition failed' >&2; exit 4; }; SRC=/root/.cache/huggingface/hub/models--ormandj--GLM-5.3-Flash-W4A16-NVFP4-K32-Experts-FP8-WO/snapshots/c3cbb9891b67c741bcbf6b176dd7af9265b069db/chat_template.jinja; DST=/root/.cache/glm53-ormandj-enable-thinking-chat-template.jinja; python3 -c 'import base64,hashlib,os,pathlib,sys; src=pathlib.Path(sys.argv[1]); dst=pathlib.Path(sys.argv[2]); raw=src.read_bytes(); hashlib.sha256(raw).hexdigest()=="34d5ee66b12fa6446cdae131c352b8f68cd85369e0e6fda115583805fada3891" or sys.exit("anvil patch: source chat template hash drift"); old=base64.b64decode(os.environ["GLM53_CHAT_TEMPLATE_OLD_B64"]).decode(); new=base64.b64decode(os.environ["GLM53_CHAT_TEMPLATE_NEW_B64"]).decode(); text=raw.decode(); text.count(old)==1 or sys.exit("anvil patch: generation prompt anchor drift"); out=text.replace(old,new).encode(); hashlib.sha256(out).hexdigest()=="3133af873d620976b1561b76dc20ec2ad2599279ba61b873e872b1250f4f2ec5" or sys.exit("anvil patch: derived chat template hash mismatch"); dst.write_bytes(out)' "$SRC" "$DST"; echo 'anvil patch: WSL2 transport, logits gatherer, and thinking template ready'; exec sglang serve "$@" --chat-template "$DST"''',
  "glm53-adaptive-mtp",
]
model_flag = "--model-path"
model_path = "/root/.cache/huggingface/hub/models--ormandj--GLM-5.3-Flash-W4A16-NVFP4-K32-Experts-FP8-WO/snapshots/c3cbb9891b67c741bcbf6b176dd7af9265b069db"
quantization = "ModelOpt mixed W4A16 NVFP4 K32 routed experts plus FP8 weight-only attention/shared experts; FP8 E4M3 KV; BF16 recurrent state; native adaptive EAGLE MTP [3,5]"
context_tokens = 393216
port = 39118
startup_timeout_seconds = 3600
served_model_name = "glm53-flash-ormandj-sglang-sm120-tp2-393k-c1-adaptive-mtp"
ipc = "host"
shm_size = "64gb"
ulimits = ["memlock=-1", "nofile=1048576:1048576", "stack=67108864:67108864"]
named_volumes = ["glm53-ormandj-sglang-v60-rc14-adaptive-393k-c1-wsl2-cache:/root/.cache"]
env = [
  "CUDA_DEVICE_ORDER=PCI_BUS_ID",
  "CUDA_VISIBLE_DEVICES=0,1",
  "PYTHONHASHSEED=0",
  "PYTORCH_CUDA_ALLOC_CONF=expandable_segments:False",
  "CUBLAS_WORKSPACE_CONFIG=:4096:2:16:8",
  "GLM53_CHAT_TEMPLATE_OLD_B64=eyUtIGlmIGFkZF9nZW5lcmF0aW9uX3Byb21wdCAtJX0KICAgIDx8YXNzaXN0YW50fD57ey0gJzx0aGluaz4nIC19fQp7JS0gZW5kaWYgLSV9",
  "GLM53_CHAT_TEMPLATE_NEW_B64=eyUtIGlmIGFkZF9nZW5lcmF0aW9uX3Byb21wdCAtJX0KICAgIHslLSBpZiBub3QgZW5hYmxlX3RoaW5raW5nIGlzIGRlZmluZWQgLSV9eyUtIHNldCBlbmFibGVfdGhpbmtpbmcgPSB0cnVlIC0lfXslLSBlbmRpZiAtJX0KICAgIDx8YXNzaXN0YW50fD57JS0gaWYgZW5hYmxlX3RoaW5raW5nIC0lfXt7LSAnPHRoaW5rPicgLX19eyUtIGVsc2UgLSV9e3stICc8dGhpbms+PC90aGluaz4nIC19fXslLSBlbmRpZiAtJX0KeyUtIGVuZGlmIC0lfQ==",
  "NCCL_CUMEM_ENABLE=0",
  "NCCL_DEBUG=INFO",
  "SGLANG_ENABLE_HEALTH_ENDPOINT_GENERATION=0",
  "TORCHINDUCTOR_CACHE_DIR=/root/.cache/torchinductor",
  "TILELANG_CACHE_DIR=/root/.cache/tilelang",
  "TRITON_CACHE_DIR=/root/.cache/triton",
]
flags = [
  "--served-model-name glm53-flash-ormandj-sglang-sm120-tp2-393k-c1-adaptive-mtp",
  "--tp-size 2",
  "--quantization modelopt_mixed",
  "--enable-multimodal",
  "--image-processor-backend torchvision",
  "--mm-process-config '{\"image\":{\"max_image_tokens\":3072}}'",
  "--warmups serving_coverage",
  "--moe-runner-backend flashinfer_cutlass",
  "--disable-shared-experts-fusion",
  "--disable-custom-all-reduce",
  "--attention-backend dsa",
  "--linear-attn-backend triton",
  "--dsa-prefill-backend flashinfer_sparse_mla",
  "--dsa-decode-backend flashinfer_sparse_mla",
  "--kv-cache-dtype fp8_e4m3",
  "--mamba-ssm-dtype bfloat16",
  "--context-length 393216",
  "--max-total-tokens 393216",
  "--mem-fraction-static 0.99",
  "--chunked-prefill-size 4096",
  "--max-prefill-tokens 4096",
  "--max-running-requests 1",
  "--max-mamba-cache-size 5",
  "--cuda-graph-max-bs-decode 1",
  "--speculative-algorithm EAGLE",
  "--speculative-num-steps 5",
  "--speculative-eagle-topk 1",
  "--speculative-num-draft-tokens 6",
  "--speculative-adaptive",
  "--speculative-adaptive-config /tmp/glm53-adaptive.json",
  "--reasoning-parser glm45",
  "--tool-call-parser glm47",
  "--enable-metrics",
  "--enable-cache-report",
  "--host 0.0.0.0",
  "--port 39118",
]
note = "Second fix-forward after the exact 499712-token/C4 profile left 49 MiB free per card and the 499712-token/C1 derivative left 2347 MiB free. This variant changes only the advertised context and shared token pool to 393216 while keeping one running request, five Mamba slots, and batch-size-one graphs. The pinned image, model revision, multimodal path, native adaptive [3,5] MTP, WSL2 transport fixes, hash-gated logits fallback, enable_thinking-aware template, quantization, KV dtype, parsers, and backends remain identical. Full functional, thinking-control, coding, image/OCR, 304491-token capacity, and 60-request endurance gates passed. The complete workload left 2101 MiB free per card with no OOM, CUDA error, crash, restart, corruption, or unexplained request loss. The operator explicitly waived the default 3072 MiB/card reserve for these exclusive model-only GPUs and separately authorized promotion on 2026-09-02."

[recipe.measured]
validated_prompt_tokens = 304491
post_workload_free_vram_mib_per_gpu = [2101, 2101]
default_reserve_mib_per_gpu = 3072
effective_reserve_mib_per_gpu = 0
reserve_waived = true
qualification = "full functional, thinking-control, coding, multimodal, capacity, and endurance gates passed; no OOM or crash"

[recipe.fit]
suited = ["qualification", "compatibility", "text", "tool-use", "structured-output", "multimodal", "long-context", "concurrency", "speculative-decoding"]
rationale = "Selected published long-context profile: it passed the complete qualification battery through 304491 actual prompt tokens and retained 2101 MiB/card after workload under the explicit model-only reserve waiver; managed, routed, and real-client promotion gates subsequently passed."

[recipe.sources]
official = [
  "https://huggingface.co/ormandj/GLM-5.3-Flash-W4A16-NVFP4-K32-Experts-FP8-WO/tree/c3cbb9891b67c741bcbf6b176dd7af9265b069db",
]
community = [
  "https://github.com/ormandj/sglang-glm53-flash-sm120/tree/a547c90c74f1363920287eb80adc88a16d1e7005",
]
local = [
  "configs/glm53-flash-ormandj-sglang-sm120-tp2-499k-c1-adaptive-mtp-recipe.toml",
  "configs/glm53-flash-ormandj-sglang-sm120-tp2-499k-adaptive-mtp-recipe.toml",
  "docs/findings/2026-09-02-glm53-sglang-sm120-qualification-evidence/run-plan.json",
  "docs/findings/2026-09-02-glm53-sglang-sm120-vram-policy-reclassification.json",
]