Skip to content

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

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

glm53-flash-ormandj-sglang-sm120-tp2-240k-c1-adaptive-mtp-recipe.toml · 8,013 bytes · SHA-256 99bc13b4822263dce6cc2ac685bd3fd63f3a8a851ed5550ccbaa1886567939ac

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 245760
Hardware 2x NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition · sm_120 · 192 GB
Served model name glm53-flash-ormandj-sglang-sm120-tp2-240k-c1-adaptive-mtp
Suited for qualification, compatibility, text, tool-use, structured-output, multimodal, long-context, concurrency, speculative-decoding
Origin 2026-09-02 fully qualified 245760-token C1 conservative fallback, superseded as the selected challenger by the verified 393216-token profile

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-240k-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-240k-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 245760-token C1 conservative fallback, superseded as the selected challenger by the verified 393216-token profile"
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. This final fix-forward keeps one running request, five recurrent-state slots, and batch-size-one graphs, and reduces the shared context/token pool to 245760 so host-visible free VRAM remains above 3 GiB per card after deep text, multimodal, quality, and endurance workloads."

[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 = 245760
port = 39118
startup_timeout_seconds = 3600
served_model_name = "glm53-flash-ormandj-sglang-sm120-tp2-240k-c1-adaptive-mtp"
ipc = "host"
shm_size = "64gb"
ulimits = ["memlock=-1", "nofile=1048576:1048576", "stack=67108864:67108864"]
named_volumes = ["glm53-ormandj-sglang-v61-rc14-adaptive-240k-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-240k-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 245760",
  "--max-total-tokens 245760",
  "--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 = "Conservative fallback after the exact 499712-token/C4 profile left 49 MiB free per card, the 499712-token/C1 derivative left 2347 MiB at startup, and the 393216-token/C1 derivative fell from 3351 to 2101 MiB after the full workload battery. This variant changes only the advertised context and shared token pool to 245760 while keeping one running request, five Mamba slots, and batch-size-one graphs. It passed the complete qualification battery and retained 3487 MiB/card after workload. It remains verified, but the 393216-token profile supersedes it as the selected challenger under the operator's explicit model-only reserve waiver. Router and promotion remain separately gated."

[recipe.fit]
suited = ["qualification", "compatibility", "text", "tool-use", "structured-output", "multimodal", "long-context", "concurrency", "speculative-decoding"]
rationale = "Verified conservative fallback that preserves at least 3 GiB/card after workload; the 393216-token profile is the selected challenger under an explicit model-only reserve waiver."

[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-393k-c1-adaptive-mtp-recipe.toml",
  "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",
]