Qwen4-Exp: a tiny toolchain fixture

A small, independently initialized random-weight reference model for learning, debugging, and reproducing QFS capture workflows. It is a base/root fixture, not a quantized child.

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 checkpoint was initialized directly for an architecture test. It was not fine-tuned from a production model and does not inherit that model's trained weights. Architecture/configuration lineage is documented separately from weight lineage.

Browse the Random Architecture Fixtures collection. A random base may also serve as the common source for an aligned quantization family.

At a glance

Property Observed value
Artifact role Base/reference model; capture role root
Serialized top-level weight files 706,064 bytes (0.673 MiB); metadata, tokenizer and evidence excluded
Generated parameters 342,212
Saved semantic tensors 173 (parameters and buffers are not interchangeable)
Fixture vocabulary 264 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

Complete native Qwen4ExpForConditionalGeneration wrapper with three DeltaNet layers and one QSA layer, four gated residual streams, MoE, real bigram/trigram PLE and a small vision tower. PLE convolution is deliberately randomly initialized to exercise it (trainable does not mean trained). Text-only proof; no MTP.

The repository file inventory includes config.json, generation_config.json, tokenizer.json, tokenizer_config.json, build-manifest.json, requirements-cpu.txt. 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.

Additional build caveats:

  • Random, untrained, not distilled or a behavioral approximation of upstream.
  • Native MTP is not implemented; omitted entirely without unmatched or fabricated tensors.
  • Real tiny vision module included; reproduction evidence is text-only, not image/video quality validation.
  • Learned means trainable parameterization, not trained weights.
  • Source upstream weights/config/card use Qwen Community License 1.0; no upstream weights or config files are redistributed. Native Transformers source has Apache-2.0 headers.

Model family, root dataset and evidence

This model is the base/root of its own random fixture family, not a reproduction of the trained upstream model. The fidelity-root dataset repository is the family reference location. A link is not a claim that registration or publication has completed.

The historical CPU evidence bundle retains two independent captures at reproduction/first/ and reproduction/repeat/, plus reproduction/comparison/. Its repository root is a receipt bundle, not a single canonical QFS dataset. Those recorded same-machine/same-stack forced comparisons reported 0.0 nats on 252 synthetic scored positions; that is not a trained-quality result or a transferable hardware floor. The original detailed receipt and caveats remain authoritative.

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-fixture-root-captures-v1 --repo-type dataset \
  --revision f53b204091c988ce4a2161af81886f3018745559 --include 'roots/qwen4_exp/**' --local-dir "$WORK/evidence"
"$WORK/replay-env/bin/python" "$QFS/bin/fidelity_dataset.py" verify \
  "$WORK/evidence/roots/qwen4_exp/first" --verify-tensors
"$WORK/replay-env/bin/python" "$QFS/bin/fidelity_dataset.py" verify \
  "$WORK/evidence/roots/qwen4_exp/repeat" --verify-tensors
"$WORK/replay-env/bin/python" "$QFS/bin/fidelity_dataset.py" compare \
  --reference "$WORK/evidence/roots/qwen4_exp/first" \
  --candidate "$WORK/evidence/roots/qwen4_exp/repeat" \
  --out "$WORK/replayed" --device cpu --replay-device numpy --replay-dtype float32 \
  --vocab-chunk 8192 --verify-tensors --self-compare --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/qwen4-exp-tiny-random-bf16 --revision 90fcdd52d45a200a1b6d446886638af14957117c --local-dir "$WORK/model"
"$WORK/replay-env/bin/hf" download malaiwah/qwen4-exp-tiny-random-bf16 --revision 90fcdd52d45a200a1b6d446886638af14957117c --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/qwen4_exp/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 qwen4_exp --model-dir "$WORK/model" \
  --model-repository malaiwah/qwen4-exp-tiny-random-bf16 --model-revision 90fcdd52d45a200a1b6d446886638af14957117c \
  --panel "$WORK/inputs/roots/qwen4_exp/input-panel" --tokenizer-root "$WORK/source" \
  --author "$AUTHOR" --dataset-repository "$AUTHOR/qwen4-exp-tiny-random-bf16-capture" \
  --dataset-id "fidelity--$AUTHOR.qwen4-exp-tiny-random-bf16" --out "$WORK/workflow"

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/qwen4-exp-tiny-fidelity-root-v1@c6e1af0383df78006816ca1af067b4c5374bd7c1. 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.

Upstream Qwen3.8-Flash-Next uses Qwen Community License 1.0, including attribution and commercial Model-as-a-Service/AI Work Assistant conditions; it is not MIT. The MIT fixture contains independently generated random weights, original scripts/tokenizer/synthetic text; this does not relicense Qwen’s upstream release.

Immutable provenance, historical cards, source inventories and full caveats

Selected original provenance fields (full tensor/component evidence remains in the linked inventories):

{
  "architecture_inspiration": {
    "repository": "Qwen/Qwen3.8-Flash-Next",
    "revision": "de4b8e4d43b917e7706784d8bb445c9af86a3540"
  },
  "generation": "Native complete Qwen4ExpForConditionalGeneration FP32 random initialization; PLE dilated convolution additionally normally initialized using the same seed stream; whole checkpoint rounded to BF16.",
  "generator_sha256": "38bc663ac21b9ffb52a2d93578abeb685e6751bb7a09b8102ae67a1dcc7c93ff",
  "limitations": [
    "Random, untrained, not distilled or a behavioral approximation of upstream.",
    "Native MTP is not implemented; omitted entirely without unmatched or fabricated tensors.",
    "Real tiny vision module included; reproduction evidence is text-only, not image/video quality validation.",
    "Learned means trainable parameterization, not trained weights.",
    "Source upstream weights/config/card use Qwen Community License 1.0; no upstream weights or config files are redistributed. Native Transformers source has Apache-2.0 headers."
  ],
  "parameter_count": 342212,
  "seed": 20260907,
  "versions": {
    "safetensors": "0.8.0",
    "tokenizers": "0.23.2",
    "torch": "2.11.0+cpu",
    "transformers": "5.16.1"
  }
}
Downloads last month
-
Safetensors
Model size
342k params
Tensor type
I64
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collections including malaiwah/qwen4-exp-tiny-random-bf16