GLM MoE DSA — fp8-block32: a tiny toolchain fixture
A fp8-block32 storage/reader fixture, built from a tiny random reference checkpoint. Use it to inspect packing, reconstruction, scope accounting, and own-head fidelity comparisons—not to choose a production quantizer.
These weights are untrained, not an assistant, and not a language-quality benchmark. Generated text has no useful semantic quality. No upstream trained weights or training data are implied by an architecture name.
Weight lineage
This is a quantization of a shared native checkpoint, not an independent random initialization and not a fine-tune. HF base_model / base_model_relation: quantized metadata names the real source model.
Exact construction source: malaiwah/glm-moe-dsa-tiny-random-bf16@45563636ef723acfb826755493447dc40c7a0c37.
All 8 derivatives in this family were measured against the same complete source checkpoint identity:
800be70604bef0c3adfb429774f44756d60bf23d141e82d24a032ce25ce0451e
That identity binds config and weight bytes; equal architecture names or random seeds are not used as a substitute. Quantized storage cases use round-to-nearest packing and do not claim GPTQ/AWQ/ModelOpt optimization or calibration.
Browse the Matched-Weight Quantization Families collection.
At a glance
| Property | Observed value |
|---|---|
| Artifact role | Child storage fixture; captured role quant; classification lossy |
| Serialized top-level weight files | 342,696 bytes (0.327 MiB); metadata, tokenizer and evidence excluded |
| Source-model generated parameters (before packing) | 277,824 |
| Fixture vocabulary | 260 tokens; independent byte tokenizer, not upstream vocabulary |
| CPU stack | Python 3.12; Torch 2.11.0+cpu; Transformers 5.16.1; two Torch threads in the recorded capture workflow |
| Remote model code | Not required: native Transformers class behind QFS |
Size is serialized artifact size, not runtime RAM or a capacity/performance guarantee. Packed-array element counts are not model parameter counts.
What is actually included
Four text decoder layers (one dense, three MoE), MLA attention, alternating full/shared DSA indexers, 8 routed experts/top-2 plus one shared expert, and a complete untied vocabulary head. Native FP32 router buffers are retained; no MTP.
Storage intervention: fp8-block32; random FORMAT fixture.
- GLM MoE DSA; full random tiny checkpoint; header-derived GGUF geometry; not all GGUF architectures
- Output-head policy: native. The comparison replays each side through its own sealed head, including any head error; the reference head is not substituted.
- Weights reconstructed to BF16; dynamic FP8 activation quantization not captured; no serving-kernel parity claim
The repository file inventory includes config.json, generation_config.json, tokenizer.json, tokenizer_config.json, scope.json, build.json. Exact build/runtime/license inventories are linked below. A file may describe historical provenance without being an executable entry point.
Good community uses—and boundaries
- Learn how to download pinned artifacts, seal a small synthetic token panel, capture hidden states and replay a full vocabulary head.
- Debug model-family adapters, strict tensor loading, storage decoders, or reproducibility tooling without downloading a production-sized checkpoint.
- Reproduce a narrowly scoped result, report an adapter/reader regression, and retain the source, panel and runtime identities needed to explain it.
Not established: trained-model accuracy; useful instruction following; quantizer optimization quality; original production-weight compatibility; GPU/NPU/serving-kernel parity; cross-hardware determinism; long-context behavior outside the recorded panel; throughput or paid-compute admission.
RTN is round-to-nearest packing, not optimization. These cases do not run GPTQ, AWQ or AutoRound optimization, calibrated ModelOpt/CT/QAT training, or activation-aware tuning. CPU reconstruction does not execute the original packed GEMM or serving activation arithmetic.
Model family, root dataset and evidence
Exact construction source: malaiwah/glm-moe-dsa-tiny-random-bf16@45563636ef723acfb826755493447dc40c7a0c37. This is the actual source pin; later documentation commits do not rewrite that history. Family fidelity-root dataset repository and storage evidence bundle. The root model is separate; this child must not be registered or represented as the base model. Canonical roots and their evidence are published; registry links distinguish native bases from child/control artifacts.
Recorded own-head result
| Measurement | Recorded value |
|---|---|
| Mean KL(reference ∥ candidate) | 0.0001992552179142569 nats |
| Scored positions | 252; synthetic, not benchmark data |
| Comparability | advisory; reconstruction/activation omissions remain in force |
| Top-1 agreement | 0.8611111111111112 on this panel only |
Full comparison receipt includes per-context/tokenwise evidence, comparison gates and disclosures. Receipt self-digest: 409c3c36bee9b60ae381787542c2c96ce8f56a1e8f113a0b9dff7a0c5204650c. No threshold or usable determinism floor is invented here.
Material disclosures from the observed receipt:
- HEAD-1d: each side replayed through its own sealed head (reference 2364995d4009, candidate 2364995d4009); head error is inside the measurement, as under HEAD-2, and nothing is substituted. The heads are content-identical.
- candidate was captured from a WEIGHTS-ONLY RECONSTRUCTION (fp8-block-dequant-to-bf16, output bfloat16). The stored weights were decoded before the model forward; native quantized GEMM and serving activation arithmetic are not measured. Decoder provenance is in the sealed runtime receipt. The comparison is advisory.
- candidate was captured from a bf16 materialisation of its block-scaled FP8 weights (fp8-block-dequant-to-bf16); the checkpoint declares activation_scheme: dynamic, so a served W8A8 deployment also quantizes activations per token at runtime. That term is not in this number, which is expected to understate the served divergence; it is not a mathematical bound. The comparison is advisory.
Runtime requirements and safe local reproduction
Replay the published evidence without loading a model
This uses QFS's existing NumPy FP64 comparator in a Torch-free environment. It reads the stored hidden states and each side's own head. No model forward, remote model code, GPU, upload or registry mutation is involved. Runtime receipts name the actual backend; last-bit differences from another FP64 implementation are not a new quality claim. Synthetic exact controls remain zero.
Set QFS to a reviewed Quant Fidelity Suite checkout and use Bash:
: "${QFS:?Set QFS to your reviewed QFS checkout}"
WORK=$(mktemp -d)
export OMP_NUM_THREADS=2 MKL_NUM_THREADS=2 OPENBLAS_NUM_THREADS=2
python3.12 -m venv "$WORK/replay-env"
"$WORK/replay-env/bin/pip" install 'numpy==2.5.3' 'huggingface-hub==1.30.0'
"$WORK/replay-env/bin/hf" download malaiwah/qfs-existing-tiny-cpu-format-v1 --repo-type dataset \
--revision 2b5c947281a92d1f104ee17fdcc44a0104768a45 --include 'raw/candidates/fp8-block32/evidence/**' --local-dir "$WORK/evidence"
"$WORK/replay-env/bin/python" "$QFS/bin/fidelity_dataset.py" verify \
"$WORK/evidence/raw/candidates/fp8-block32/evidence/reference" --verify-tensors
"$WORK/replay-env/bin/python" "$QFS/bin/fidelity_dataset.py" verify \
"$WORK/evidence/raw/candidates/fp8-block32/evidence/fp8-block32" --verify-tensors
"$WORK/replay-env/bin/python" "$QFS/bin/fidelity_dataset.py" compare \
--reference "$WORK/evidence/raw/candidates/fp8-block32/evidence/reference" \
--candidate "$WORK/evidence/raw/candidates/fp8-block32/evidence/fp8-block32" \
--out "$WORK/replayed" --device cpu --replay-device numpy --replay-dtype float32 \
--vocab-chunk 8192 --verify-tensors --own-heads --force-compute
Reconstructed format comparisons are intentionally advisory and normally return exit code 2 while writing a valid receipt. Inspect that receipt; do not silence refusals or interpret an advisory result as a production-quality ranking.
Capture the actual checkpoint
Capture uses a separate pinned Torch CPU environment. The input below is the
original token-panel format, not a sealed capture's internal panel/ folder.
The native source, tokenizer and model revisions remain explicit. Set AUTHOR
to your own HF handle; the dataset repository argument is attribution only and
nothing is uploaded by these commands.
: "${AUTHOR:?Set AUTHOR to your Hugging Face handle}"
"$WORK/replay-env/bin/hf" download malaiwah/glm-moe-dsa-tiny-random-fp8-block32-rtn-format --revision 6ada7f419a5a5cca2ad651f140e13d21a8057a7b --local-dir "$WORK/model"
"$WORK/replay-env/bin/hf" download malaiwah/glm-moe-dsa-tiny-random-bf16 --revision 45563636ef723acfb826755493447dc40c7a0c37 --local-dir "$WORK/source"
"$WORK/replay-env/bin/hf" download malaiwah/qfs-fixture-root-captures-v1 --repo-type dataset \
--revision f53b204091c988ce4a2161af81886f3018745559 --include 'requirements-capture.txt' --include 'roots/glm_moe_dsa/input-panel/**' \
--local-dir "$WORK/inputs"
python3.12 -m venv "$WORK/capture-env"
"$WORK/capture-env/bin/pip" install -r "$WORK/inputs/requirements-capture.txt"
"$WORK/capture-env/bin/python" "$QFS/bin/fidelity_dataset.py" architectures prepare \
--architecture glm_moe_dsa --model-dir "$WORK/model" \
--model-repository malaiwah/glm-moe-dsa-tiny-random-fp8-block32-rtn-format --model-revision 6ada7f419a5a5cca2ad651f140e13d21a8057a7b \
--panel "$WORK/inputs/roots/glm_moe_dsa/input-panel" --tokenizer-root "$WORK/source" \
--author "$AUTHOR" --dataset-repository "$AUTHOR/glm-moe-dsa-tiny-random-fp8-block32-rtn-format-capture" \
--dataset-id "fidelity--$AUTHOR.glm-moe-dsa-tiny-random-fp8-block32-rtn-format" --out "$WORK/workflow" \
--role quant --scope-file "$WORK/model/scope.json" --codec fp8_e4m3 --bits 8.0 \
--reference hf://malaiwah/glm-moe-dsa-tiny-fidelity-root-v1@b8ed427805abdfd6b8b20db10ca5107e840d0497
Inspect workflow.json. This launcher executes its exact capture/verification
commands and selects the Torch-free interpreter only for the final comparison:
export OMP_NUM_THREADS=2 MKL_NUM_THREADS=2 OPENBLAS_NUM_THREADS=2
"$WORK/replay-env/bin/python" - "$WORK/workflow/workflow.json" <<'PY'
import json, subprocess, sys
workflow = json.load(open(sys.argv[1]))
for step in workflow["commands"]:
argv = list(step["argv"])
if step["step"] == "compare":
argv[0] = sys.executable
result = subprocess.run(argv)
if result.returncode:
raise SystemExit(result.returncode)
PY
Use the actual root at
malaiwah/glm-moe-dsa-tiny-fidelity-root-v1@b8ed427805abdfd6b8b20db10ca5107e840d0497.
The community collection groups models and captures. Custom code,
where required above, is explicitly pinned and executed only after your consent;
hash verification is provenance, not a sandbox.
Licensing and detailed provenance
The fixture repository retains its mit license in LICENSE. This covers the fixture only according to that exact text; architecture inspiration is not relicensing of upstream weights, cards, code, or configuration. Dependencies retain their own licenses (native Transformers implementation: Apache-2.0). No upstream trained tensors are claimed to be copied.
The exact source license is retained, unchanged, from malaiwah/glm-moe-dsa-tiny-random-bf16. The storage conversion does not grant new upstream rights.
Immutable provenance, historical cards, source inventories and full caveats
- Model/card snapshot used while authoring: malaiwah/glm-moe-dsa-tiny-random-fp8-block32-rtn-format@6ada7f419a5a5cca2ad651f140e13d21a8057a7b.
- Full preserved earlier model card, SHA-256
254f3a7d95d6c3f1f24df320f783e6e6eb790b091e35f8ce12dfac281f43847d. This is an immutable historical record, including original build pins, measured resource tables, command logs, limitations and failed-attempt provenance. Historical publisher commands are not part of the local-use recipe above. - build.json.
- scope.json.
- Retained reproduction tools/dependencies and source-inventory.json. Source paths in recorded argv are historical execution locations; restore the dataset’s raw trees and map them to your own workspace. Do not substitute moving upstream branches or an unreviewed publisher workflow.
Selected original provenance fields (full tensor/component evidence remains in the linked inventories):
{
"source": {
"repository": "malaiwah/glm-moe-dsa-tiny-random-bf16",
"revision": "45563636ef723acfb826755493447dc40c7a0c37"
},
"format": "fp8-block32; random FORMAT fixture",
"classification": "lossy",
"architecture_restrictions": [
"GLM MoE DSA; full random tiny checkpoint; header-derived GGUF geometry; not all GGUF architectures"
],
"activation_omissions": [
"Weights reconstructed to BF16; dynamic FP8 activation quantization not captured; no serving-kernel parity claim"
],
"head_policy": "native"
}
Additional original storage-build provenance (tensor entries remain in build.json):
{
"all_source_tensors_preserved": true,
"changed_canonical_tensors": [
"model.layers.0.mlp.down_proj.weight",
"model.layers.0.mlp.gate_proj.weight",
"model.layers.0.mlp.up_proj.weight",
"model.layers.0.self_attn.indexer.wk.weight",
"model.layers.0.self_attn.indexer.wq_b.weight",
"model.layers.0.self_attn.kv_a_proj_with_mqa.weight",
"model.layers.0.self_attn.kv_b_proj.weight",
"model.layers.0.self_attn.o_proj.weight",
"model.layers.0.self_attn.q_a_proj.weight",
"model.layers.0.self_attn.q_b_proj.weight",
"model.layers.1.mlp.experts.0.down_proj.weight",
"model.layers.1.mlp.experts.0.gate_proj.weight",
"model.layers.1.mlp.experts.0.up_proj.weight",
"model.layers.1.mlp.experts.1.down_proj.weight",
"model.layers.1.mlp.experts.1.gate_proj.weight",
"model.layers.1.mlp.experts.1.up_proj.weight",
"model.layers.1.mlp.experts.2.down_proj.weight",
"model.layers.1.mlp.experts.2.gate_proj.weight",
"model.layers.1.mlp.experts.2.up_proj.weight",
"model.layers.1.mlp.experts.3.down_proj.weight",
"model.layers.1.mlp.experts.3.gate_proj.weight",
"model.layers.1.mlp.experts.3.up_proj.weight",
"model.layers.1.mlp.experts.4.down_proj.weight",
"model.layers.1.mlp.experts.4.gate_proj.weight",
"model.layers.1.mlp.experts.4.up_proj.weight",
"model.layers.1.mlp.experts.5.down_proj.weight",
"model.layers.1.mlp.experts.5.gate_proj.weight",
"model.layers.1.mlp.experts.5.up_proj.weight",
"model.layers.1.mlp.experts.6.down_proj.weight",
"model.layers.1.mlp.experts.6.gate_proj.weight",
"model.layers.1.mlp.experts.6.up_proj.weight",
"model.layers.1.mlp.experts.7.down_proj.weight",
"model.layers.1.mlp.experts.7.gate_proj.weight",
"model.layers.1.mlp.experts.7.up_proj.weight",
"model.layers.1.mlp.shared_experts.down_proj.weight",
"model.layers.1.mlp.shared_experts.gate_proj.weight",
"model.layers.1.mlp.shared_experts.up_proj.weight",
"model.layers.1.self_attn.kv_a_proj_with_mqa.weight",
"model.layers.1.self_attn.kv_b_proj.weight",
"model.layers.1.self_attn.o_proj.weight",
"model.layers.1.self_attn.q_a_proj.weight",
"model.layers.1.self_attn.q_b_proj.weight",
"model.layers.2.mlp.experts.0.down_proj.weight",
"model.layers.2.mlp.experts.0.gate_proj.weight",
"model.layers.2.mlp.experts.0.up_proj.weight",
"model.layers.2.mlp.experts.1.down_proj.weight",
"model.layers.2.mlp.experts.1.gate_proj.weight",
"model.layers.2.mlp.experts.1.up_proj.weight",
"model.layers.2.mlp.experts.2.down_proj.weight",
"model.layers.2.mlp.experts.2.gate_proj.weight",
"model.layers.2.mlp.experts.2.up_proj.weight",
"model.layers.2.mlp.experts.3.down_proj.weight",
"model.layers.2.mlp.experts.3.gate_proj.weight",
"model.layers.2.mlp.experts.3.up_proj.weight",
"model.layers.2.mlp.experts.4.down_proj.weight",
"model.layers.2.mlp.experts.4.gate_proj.weight",
"model.layers.2.mlp.experts.4.up_proj.weight",
"model.layers.2.mlp.experts.5.down_proj.weight",
"model.layers.2.mlp.experts.5.gate_proj.weight",
"model.layers.2.mlp.experts.5.up_proj.weight",
"model.layers.2.mlp.experts.6.down_proj.weight",
"model.layers.2.mlp.experts.6.gate_proj.weight",
"model.layers.2.mlp.experts.6.up_proj.weight",
"model.layers.2.mlp.experts.7.down_proj.weight",
"model.layers.2.mlp.experts.7.gate_proj.weight",
"model.layers.2.mlp.experts.7.up_proj.weight",
"model.layers.2.mlp.shared_experts.down_proj.weight",
"model.layers.2.mlp.shared_experts.gate_proj.weight",
"model.layers.2.mlp.shared_experts.up_proj.weight",
"model.layers.2.self_attn.indexer.wk.weight",
"model.layers.2.self_attn.indexer.wq_b.weight",
"model.layers.2.self_attn.kv_a_proj_with_mqa.weight",
"model.layers.2.self_attn.kv_b_proj.weight",
"model.layers.2.self_attn.o_proj.weight",
"model.layers.2.self_attn.q_a_proj.weight",
"model.layers.2.self_attn.q_b_proj.weight",
"model.layers.3.mlp.experts.0.down_proj.weight",
"model.layers.3.mlp.experts.0.gate_proj.weight",
"model.layers.3.mlp.experts.0.up_proj.weight",
"model.layers.3.mlp.experts.1.down_proj.weight",
"model.layers.3.mlp.experts.1.gate_proj.weight",
"model.layers.3.mlp.experts.1.up_proj.weight",
"model.layers.3.mlp.experts.2.down_proj.weight",
"model.layers.3.mlp.experts.2.gate_proj.weight",
"model.layers.3.mlp.experts.2.up_proj.weight",
"model.layers.3.mlp.experts.3.down_proj.weight",
"model.layers.3.mlp.experts.3.gate_proj.weight",
"model.layers.3.mlp.experts.3.up_proj.weight",
"model.layers.3.mlp.experts.4.down_proj.weight",
"model.layers.3.mlp.experts.4.gate_proj.weight",
"model.layers.3.mlp.experts.4.up_proj.weight",
"model.layers.3.mlp.experts.5.down_proj.weight",
"model.layers.3.mlp.experts.5.gate_proj.weight",
"model.layers.3.mlp.experts.5.up_proj.weight",
"model.layers.3.mlp.experts.6.down_proj.weight",
"model.layers.3.mlp.experts.6.gate_proj.weight",
"model.layers.3.mlp.experts.6.up_proj.weight",
"model.layers.3.mlp.experts.7.down_proj.weight",
"model.layers.3.mlp.experts.7.gate_proj.weight",
"model.layers.3.mlp.experts.7.up_proj.weight",
"model.layers.3.mlp.shared_experts.down_proj.weight",
"model.layers.3.mlp.shared_experts.gate_proj.weight",
"model.layers.3.mlp.shared_experts.up_proj.weight",
"model.layers.3.self_attn.kv_a_proj_with_mqa.weight",
"model.layers.3.self_attn.kv_b_proj.weight",
"model.layers.3.self_attn.o_proj.weight",
"model.layers.3.self_attn.q_a_proj.weight",
"model.layers.3.self_attn.q_b_proj.weight"
],
"claim": "FORMAT fixture; weights-reconstructed advisory; activation-not-captured; no GPU validation",
"format": "fp8_e4m3",
"license": "mit",
"own_head": true,
"quantization_config": {
"activation_scheme": "dynamic",
"fmt": "e4m3",
"modules_to_not_convert": [
"lm_head",
"model.embed_tokens",
"model.layers.0.input_layernorm",
"model.layers.0.post_attention_layernorm",
"model.layers.0.self_attn.indexer.k_norm",
"model.layers.0.self_attn.indexer.weights_proj",
"model.layers.0.self_attn.kv_a_layernorm",
"model.layers.0.self_attn.q_a_layernorm",
"model.layers.1.input_layernorm",
"model.layers.1.mlp.gate",
"model.layers.1.post_attention_layernorm",
"model.layers.1.self_attn.kv_a_layernorm",
"model.layers.1.self_attn.q_a_layernorm",
"model.layers.2.input_layernorm",
"model.layers.2.mlp.gate",
"model.layers.2.post_attention_layernorm",
"model.layers.2.self_attn.indexer.k_norm",
"model.layers.2.self_attn.indexer.weights_proj",
"model.layers.2.self_attn.kv_a_layernorm",
"model.layers.2.self_attn.q_a_layernorm",
"model.layers.3.input_layernorm",
"model.layers.3.mlp.gate",
"model.layers.3.post_attention_layernorm",
"model.layers.3.self_attn.kv_a_layernorm",
"model.layers.3.self_attn.q_a_layernorm",
"model.norm"
],
"quant_method": "fp8",
"weight_block_size": [
32,
32
]
},
"quantizer": "engines/tools/fp8_quantize.py",
"quantizer_sha256": "57dccad7d7c63ce8ca368546b2540fe37f8ae2f1d08a8e5607160e5eb5ddfc02",
"source_checkpoint_sha256": "9efe50a1685e157c1b99c3824094cf4fe269c7d332bdd0006145264949c5cec1",
"source_repository": "malaiwah/glm-moe-dsa-tiny-random-bf16",
"source_revision": "45563636ef723acfb826755493447dc40c7a0c37",
"source_tensor_count": 139
}
- Downloads last month
- 14
Model tree for malaiwah/glm-moe-dsa-tiny-random-fp8-block32-rtn-format
Base model
malaiwah/glm-moe-dsa-tiny-random-bf16