Downloads · 30 days
0
plateparadise/cacheon-decode-probe
cacheon-decode-probe is a machine learning model from plateparadise. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A test article for the attention.decode slot — not a performance submission.
Downloads · 30 days
0
Access
Public
Updated Aug 21, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py4.5 KB · 56%
From the Hugging Face model README
A test article for the attention.decode slot — not a performance submission.
It computes the slot contract exactly (streaming softmax over each request's first
seq_lens[i] cached keys, GQA/MQA by head grouping) and, more importantly, records
whether the kernel body actually executed.
Timing cannot distinguish "the candidate ran and was slow" from "the candidate was never what got recorded into the captured graph". This kernel answers that directly:
The validator loads candidate modules under its own module name, so import by path rather than by package. This works however the module was loaded:
import sys
mod = next(m for m in list(sys.modules.values())
if getattr(m, "__file__", None) and str(m.__file__).endswith("decode_probe.py"))
mod.executions() # kernel-body runs ON DEVICE — survives CUDA-graph replay
mod.dispatch_count() # times Python selected this entry
mod.reset()
Measured locally: 10 graph replays advance executions() by exactly 10 and
dispatch_count() by 0. If a candidate is routed into the graph you should see the
same. If stock is what got captured, executions() stays flat while the graph replays.
| check | result |
|---|---|
cacheon scan | clean |
verify --device cpu --dtype float32 | NUMERICAL_PASS 4/4, max_abs 0.000e+00 |
verify --device cuda --dtype bfloat16 | PASS, graph=verified 4/4 |
verify --device cuda --dtype float16 | PASS, graph=verified 4/4 |
Covers the verifier's GQA and MQA shapes (Hq/Hkv = 1, 4, 8).
No claim is made about speed; the tiling is deliberately plain.
manifest.toml
kernels/decode_probe.py
metadata/decode_probe.json