Skip to content
Preview

Blueprint · legacy engine glm5_next

GLM-5.3-Flash-NVFP4

glm-5.3-flash-nvfp4-tp3-512k on NVIDIA GB10 (DGX Spark)

GLM-5 hybrid: KDA and DSA sparse latent attention under 4-stream hyper-connections, dense SwiGLU then 288-expert MoE, MTP draft head

Preview — unsigned Coming soon: no signed .kbp exists for a preview.
Hardware
GB10 ×3NVIDIA GB10 (DGX Spark) · sm_121f
Layers
4511 sparse attention (DSA) / 34 linear attention
Kernels
3422 modules · 20 families
Decode step
1,411launches · 1,299 kernel groups
Graph
1,740nodes · 2,504 edges
Context
512kmax sequence length

Architecture

Plan arm decode n=1 · digest 1ff131e588e3 · 5 templates over 45 layers. Drag to orbit (pan in 2D); zoom with the wheel, a pinch or the zoom buttons; select a node for its kernel and numerics.

45 layers: 11 sparse attention (DSA), 34 linear attention

The interactive 3D view needs JavaScript; the layer sequence and its templates are below.

Loading the architecture…

    Templates and layer sequence

    Layer templates
    TemplateBlocksNodesEdgesFused groupsUsed by
    embedembed210once
    dsa+moedsa + moe3951811 layers
    kda+mlpkda + mlp324343 layers
    kda+moekda + moe3954731 layers
    headhead430once

    Kernels

    34 entries in 22 modules, 20 kernel families (0 outside any family). The decode step launches 1,411 kernels in 1213 device groups, plus 2 on the host.

    84 kernel groups of this plan have no kernel on this hardware class (novel): the planner found no fusion rule for them. A legacy engine runs those nodes through its own layer code, which the plan does not describe.

    Kernels the plan launches
    Kernel (module::func)FamilyCompute unitGroups
    causal_conv1d::causal_conv1d_update_l2normcausal_conv1d_l2normcuda_core34
    dsa_indexer::dsa_indexer_storedsa_indexercuda_core11
    dsa_indexer_rows::dsa_expand_selection_rowsdsa_indexercuda_core11
    dsa_scores_warp::dsa_index_scores_heads_pageddsa_indexercuda_core11
    dsa_scores_warp::dsa_pool_keys_store_rowsdsa_indexercuda_core11
    dsa_topk_mc::dsa_topk_mc_collectdsa_indexercuda_core11
    dsa_topk_mc::dsa_topk_mc_passdsa_indexercuda_core11
    gemv::dense_gemv_bf16dense_bf16cuda_core12
    gemv::dense_gemv_bf16_fp32outdense_bf16cuda_core64
    glm5next_dsa_mla_decode::glm5next_dsa_mla_decode_fp8glm_mla_decodecuda_core11
    glm5next_ffn::glm5next_moe_combineglm_moe_combinememory42
    glm5next_ffn::glm5next_router_topk_rankglm_router_topkmemory42
    glm5next_ffn::glm5next_swiglu_clampglm_swiglu_clampmemory87
    glm5next_mhc::glm5next_hc_expandglm_mhcmemory1
    glm5next_mhc::glm5next_hc_headglm_mhcmemory1
    glm5next_mhc::glm5next_hc_postglm_mhcmemory90
    glm5next_mhc_c1::glm5next_hc_pre_norm_c1glm_mhccuda_core90
    glm5next_mla_latent_write::glm5next_mla_latent_write_fp8glm_mla_latent_writememory11
    kda_gate::kda_gate_bf16kda_gatesmemory34
    kda_layer_ops::kda_o_norm_gated_bf16kda_o_normmemory34
    kda_layer_ops::kda_pack_qkv_bf16kda_packmemory34
    kda_layer_ops::kda_sigmoid_bf16_f32kda_gatesmemory34
    kda_recurrent::kda_recurrent_decode_bf16_smemkda_recurrentcuda_core34
    nllb_encoder::nllb_layernorm_bf16layer_normmemory11
    norm::rms_normrms_normmemory1
    rms_norm_vanilla::rms_norm_vanillarms_normmemory11
    w4a16_gemv::w4a16_gemvw4a16_gemvcuda_core238
    w4a4_gemv_mx::w4a4_gemv_mx8w4a4_mxtensor_core:mma.sync.m16n8k64.mxf4nvf4.block_scale6
    w4a4_gemv_mx::w4a4_quant_rowsw4a4_mxmemory6
    w4a4_gemv_mx_moe::w4a4_gemv_mx8_moe_slots_sweep_csw4a4_mx_statictensor_core:mma.sync.m16n8k64.mxf4nvf4.block_scale84
    w4a4_gemv_mx_moe::w4a4_quant_rows_staticw4a4_mx_statictensor_core:mma.sync.m16n8k64.mxf4nvf4.block_scale84
    w8a8_act_quant::w8a8_act_quant_roww8a8_act_quantmemory101
    w8a8_gemv::w8a8_gemv_rowscale_mb1_ku8wxaytensor_core:mma.sync.m16n8k32.e4m3101
    w8a8_gemv::w8a8_gemv_rowscale_mb1_ku8_split4wxaytensor_core:mma.sync.m16n8k32.e4m311

    Precision

    Tier recipe, table glm-5.3-flash-nvfp4-tp3 (f1e299043e34). KV cache fp8. Formats are the plan's: weight as stored, activation as the kernel reads it.

    Weighted nodes

    Weight and activation formats of the weighted nodes
    WeightActivationNodes
    nvfp4/g16bf16322
    fp8/channelfp8/token123
    bf16f3290
    nvfp4/g16nvfp4/g1690
    bf16bf1687

    Node outputs

    Output formats of every node
    Output formatNodes
    bf16904
    f32411
    fp8/token101
    bf16,f32,f3290
    nvfp4/g1690
    f32,i3242
    f32,f3234
    i3212

    Plan arms

    Every (mode, rows) arm the instance lists, fused by the planner; a loader with the same rule set re-plans each one and must reproduce its digest.

    Plan arms
    ModeRowsGroupsLaunchesFused edgesMaterializedDigest
    decode11,2991,4113961,5441ff131e588e3
    multi_seq21,1621,7905221,4186901b4656aca
    multi_seq41,1622,2125221,41897f9f6bb5b99
    multi_seq81,1623,0565221,418b7345097c703
    multi_seq121,1843,9225221,418c30a839202eb
    multi_seq161,1844,7665221,418c39ed89d8b0f
    multi_seq241,672295341,906d242da1f6372route gdn_state_slots_fragmented: 1672 groups, f2d841d37452
    multi_seq321,672295341,906415a2b942fc2route gdn_state_slots_fragmented: 1672 groups, 501954598eb5
    multi_seq481,672196341,9065ed8f0301f4eroute gdn_state_slots_fragmented: 1672 groups, 0466e915dcab
    multi_seq641,672196341,906ae9c63121d47route gdn_state_slots_fragmented: 1672 groups, b1a28ab12a54
    multi_seq961,672196341,906e908fdfdccb6route gdn_state_slots_fragmented: 1672 groups, e90a27d394bf
    multi_seq1281,672196341,9062a6b51a59e1froute gdn_state_slots_fragmented: 1672 groups, 30d2adaf1482
    verify21,1731,8365221,4185d2226cbcbc1
    verify31,1732,0815221,4183446f07c8c41
    verify41,1732,3265221,418063961fa91fb
    verify81,1733,2985221,4183bc1c08e84d2
    draft137120388969b4c107e7

    Performance

    Serve throughput

    Measured serve throughput with fingerprints
    MeasureValueRunsStatusConditions and sourceFingerprint
    C=1 decode, 1k context50.52 tok/s50.12 · 50.52 · 50.8preliminarymedian of runs p1-p3 (recipe defaults); single harness, bring-up ctxsweep, C=1, OSL 512
    profile glm53-tp3-512k-fast12/PROVENANCE.txt
    record9e928d609746git6d845c0eebinary377d5214f286argve17fe83b2704env07768e9f8fd7
    C=1 decode, 16k context49.43 tok/s49.07 · 49.43 · 49.52preliminarymedian of runs p1-p3 (recipe defaults); single harness, bring-up ctxsweep, C=1, OSL 512
    profile glm53-tp3-512k-fast12/PROVENANCE.txt
    record9e928d609746git6d845c0eebinary377d5214f286argve17fe83b2704env07768e9f8fd7
    C=1 decode, 64k context47.96 tok/s47.7 · 47.96 · 48.11preliminarymedian of runs p1-p3 (recipe defaults); single harness, bring-up ctxsweep, C=1, OSL 512
    profile glm53-tp3-512k-fast12/PROVENANCE.txt
    record9e928d609746git6d845c0eebinary377d5214f286argve17fe83b2704env07768e9f8fd7
    C=1 decode, 128k context47.96 tok/s47.67 · 47.96 · 47.98preliminarymedian of runs p1-p3 (recipe defaults); single harness, bring-up ctxsweep, C=1, OSL 512; runs p2 and p3 at 128k are throttle-flagged in the record
    profile glm53-tp3-512k-fast12/PROVENANCE.txt
    record9e928d609746git6d845c0eebinary377d5214f286argve17fe83b2704env07768e9f8fd7

    Kernel measurements

    62 per-kernel times (nsys, against the roofline floor): 22 for kernels this plan launches, 40 for kernels outside it. Open the kernel measurements

    Signature and sizes

    Unverified

    This is a preview: no blueprint body has been built or signed, so there is nothing to verify. Its id is a preview: hash of the slug and the plan digest, never a body hash.

    Suite
    mldsa65+ed25519 (ML-DSA-65 and Ed25519; both must verify)
    Key id
    none
    Trust anchor
    none
    Blueprint id
    b707d03d56bb
    Lineage
    2ed80c3cc566 · revision 0
    Body
    not built
    Lite file
    not built
    Full file
    not built
    Download
    No .kbp file exists for a preview: blueprint builds and signing are not available yet.

    Provenance

    Exported by preview: tools/preview/kbp_preview.py over `met circuit plan` (not `met blueprint export`). Engine tree 7f7fb57fc971, planner binary f4735654ee1d (built from c5b9a80e635d). Target gb10/glm-5.3-flash/nvfp4.

    Planner settings

    activation_quantization=adaptivedecode_split_silu=ongemv_sw=onglm_mhc_fused=onglm_moe_expert_layout=tpglm_moe_w4a4_grouped=onglm_router_rows=onglm_router_topk_rank=onkv_cache_dtype=fp8lm_head_dtype=bf16rms_norm_act_quant=offrow_tiers=by_rowsssm_ba_gates_hopper=onssm_batched_recurrent=onssm_h_dtype=f32w4a16_tc=on

    The 17 planner commands
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode decode --rows 1
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode multi_seq --rows 2
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode multi_seq --rows 4
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode multi_seq --rows 8
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode multi_seq --rows 12
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode multi_seq --rows 16
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode multi_seq --rows 24
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode multi_seq --rows 32
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode multi_seq --rows 48
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode multi_seq --rows 64
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode multi_seq --rows 96
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode multi_seq --rows 128
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode verify --rows 2
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode verify --rows 3
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode verify --rows 4
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode verify --rows 8
    • met circuit plan --root <tree> --checkpoint glm-5.3/glm-5.3-flash-nvfp4-tp3-512k --hardware gb10 --precision recipe --format plan --mode draft --rows 1
    The 10 engine files read, with their SHA-256
    Engine files read
    FileSHA-256
    kernels/circuits/INSTANCES.toml126b177aa899
    recipes/glm-5.3/glm-5.3-flash-nvfp4-tp3-512k.yaml6e639ddb73e5
    kernels/gb10/HARDWARE.toml8a787d560510
    kernels/DEVICES.toml256d85840f0e
    kernels/circuits/glm5_next.toml047893d2422d
    kernels/circuits/blocks/glm5_next_kda.toml9486bdea4533
    kernels/circuits/blocks/glm5_next_dsa.tomlfdb3145558a6
    kernels/circuits/blocks/glm5_next_ffn.toml4738cd396a11
    kernels/gb10/common/KERNEL_FAMILIES.toml70c24b8b4764
    kernels/circuits/precision/glm-5.3-flash-nvfp4-tp3.tomlf1e299043e34

    The documents themselves: card.json (kbp-card/v1) and graph.json (kbp-graph/v1).