Repository navigation
Released 2026-10-05. The experimental kernel call-site checks (ENTAIL=types) can now be left on:
- 2.3.0's false alarms are fixed;
- what they checked shows on the platform;
- a decided launch costs less;
- SGLang is read the way vLLM is;
- a rotary layer's pairing is a meaning;
- memory nothing wrote no longer changes a run.
They were measured on engine bugs the project had never seen. Of the 2 that one GPU could reproduce, they reported
neither before the kernel ran, and raised no false alarm. Layer B (entail.frontend, experimental) gains the
execution side's meanings. Nothing changes with ENTAIL unset, load or debug. The design's structure stays as it
is: entail is a library installed into existing engines and ships no engine (#59).
- Layer B: the execution side's meanings as types (#55). Vocabulary v13 adds
Index(what an integer numbers:
a slot, a block or a row, and in which pool, table or batch) andCount(what a number of tokens counts: known,
computed, scheduled, reserved). Layer B gains a key/value pool laid out in blocks (entail.frontend.paged):
slots_of(a token's slot through a block table),paged_write,paged_attend(lengths must count computed
tokens),move_blocksandwait(a pool being copied into is read only after its wait), andcheck_identity(a
store's key must cover every per-request input its content depends on, fromProgram.content_inputs). Integers in
host-side code keep their meaning (entail.frontend.units: arithmetic that keeps or refuses a meaning,@takes,
@returns,tensor()), and a traced program's bind compares an index tensor with the meaning its input declares.
One rule per meaning, none per bug; each rule has a program it passes and one it refuses
(tests/test_frontend_paged.py). - What a serving-core study added to layer B (#57, #59).
Program.prepare(bind weights and pools once),pick
(each row's last token) and a per-row attention lowering that reads the row plan to the host once per step. The
small serving core they were measured with (a key/value pool in blocks, continuous batching with chunked prefill, a
prefix cache, a CPU tier, preemption, over Qwen3; the tokens of transformers' greedy generation) was a test bed for
the types, not part of the package: it was taken out before any release and is kept with the research record. ENTAIL=types(experimental): the three false alarms of 2.3.0 fixed (#61). Each came from a rule that was too
narrow. None is fixed by an exception.- Marlin's weight type. Marlin is told the weight type it reads (
b_q_type), and the scales' format and the
packing now follow it. NVFP4 Marlin (4-bit floating weights with E4M3 group scales) had been reported broken,
because the check assumed FP8 Marlin. On Qwen3.5-4B-NVFP4 (vLLM 0.30.0) the compiled graphs now hold no
violation, and the output is the same as without entail. - Axes of size 1. An axis of size 1 says nothing by its stride, so a number whose meaning names such an axis
is read along it. vLLM 0.30's drafter with one request had been reported broken. Its recorded launch is now
proven, and the same launch with a meaning that names no request slot is still a violation. A 0-d output tensor
no longer makes the check raise. - Reads while the engine assembles its model. A read made while the engine assembles its model (vLLM's and
SGLang's ownload_model) is settled when the assembly ends. It is reported if the model still holds the
parameter, and withdrawn if the engine replaced it. vLLM 0.22's Eagle3 drafter probes its embedding and then
takes the target's; that read is now withdrawn.
- Marlin's weight type. Marlin is told the weight type it reads (
- What
ENTAIL=typeschecked, on the platform (#61).- Every decided launch configuration and compiled graph is counted at the boundary
kernel:types(the Kernels
node ofentail serve). - A broken launch or read is a decision there (
kernel:types,kernel:life). - At exit, one line says how many were checked and what is not read: the inside of C++ kernels and the engine's
own Python computation.ENTAIL_QUIET=typeskeeps that line off the console.
- Every decided launch configuration and compiled graph is counted at the boundary
ENTAIL=typescosts less per launch (#63). The check a launch goes through when its configuration is already
decided now takes about 40 µs instead of 52-58 µs. Each tensor is read once (its storage, address, shape,
strides, dtype), the arguments are read in one pass, and the constexpr part of the key is made once per set of
values. A meaning's part of the key is made when the meaning is attached. A buffer that is given a meaning again
keeps its entry, so the old code's finalizer per re-attachment no longer piles up. Verdicts and keys are what
they were. Measured on vLLM 0.30.0 with Qwen3-4B-FP8 (fresh processes off, on, off; median of three rotations):
1.078x -> 1.060x with Triton FP8 and CUDA graphs, 1.047x -> 1.035x on the default path (compile, Marlin, CUDA
graphs). Both differences are within the spread between rotations. Eager went from 1.62x to 1.39x (one
rotation). The cost is still above the 1.02x the design asks for.ENTAIL=typesreads what SGLang declares, as it reads vLLM (#65). SGLang keeps vLLM's layer classes and weight
parameter classes. The reading moved intoentail/declarations.pyand is the same for every engine; each engine
has one table (data/<engine>_declarations.json) and a thin adapter that says where to read it. SGLang's reading
points areDefaultModelLoader.postprocess_weightsand the FP8 activation quantizers. A table entry can say that
a function returns a value and its scale made together, with the group size read from the call.- On SGLang 0.5.20 with Qwen3-4B-FP8, the block-FP8 matmul's 176 launch configurations were all unproven and are
now all proven. The output is the same as without entail, and nothing is reported broken. - vLLM's verdicts are what they were.
- On SGLang 0.5.20 with Qwen3-4B-FP8, the block-FP8 matmul's 176 launch configurations were all unproven and are
ENTAIL=types: the rotation pairs a rotary layer declares (#67). A rotary layer declares its head size, its
rotary dimension, and how it pairs features: j with j + rotary_dim/2, or 2i with 2i+1 (is_neox_style). While
the layer runs, the query and key it is handed now mean tokens, heads and, in each head, those pairs. The copies
the layer makes before a kernel launch are known by their shape and dtype. The rule is unchanged: a kernel that
combines features of two different pairs is broken. The meaning comes from one table entry per engine (vLLM's
RotaryEmbeddingBase, SGLang'sRotaryEmbedding); nothing is written for one kernel.- vLLM 0.22.0's Triton MRoPE kernel pairs j with j + rotary_dim/2 whatever the layer declares (vllm#42016). GLM-OCR
declares 2i with 2i+1. All 4 of that kernel's launch configurations are now reported broken before they run. - vLLM 0.30.0's kernel pairs as declared, and nothing is reported broken; the output is unchanged. Its 7
configurations are not decided, because the check does not readtt.splityet. - Qwen3.5 on vLLM 0.19.0 (split-wise pairs over 64 of 256 features): no pairing is reported broken.
- A kernel that pairs as declared is still not proven: the check decides whether every output element is stored
for 1-D and 2-D outputs only, and the pairs are a 4-D view.
- vLLM 0.22.0's Triton MRoPE kernel pairs j with j + rotary_dim/2 whatever the layer declares (vllm#42016). GLM-OCR
ENTAIL=types: memory nothing wrote is set to zero once it is found (#69).- Until now the lifetime check left its mark (a NaN) in the elements nothing wrote while a model loaded. A run that
read them read NaN, even where that memory would have held zeros without entail, and zero is often the right
value. - On vLLM 0.19.0, GLM-ASR's fused qkv bias has an unwritten k part. entail reported it in all 32 encoder layers,
and the transcript became NUL tokens. - Now, once the parameters are read for the mark, every element that still holds it is set to zero bits, what a
fresh device allocation holds. This covers the parameters, the module buffers and the other tensors the window
marked that are still alive. The write goes through.data, so torch's version counters do not move. - The reports stay. In the same GLM-ASR run, all 32 are reported, and the transcript is the one without entail
(the same token ids).
- Until now the lifetime check left its mark (a NaN) in the elements nothing wrote while a model loaded. A run that
ENTAIL=types: two inputs the checker raised on (#71). Both were caught, so those launches were counted as
not decided and the runs did not change. Each now gets a verdict. Both were found on SGLang 0.5.18:- A kernel whose name ends in
_loc(fill_accept_out_cache_loc). The pattern that strips location annotations
took the name'sloc(and the argument list after it for an annotation.loc(now has to be a word of its
own. - An address computed from a pointer value the checker does not follow (
_fused_qk_rmsnorm_rope_gate_kernel). It
is now not decided, with that reason, instead of anAttributeError.
- A kernel whose name ends in