Clef-Omni Thinker — APEX Quantized (4 tiers)
Four MoE-aware GGUF quantizations of the Cloudflare/clef-omni Thinker backbone (Qwen3-Omni-MoE, 48 layers, 128 routed experts, top-8, 0 shared experts), cut with a layer-wise precision gradient and a diverse importance matrix. Every number in this card was measured on the build machine; commands to reproduce each measurement are given in Verification.
Last verified: 2026-10-19 independent consumer re-verification (I-Mini text-only SystemOne
run end-to-end on a separate CUDA box: Python 3.12.15, transformers 5.19.0, llama.cpp
7f2dd88b0 / tag b11395, CUDA 13.0 — decision received, no BF16, no fallback)
· 2026-10-14 session 2 (4-modality consumer run, 3-tier smoke,
counterfactuals, git lfs fsck, Path A parity record) · 2026-10-14 session 1
(multimodal package, Gates A–F) · 2026-10-13 15:47 UTC (quantization)
Re-verification: see Verification commands — re-run after any llama.cpp upgrade
⚠️ Read this first: what these files are
This repo ships GGUF quantizations of the Thinker text backbone, plus — as of 2026-10-14 — one shared multimodal artifact that makes the SystemOne decision API directly runnable without reconstructing anything.
Clef-Omni is not a chat model. It is a schema-decision model: it takes a state (text, JSON,
images, audio, or video) plus a questions schema, and returns one probability per allowed option
per question in a single forward pass. Its scoring contract lives in joint_schema_model.py,
which requires Cloudflare's original joint head.
| You want to | Use |
|---|---|
Run llama-perplexity / llama-cli / llama-bench on a general Qwen3-Omni Thinker | The four tier GGUFs directly |
| Run the SystemOne / Jev decision API on text/JSON/image/audio/video | clef_apex + one tier + the shared artifact |
| Reconstruct BF16 and serve with the HF release | The 3-command bridge below (legacy, needs the 61 GB release) |
llama-cli, Ollama, LM Studio and generic chat endpoints do not execute CLEF's decision head
and will not reproduce these answers. They generate text; CLEF returns typed option probabilities.
No Ollama or LM Studio integration is offered here, and none is claimed.
Quick start (one tier + one shared artifact)
Read this before cloning: the remaining friction is the toolchain, not the model package. You need a CUDA llama.cpp checkout to build the extractor against, plus a Python environment with pinned ML dependencies. The weights themselves need no conversion, no BF16, no 70 GB download.
Requirement Measured version (pinned on the build machine) Needed for NVIDIA GPU + CUDA driver CUDA 13.0, driver 580.82.07 (validated on RTX PRO 6000 Blackwell) inference llama.cpp checkout + build 529ac893e, CUDA backend (libggml-cuda.sopresent)extractor build + hidden states Python 3.13.16 everything torch (CUDA) 2.11.0+cu130 encoders + head transformers 5.18.0 processor + tower code safetensors 0.8.0 artifact I/O numpy 2.1.3 tensor plumbing Pillow 11.3.0 images (skip for text-only) av 19.0.1 video (skip otherwise) g++ 13.3 compiling clef_hiddenThe rows above record what the build machine ran, not a hard dependency floor. The text-only path was re-verified 2026-10-19 on Python 3.12.15 + transformers 5.19.0 + llama.cpp
7f2dd88b0(b11395): minor-version drift works, and therope_parameterswarnings transformers emits per run are benign. The one non-negotiable: compileclef_hiddenagainst headers from the same llama.cpp revision as thelibllama.soyou link against — any revision, but they must match (see Troubleshooting: silentno embeddings).Peak VRAM measured (image request): I-Mini 14.4 GiB · I-Compact 16.0 GiB · I-Quality 20.6 GiB · I-Balanced 23.1 GiB (Mini peak from the heavier Gate B/E context including the HTTP server; all others from CLI-only runs). Text-only runs lower.
git clone https://huggingface.co/moeshawky/clef-omni-apex && cd clef-omni-apex
# 1. build the extractor against your llama.cpp checkout (CUDA build required)
python -m clef_apex.build_extractor --llama-cpp /path/to/llama.cpp
# 2. build the shared multimodal artifact once, for all four tiers (~2.4 GiB)
python build_multimodal_artifact.py \
--source-shard /path/to/model-00001-of-00015.safetensors \
--source-dir /path/to/Cloudflare/clef-omni \
--out clef-apex-multimodal
# 3. answer a SystemOne request
export PYTHONPATH=$PWD
python -m clef_apex.cli --tier quality run --request request.json
request.json (one record, three simultaneous question types):
{"id": "r1", "model": "clef-omni",
"state": {"order": {"total": 1249.0, "currency": "USD", "status": "overdue"}},
"questions": {
"status": {"type": "choice", "instructions": "What is the order status?",
"criteria": {"paid": "Paid.", "overdue": "Past due.", "draft": "Draft."}},
"large": {"type": "noul", "instructions": "Is the total above 1000 USD?"},
"sev": {"type": "score", "instructions": "How urgent?",
"criteria": {"1": "Low", "2": "High"}}}}
Real response (I-Quality, measured 2026-10-14, input_tokens 365):
{"model": "clef-omni", "answers": {
"status": {"type": "choice", "choice": "overdue", "confidence": 0.9852,
"probabilities": {"paid": 0.0089, "overdue": 0.9852, "draft": 0.0059}},
"large": {"type": "noul", "noul": 0.9853},
"sev": {"type": "score", "score": 2.3538, "confidence": 0.5461,
"legend": {"0": "1", "1": "2", "2": "3", "3": "4"},
"probabilities": {"0": 0.0496, "1": 0.0931, "2": 0.3112, "3": 0.5461}}},
"usage": {"input_tokens": 365, "output_tokens": 0}}
Measured on a separate consumer box 2026-10-19 (I-Mini, same request without sev,
input_tokens 246 — option keys always mirror the criteria you send):
{"model": "clef-omni", "answers": {
"status": {"type": "choice", "choice": "overdue", "confidence": 0.9763,
"probabilities": {"paid": 0.0141, "overdue": 0.9763, "draft": 0.0096}},
"large": {"type": "noul", "noul": 0.9873}},
"usage": {"input_tokens": 246, "output_tokens": 0}}
Serve it instead:
python -m clef_apex.cli --tier quality serve --port 8080
curl -s localhost:8080/v1/systemone -H 'content-type: application/json' -d @request.json
Latency and batching (read before wiring this into a live system). Each request
re-executes the clef_hidden extractor as a subprocess (engine.py → subprocess.run),
which loads the tier GGUF from disk per request — including in serve mode, which
amortizes only the Python/joint-head import, not the weight load. Wall time per request
is therefore dominated by the model load (tens of seconds on I-Mini, more on the larger
tiers); the forward pass itself is fast (~12.8k tok/s prefill, see runtime/RUNTIME.md).
To use it efficiently:
- put every question for one decision in a single request — all types score in one forward pass, that is the point of the schema;
- the runtime takes a list of requests per load (
runtime.run([...])from Python;run --requestwith a JSON array): batch independent decisions, pay one load; - fire decisions at decision points, not per conversational turn.
Add media by adding "images": [...], "audio": [...] or "videos": [...] to the request.
Same endpoint, same contract — there is no separate multimodal mode.
One tier + shared artifacts
| you download | bytes | notes |
|---|---|---|
| one tier GGUF | 13.5–22.8 GB | pick one; they are independent |
clef-apex-multimodal/ | 2,603,066,999 (2.42 GiB) | shared by all four tiers — download once |
Total for the smallest combination: 15.04 GiB. You do not need the 61 GB BF16 Thinker, the 70 GB upstream release, or a dequantize-then-project step.
What is in clef-apex-multimodal/ (the shared artifact)
Built by build_multimodal_artifact.py from
Cloudflare/clef-omni@0db1cd26. Every payload is a
byte-identical copy; the build verifies all 876 encoder tensors by sha256 against an
independent re-read of the source.
| File | Bytes | Purpose |
|---|---|---|
clef-encoders.safetensors | 2,373,222,536 | 876 encoder tensors, BF16 — thinker.visual.* (351) + thinker.audio_tower.* (525) |
joint_head.safetensors | 218,364,000 | Cloudflare's decision head, sha256 d5ee8d7e…947ba9c |
tokenizer.json + tokenizer_config.json | 11,425,169 | tokenizer |
joint_schema_model.py | 29,376 | Cloudflare's decision contract, imported unmodified |
config.json | 13,671 | thinker + processor config |
chat_template.jinja | 6,519 | prompt construction |
processor_config.json | 2,356 | media preprocessing |
joint_head_config.json | 119 | head shape |
generation_config.json | 146 | generation defaults |
ARTIFACT.json | 3,107 | build record: spans read, per-tensor verification, digests |
sha256(clef-encoders.safetensors) = 20a5264fd2db6ffbe37400a7e1e2994739392170dc0c3786b63599b2f7c5143e
If you cannot download the 70 GB release
hf-mount presents the repository lazily — nothing is stored locally, only the
2.21 GiB of byte ranges the build actually reads:
hf-mount start repo Cloudflare/clef-omni /mnt/clef-omni \
--revision 0db1cd2607d76a7bdb2a382f659e7b313079f84b
python build_multimodal_artifact.py \
--source-shard /mnt/clef-omni/model-00001-of-00015.safetensors \
--source-dir /mnt/clef-omni --out clef-apex-multimodal
Native GGUF encoders: what was tried, and what is missing
The encoders ship as safetensors rather than a llama.cpp mmproj GGUF. That is a
deliberate, measured choice, not an omission.
llama.cpp 529ac893e does ship a Qwen3-Omni projector converter
(conversion/qwen3vl.py → Qwen3OmniMmprojModel, registered for
Qwen3OmniMoeForConditionalGeneration, vision and audio). The gap is
naming, not architecture — measured with probes/path_a_probe.py:
| step | result |
|---|---|
| convert Cloudflare's names as-is | fails — ValueError: Can not map tensor 'model.visual.blocks.0.attn.proj.bias' |
| full gap (converter made tolerant so it runs to completion) | 333 of 877 tensors unmapped — every vision tensor; all 525 audio tensors map |
rename thinker.visual.* → thinker.model.visual.* first | still fails (same tensor) |
rename thinker.visual.* → model.visual.* first | conversion succeeds, 869/869 tensors mapped, 2,391,681,984 B output |
So the missing mechanism is a tensor-name pre-pass plus a numerical parity
proof that has not been run. Known divergence risks that make the parity proof
necessary rather than optional: the checkpoint's vision hidden_act is
gelu_pytorch_tanh while the converter writes add_vision_use_gelu(True)
(unconditional, plain GELU), and the checkpoint declares
deepstack_visual_indexes: [8,16,24] while Qwen3OmniMoeTextModel hardcodes
add_num_deepstack_layers(0).
A conversion that completes is not a parity result. Until the embeddings are
compared against HF's Qwen3OmniMoeVisionEncoder, Path A is unproven, and this
package does not depend on it. Note that even a successful Path A would replace
only the encoder front-end: the joint head, tokenization, MRoPE and hidden-state
extraction remain Cloudflare's code plus clef_hidden either way.
Path A parity probe (2026-10-14) — weights faithful, runtime blocked
The comparison has now been run (probes/results/path_a_parity.json;
observations and interpretations kept separate in that file):
- Observations. HF encoder loaded from the shared artifact (351/351 weights, 0 missing); GGUF side encoded the same file through the standard mtmd API from a vision-only subset verified byte-identical on all 334 tensors; HF pixels == raw PNG bit-exactly (preprocessing exonerated); mtmd re-run bit-identical. Output shapes agree exactly (49×2048): cosine min 0.9995, mean 0.99998; mean abs diff 0.0012. The GELU control (all vision MLPs swapped to plain GELU) moves away from the GGUF output — the plain-GELU fear is not the dominant error.
- The original 5e-3 max-rel tolerance FAILED (observed max-rel 0.163) and is preserved, not relaxed: it tests bit-level parity, which a cross-implementation comparison cannot establish. Only the weaker functional claim (direction + magnitude agreement) is supported. Kernel-accumulation attribution for the residual is a hypothesis, not a finding.
- Consumer path: BLOCKED, and not by weights. The joint mmproj fails
mtmd_init_from_file: vision emits 8192-dim (2048 main + 3×2048 DeepStack-concat, by clip design) while audio emits 2048, and mtmd demands equality. The Thinker text side additionally hardcodes DeepStack layers to 0. DeepStack merger tensors converted completely with coherent shapes, but their numerics are untested and there is no supported injection path. - Upstream check (same day): current llama.cpp master still carries the
identical dim-equality check — no newer revision changes this. Minimal
reproduction and affected interfaces are listed in
path_a_parity.json.
Release status: Path A is frozen as experimental. The weights are not demonstrably defective; the runtime cannot consume their output semantics. Fixing that requires architecture-aware upstream handling of the concatenated vision/DeepStack representation — out of scope for this release. Path B below is the supported package.
Artifacts (measured byte counts)
| Tier | File | Bytes | GB | Bits/weight | vs BF16 |
|---|---|---|---|---|---|
| BF16 reference | clef-thinker-bf16.gguf | 61,096,856,352 | 61.10 | 16.01 | 1.00× |
| APEX I-Quality | clef-thinker-apex-quality.gguf | 20,137,118,720 | 20.14 | 5.27 | 3.03× |
| APEX I-Balanced | clef-thinker-i-balanced.gguf | 22,779,530,176 | 22.78 | 5.97 | 2.68× |
| APEX I-Compact | clef-thinker-i-compact.gguf | 15,305,280,448 | 15.31 | 4.01 | 3.99× |
| APEX I-Mini | clef-thinker-i-mini.gguf | 13,549,964,224 | 13.55 | 3.55 | 4.51× |
Compression range is 2.68× (I-Balanced) to 4.51× (I-Mini). Bits-per-weight figures are the
llama-quantize reported values for the whole file including the BF16-preserved tensors.
Quantization structure
48 layers → edge rule 5+5 (valid because 48 < 60): edge layers L0–4 and L43–47, near-edge
L5–9 and L38–42, middle L10–37. Attention Q6_K and the MoE router (ffn_gate_inp) Q6_K at every
layer; layer norms left at default precision.
| Tier | Edge (L0-4, L43-47) | Near-edge (L5-9, L38-42) | Middle (L10-37) |
|---|---|---|---|
| I-Quality | Q6_K | Q5_K | IQ4_XS |
| I-Balanced | Q6_K | Q5_K | Q5_K |
| I-Compact | Q4_K | Q3_K | Q3_K |
| I-Mini | Q5_K | IQ2_S | IQ2_S |
This structure was read back out of the files, not assumed — the ggml type enum of the packed
expert tensors was extracted from each GGUF and matches the table exactly, and no tier is uniform
(1–3 distinct expert types per tier, by design). audit_tier_types.py reproduces this check.
What is preserved (verified tensor-by-tensor)
Two different claims are often confused here, so they are stated separately. Both were measured, not inherited:
Contained in each tier GGUF — 579 tensors: blk.* (576), token_embd.weight,
output.weight, output_norm.weight. Zero visual, zero audio_tower, zero
joint-head tensors. Measured by exhaustive inventory over the full declared
tensor table, with a positive control that passed (probes/gguf_inventory.py).
Preserved for the bridge — the decision API reuses these byte-identically from the shared artifact; they are not inside the GGUF files.
| Component | Tensors | State |
|---|---|---|
thinker.visual.* | 351 | byte-identical (BF16), verified by sha256 × 876/876 |
thinker.audio_tower.* | 525 | byte-identical (BF16), verified by sha256 × 876/876 |
joint_head.safetensors | 1 | byte-identical — sha256 d5ee8d7e75c9a503edce94400dda9074fc0f2f4d62729012bf0a827df947ba9c |
token_embd / output | 2 | held BF16 in the GGUF (--token-embedding-type / --output-tensor-type) |
ffn_gate_inp (MoE router) | 48 | Q6_K |
| layer norms | — | default precision |
talker.* (7,940 layer tensors) and code2wav.* (230) are excluded by design: they are unused at
enable_audio_output = False, which is what the release runtime sets
(config.enable_audio_output = False, joint_schema_model.py:632).
Likewise, the preserved encoders and head travel with the projection, not the GGUF.
Fidelity
Text — 110 decision questions, all four tiers vs BF16
Request mix: 40 noul, 30 choice, 20 score, 10 carrying an image. Authorization metric is per-question KL(BF16 ‖ tier) summed over a question's options, so it is ≥ 0 by construction. Measured on 1× AMD Instinct MI300X 192 GiB, ROCm 7.16, torch 2.13.0+rocm7.1.
| Tier | KL mean | KL median | KL max | Confidence Δ mean | Choice | Noul (±0.05) | Decisions agreeing |
|---|---|---|---|---|---|---|---|
| I-Quality | 2.76e-04 | 0.00e+00 | 0.0038 | 0.0057 | 40/40 (100%) | 50/50 (100%) | 110/110 (100%) |
| I-Balanced | 1.29e-04 | 0.00e+00 | 0.0011 | 0.0045 | 40/40 (100%) | 50/50 (100%) | 110/110 (100%) |
| I-Compact | 3.81e-04 | 0.00e+00 | 0.0032 | 0.0097 | 40/40 (100%) | 50/50 (100%) | 110/110 (100%) |
| I-Mini | 7.22e-04 | 9.53e-05 | 0.0069 | 0.0100 | 40/40 (100%) | 49/50 (98%) | 109/110 (99.1%) |
"Decisions agreeing" means the tier would take the same action as BF16: choice argmax identical, noul within ±0.05, score within half a level.
Multimodal — audio and video path
One synthetic 4 s speech clip and one synthetic 6 s colour-change video; 2 questions each; every tier scored against BF16. 2/2 decisions agreeing for all four tiers on both modalities.
| Tier | Audio KL mean | Video KL mean |
|---|---|---|
| I-Quality | 2.43e-04 | 2.89e-02 |
| I-Balanced | 8.00e-06 | 6.65e-03 |
| I-Compact | 2.21e-04 | 1.80e-02 |
| I-Mini | 9.73e-04 | 8.54e-03 |
Multimodal — tensor-level media consumption
The decision-level probe above is n=1 per modality. Separately, media consumption
was proved structurally on 2026-10-14 (probes/gate_d_multimodal.py): for the
same text with different media, hidden rows before the media span are
bit-identical (causal isolation) while rows inside the span all differ (the
media reached the backbone). A determinism control — the same image twice —
returned bit-identical rows everywhere, which is what makes the other rows
meaningful.
| case | pre-media rows | media-span rows | decision change |
|---|---|---|---|
| control: red image ×2 | 36/36 identical | 64/64 identical | none (by design) |
| red vs green image | 36/36 identical | 64/64 differ | dominant red → green |
| red vs blue image | 36/36 identical | 64/64 differ | dominant red → blue |
| red vs noise image | 36/36 identical | 64/64 differ | has_color 0.9921 → 0.0268 |
| voiced tone vs silence | 36/36 identical | 52/52 differ | loud loud → quiet |
| moving vs static video | 36/36 identical | 864/864 differ | motion 0.0152 → 0.0873 |
| moving vs colour-flash video | 36/36 identical | 864/864 differ | — |
Video motion separates in the right direction but at low absolute values and
does not reproduce the 0.9722 in multimodal_probe.json (different clip, and
a different llama.cpp revision). Direction established; absolute value not
comparable. See runtime/RUNTIME.md for the full statement.
Text re-verified on a different llama.cpp revision
The 110-question suite was published on llama.cpp d71e324a4. Gate C re-ran the
90-question text arm on 529ac893e using fidelity.py's verbatim request
generation and metrics, against the same checked-in BF16 reference:
| Metric | Published (I-Quality) | Re-measured (I-Quality, 529ac893e) |
|---|---|---|
| choice agreement | 30/30 | 30/30 |
| noul agreement (±0.05) | 40/40 | 40/40 |
| decision flips | 0 | 0 |
| KL mean | 7.7e-05 | 7.688e-05 |
| KL max | 0.019 | 0.01896 |
| max abs prob deviation | 0.027 | 0.02710 |
The reference is the checked-in phase5_results.json; no BF16 model was loaded
in that session, so this is parity against a published reference, not a
fresh-reference comparison.
Using a tier through the decision API
Three commands. Timings are the measured build-machine values: command 1 took 47 s and command 2 took 284 s on 20 CPU cores. Command 3 loads a 22.8 GB checkpoint, so plan ~64 GB of VRAM as the upstream card notes.
# 1. Dequantize the tier back to BF16 (this is the measured bridge)
llama-quantize --allow-requantize \
clef-thinker-i-balanced.gguf clef-thinker-i-balanced-dequant-bf16.gguf BF16
# 2. Project into the HF layout; encoders and head are pulled from the release, not re-derived
python map_gguf_to_hf.py project clef-thinker-i-balanced-dequant-bf16.gguf quant-proj-balanced
# 3. Serve the SystemOne API
python - <<'PY'
import sys
sys.path.insert(0, "/path/to/Cloudflare/clef-omni") # release checkout
from joint_schema_model import load_release_model, systemone
model, proc = load_release_model("quant-proj-balanced")
print(systemone(model, proc, {
"model": "clef-omni",
"state": {"invoice": {"vendor": "Acme", "total": 1250.0, "currency": "USD", "status": "overdue"}},
"questions": {
"status": {"type": "choice", "instructions": "What is the invoice status?",
"criteria": {"paid": "Invoice is paid.", "overdue": "Invoice is past due.", "draft": "Not sent."}},
"large": {"type": "noul", "instructions": "Is the total above 1000 USD?"},
},
}))
PY
Expected output from the verified run (I-Balanced, 2026-10-13 15:47 UTC):
{"model": "clef-omni", "answers": {
"status": {"type": "choice", "choice": "overdue", "confidence": 0.9771,
"probabilities": {"paid": 0.0142, "overdue": 0.9771, "draft": 0.0087}},
"large": {"type": "noul", "noul": 0.9866}},
"usage": {"input_tokens": 256, "output_tokens": 0}}
Direct quantized execution (no BF16 reconstruction)
The I-Quality Thinker runs resident in its compressed form under
llama.cpp/CUDA, with Cloudflare's original joint head scoring the hidden
states — no dequantize-to-BF16, no 61 GB checkpoint, no projection step.
Validated 2026-10-13 on RTX PRO 6000 Blackwell (llama.cpp d71e324a4):
30/30 choice, 40/40 noul, 0 decision flips vs the checked-in BF16 reference
(90/90 text questions; KL mean 7.7e-05); resident weights 18.75 GiB, ~20.2
GiB peak end-to-end, 3.03× less than the 56.90 GiB BF16 Thinker.
Image/audio/video run through the same path (original processor + encoders
from upstream shard 1, spliced embeddings, unchanged head): image shape
exact vs BF16, audio Δ ≤ 0.002, video motion Δ 0.004 with dominant
agreeing (sharper on a low-margin question). Runtime + reproduction:
runtime/RUNTIME.md. The 3-command bridge above remains the
reference/fidelity alternative.
Reproducing a tier from BF16
llama-quantize \
--tensor-type-file clef-quality-i-balanced.types \
--imatrix clef-imatrix.dat \
--token-embedding-type bf16 --output-tensor-type bf16 \
clef-thinker-bf16.gguf clef-thinker-i-balanced.gguf Q5_K
The positional type (Q5_K) is the fallback for tensors not named in the type file — it is
required; omitting it makes llama-quantize exit 1 with a usage message.
Calibration
clef-imatrix.dat (121,910,635 B, 384 entries) was collected on an 11-source, 200,274-byte corpus
mixing chat, code, reasoning, tool-call and schema-decision text, at 2048-token context.
Wikipedia is deliberately excluded. The base model's card describes a model that consumes
structured business states and typed schemas — invoice fields, incident descriptions, routing
messages — and never produces free-form prose. Wikitext calibration would move the quantization
optimum toward encyclopedic text and away from the real input distribution, so the diverse corpus
is the correct choice for every I-variant tier here.
Note on what is and is not uploaded. The imatrix (clef-imatrix.dat) is uploaded — it is pure
tensor-importance data and carries no text. The calibration corpus itself is not uploaded: two
of its eleven sources are internal documents, and their text is present verbatim in the corpus; the
per-source manifest is withheld with it. This does not affect tier reproducibility — quantizing
from clef-imatrix.dat is fully specified above. To re-derive the imatrix yourself, run
llama-quantize's calibration on a corpus matching the composition described above (chat / code /
reasoning / tool-call / schema-decision, no Wikipedia).
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
llama_quantize: missing ftype | positional type omitted | append Q5_K (or the tier's middle type) after the output path |
llama_model_quantize: failed to quantize: requantizing from type q6_K is disabled | requantizing without the flag | add --allow-requantize |
invalid magic characters: '????', expected 'GGUF' | input file truncated or not a GGUF | re-check the download; compare sha256 against MANIFEST.json |
Qwen2VLVideoProcessor requires the Torchvision library | torchvision missing from the env | install a ROCm-matched torchvision, not the CUDA build — the CUDA wheel silently replaces torch with a non-ROCm build |
Qwen3OmniMoeForConditionalGeneration ... requires accelerate | accelerate missing | install it; load_release_model passes a device_map |
| quantized answers disagree with the release | loaded the GGUF with load_release_model | use the 3-command bridge; the GGUF alone has no joint head or encoders |
| OOM on a 22 GB tier at long context | KV cache dominates | the tier is 22.78 GB weights; budget ~1.2× weights for 8K context |
clef_hidden parses but answers drift (~0.4 on confident questions) | hidden-state file misparsed (int32 headers read as float32) | use the sequential int32/float32 reader in clef_direct.py, and run sensitivity.py before trusting a new integration |
Setting LD_LIBRARY_PATH to the llama.cpp bin/ dir | breaks libcuda.so.1 resolution | the binaries carry a RUNPATH — run them without the override |
get_embeddings_ith: invalid embeddings id N, reason: no embeddings for every token, llama_decode rc=0 | clef_hidden compiled against llama.cpp headers from a different revision than the linked libllama.so — the llama_context_params layout moved, so embeddings=true lands on the wrong field and is silently ignored | read the lib's revision (llama-server --version, or strings libllama.so piped to grep for version:), check out that exact tag, rebuild the extractor against it. Silent until embedding extraction, never at load — observed directly on 2026-10-19 |
| the extractor claims every GPU / collides with a co-located model | clef_hidden runs -ngl 99 by default and llama.cpp splits across all visible CUDA devices | set CUDA_VISIBLE_DEVICES for the CLI/serve process — the per-request extractor subprocess inherits it — or restrict devices before serving (measured 2026-10-19: I-Mini split-mode over two GPUs) |
Known drift risk: the dequant → project bridge depends on this repo's map_gguf_to_hf.py
pinning specific GGUF tensor names (ffn_gate_exps, ffn_gate_inp, attn_q…). A llama.cpp
converter change that renames or repacks those tensors breaks the bridge silently at the mapper,
not at quantization time — re-run the mapper's bit-exact verify mode on a pure BF16 GGUF after any
upgrade (map_gguf_to_hf.py verify; expect 18867/18867).
Limitations (read before trusting the numbers)
- Synthetic request set. The 110 text questions were generated for this build. They are diverse
in shape but are not the operator's real traffic. Re-run
probes/gate_c_fidelity.py --tier <path>against your own distribution before relying on these deltas in production. - Multimodal probe is n = 1 per modality. It establishes that the audio and video paths execute
and agree with BF16 on one clip each. It does not establish multimodal distributions. The
tensor-level consumption proof added on 2026-10-14 is a structural result (the media reaches
the backbone) and is not a substitute for a parity distribution. The session-2
counterfactuals raise audio/image to flip-level evidence (clean decision flips
on changed stimuli); video remains directional-only —
motionreads 0.55 / 0.09 / 0.02 across framings with consistent direction but no absolute calibration. - I-Mini degrades on noul answers. 49/50 within ±0.05 on this set; fine for coarse routing, not for gates where a false positive is expensive.
- I-Quality is the only tier with a full 90-question re-run in the 2026-10-14 session. The other tiers use the identical interface but were not re-measured against the reference here. All four tiers have since passed isolated consumer smoke runs (text+image decisions correct, GPU peaks 14.4–23.1 GiB) — load and layout verified per tier, fidelity distributions per tier not re-established.
- Encoders are safetensors, not GGUF. llama.cpp's Qwen3-Omni mmproj converter does not map Cloudflare's vision-tensor naming as shipped. See Native GGUF encoders above — a name pre-pass makes the conversion succeed; the parity probe found the tower weights faithful within single-sample bounds but the joint file unconsumable at the pinned (and current master) revision, so Path A is frozen and no GGUF-encoder parity claim is made for the release path.
- KL is measured at the decision head, comparing the tier's per-option probabilities to BF16's. That is the operationally relevant divergence for this model, not a language-modeling perplexity.
- Cross-length comparisons are invalid. llama.cpp's per-token outputs for this model vary with total sequence length (≤8% relative on a shared 35-token prefix, L=517 vs L=1077), deterministic per (length, input). Always run single-ubatch. All fidelity numbers above compare matched lengths.
- Downstream benchmarks not run. HellaSwag / MMLU / ARC / TruthfulQA are not this model's task, so no such scores are reported and none should be inferred.
Provenance
Source: Cloudflare/clef-omni — snapshot revision
0db1cd2607d76a7bdb2a382f659e7b313079f84b. These tiers descend from the weights published there,
not from a locally modified copy. The build read a local snapshot of that revision, and that
snapshot was checked against the digests the Hub records for it: joint_head.safetensors and
model-00001-of-00015.safetensors are both hash-identical to their upstream values
(d5ee8d7e…947ba9c and c9d19a20… respectively).
Built 2026-10-13 on a DigitalOcean Droplet (KVM) within AMD Dev Cloud: 1× AMD Instinct MI300X VF,
192 GiB VRAM (rocm-smi driver 6.19.14.31400000, torch 2.13.0+rocm7.1), 20× Xeon Platinum 8568Y+,
235 GiB RAM. No CUDA was used at any stage. SHA-256 for all six artifacts produced here (4 tiers,
BF16 reference, imatrix) is recorded in MANIFEST.json. The BF16 reference (61 GB) is not
uploaded to this repo — it is reproducible by converting the upstream release, and the card's
fidelity claims were measured against it before publication.
The three tier GGUFs I-Balanced/I-Compact/I-Mini were metadata-sanitized after quantization to strip a local build path from GGUF metadata; tensor regions were verified byte-identical before and after sanitization, so all fidelity numbers in this card hold for the shipped files. MANIFEST.json carries post-sanitization digests and the sanitization record.
Verification commands
Everything below runs from a consumer directory and writes its evidence to
probes/results/. Each probe exits non-zero when its gate fails.
# Artifact digests and sizes (cross-check against the table above)
python -c "
import json
d = json.load(open('MANIFEST.json'))
for f, meta in d['files'].items():
print(f, meta['bytes'], meta['sha256'][:16])
"
# Precision gradient actually present in each GGUF, no uniform tiers
python audit_tier_types.py
# GGUF-A -- tiers unchanged, encoders byte-identical, negative control included
python probes/gate_a_integrity.py --shared clef-apex-multimodal
# GGUF-C -- 90-request text fidelity vs the checked-in BF16 reference
python probes/gate_c_fidelity.py --tier clef-thinker-apex-quality.gguf
# GGUF-D -- media consumed at tensor level + determinism control + negatives
python probes/gate_d_multimodal.py --tier clef-thinker-i-mini.gguf
# GGUF-B + GGUF-E -- telemetry, and a clean-room offline consumer test
python probes/gate_b_e.py --tier clef-thinker-i-mini.gguf
# Release smoke -- all four modalities through an isolated consumer CLI
python probes/gate_e_modalities.py
# Release smoke -- the other three tiers (text+image, GPU peak per tier)
python probes/gate_e_tier_smoke.py --tier compact
python probes/gate_e_tier_smoke.py --tier balanced
python probes/gate_e_tier_smoke.py --tier quality
# Release smoke -- paired counterfactuals (score must move with the stimulus)
python probes/gate_e_counterfactuals.py
# The GGUF-mmproj feasibility probe behind "Native GGUF encoders"
python probes/path_a_probe.py
Gate results (2026-10-14, RTX PRO 6000 Blackwell, llama.cpp 529ac893e)
| Gate | Claim | Verdict |
|---|---|---|
| A | published tiers unchanged; encoder tensors byte-identical | PASS — 4/4 tiers sha256, 876/876 tensors, negative control detects corruption |
| B | loads one tier + shared artifact with no fallback | PASS — peak 14,436 MiB VRAM, 0 MiB after, no fallbacks |
| C | native SystemOne contract incl. simultaneous choice+noul+score | PASS — 30/30 choice, 40/40 noul, 0 flips, KL mean 7.688e-05 |
| D | image, audio and video each affect the decision, at tensor level | PASS — determinism control + 6 media cases; video motion directionally only |
| E | consumer installs and runs from a clean directory, offline | PASS — 15.04 GiB total, zero network/cache reliance, HTTP round-trip |
| F | existing quantization integrity reproduces | PASS — audit_tier_types.py exit 0, all four gradients match |
Release smoke (2026-10-14, session 2 — same machine and revision)
| Check | Claim | Verdict |
|---|---|---|
| 4-modality consumer run (i-mini, fresh room) | text/image/audio/video each decide | PASS — overdue / red 0.9554 / loud 0.9558 / motion 0.5545 |
| Tier smoke (compact/balanced/quality, fresh rooms) | no tier-specific load/layout/memory failure | PASS — text+image each; peaks 16.0 / 23.1 / 20.6 GiB |
| Counterfactuals (i-mini) | score changes reach the head | PASS — red→green flip; loud→quiet flip; motion 0.5545→0.0178 |
git lfs fsck | committed blobs intact | PASS |
Per-gate claim-proof records (including measured, innocent_hypothesis and the
discriminating probe for each) are in the handoff and in probes/results/.
Acknowledgments
This work was made possible by AMD Dev Cloud, which provided access to the GPU that these quantizations were built and measured on. The instance used was a DigitalOcean Droplet (KVM) provisioned within AMD Dev Cloud, carrying:
- 1× AMD Instinct MI300X VF — 192 GiB VRAM (
gfx942:sramecc+:xnack-) - 20 CPU cores · 235 GiB RAM
- ROCm stack, torch 2.13.0+rocm7.1 (no CUDA anywhere in the pipeline)
Thank you to AMD for opening access to this class of hardware. It mattered concretely: every fidelity number in this card — the 110-question text comparison, the audio/video probes, the determinism check — requires running a 61 GB BF16 reference and a quantized arm side by side. On the CPU-only stage of the project those runs were not feasible; MI300X access turned what would have been an unverified quantization into a measured one. All four tiers were built and validated without spending anything on commercial cloud.
The CPU-side build (conversion, calibration, imatrix collection) ran on the same Droplet; the quantization engine was a local HIP build of llama.cpp.
License
Apache-2.0, following the base model Qwen3-Omni-30B-A3B-Instruct.