Repository navigation
Overview
crit 0.26.0 serves hybrids whose layers are each one block, from a build of a checkpoint no plugin served (Nemotron
3.5 Super VL: Mamba-2 mixers, latent relu² experts larger than VRAM, attention layers without rotary positions, an
MTP layer). The recurrence pools take Mamba-2's linear rule beside the delta rule, relu² experts run in
grouped-experts, expert-offload and the CPU expert tier, and nemotron-h-model is the finished model plugin of those
checkpoints. A checkpoint's conventions (its text section, layers and their kinds, decoder prefix, output head, draft
layers) are read once through crit_models.checkpoint's view, by every reader that parsed them itself before, and
crit Eval's reference reads them through it too. Any finished model plugin now drafts from published hidden-state
drafters (EAGLE-3, DFlash, DFlash 2, DSpine) through draft_folder, and from its own MTP head in trees. New speed
levers, each listed in docs/BUILDING_ENGINES.md: NVFP4 KV pages for long context in quality mode speed, host and
disk tiers for the prompt cache (the host tier on by default), the load draft width policy and token-sampling's
race draw. crit profile says where a served token's device time goes. Plugins declare the layer and state kinds
they serve beside, and Core refuses a candidate that breaks them as it is created; one table holds the experts'
activations and the recurrences' rules on every tier; model-template runs a block crit has no technique for through
the checkpoint's own transformers module, parity-checked at load. crit smoke prices a decode gap that is rounding by
crit Eval's drift budget in quality mode speed, while real faults fail in every mode. crit 0.26.0 ships with
crit-eval 0.9.1 (protocol crit-eval-v0.9.1, in the 0.9 series: an engine that computes on the host is measured on a
quiet host, the host_quiet gate, which crit run check --from-eval judges).
Added
-
model-template's slow-but-correct fallback, the core's block
transformers(code/fallback.py): a stateless block
crit has no technique for (a layer's MLP, by specmoduleanother of its modules) runs through the checkpoint's
own transformers module inside the engine, its tensors read by the names the module declares, in 16 bits on the
engine's device. Each block checks its parity at load against the module's FP64 copy on seeded probe rows. A
module whose tensors the checkpoint stores otherwise (an MoE layer's experts per expert, which transformers fuses)
is refused naming them; stateful mixers are left to a design (an adapter to Core's pools). transformers is
imported only where a layout names the block. Documented in model-template's README (The transformers fallback).
Tests: tests/test_model_template.pyTransformersFallbackTests(the Llama engine with every MLP through
transformers passes the decoder layout's engine tests against transformers) andTransformersFallbackRefusalTests. -
Declared capabilities: a plugin's manifest may list the model's layer kinds and state kinds it can serve beside
(supports:layers,states,otherwise, the alternative). The model plugin states the model's kinds in its
resolve()(model-template: its layers' kinds;kv,recurrentandwindowstates), and Core's resolve holds
every selected plugin to them before any plugin exists, so crit run refuses the candidate as it is created and
the loader refuses it alike, naming the plugin, the kind and the alternative. The kind names are Core's
(crit_core.model.config), which crit_models.config now imports instead of defining. draft-trees declares
attention layers and KV alone, replacing model-template's own refusal of recurrent states and convolution windows
(check_treeskeeps the model's own reasons: a mixer without ancestor masks, a chain-only head, token windows);
partitioned-attention declares no sliding layers (softmax-attention attends them), which a sliding model met only
at load. Tests: tests/test_supports.py, tests/test_model_template.py TreeRefusalTests. -
One table for the shared arithmetic primitives,
crit_plugins.primitives(primitives.json in Core): a routed
expert block's activation (name, gated or not, caps, the config names that mean it, formula, kernel id) and a
pooled recurrence's update rule (delta, linear: formula, kernel id), each with its formula on every tier or its
absence there stated. The experts plugins'activate()checks (grouped-experts, expert-offload, experts-reference:
three copies of the caps check gone), the bundle layouts' gating (twoUNGATEDlists and the!= "relu2"tests
gone), grouped-experts' kernel ids, expert-offload's CPU-tier and GGUF reach, experts-reference's FP64 formula,
model-template's config names andcrit plugins offload's gating read it; recurrent-state-recovery takes the
rule's kernel id (the scan's linear flag) and the chunked kernel's reach from it. The kernel packages keep their
integer ids (they import nothing of crit's) and the kernels' numerics are untouched. Each tier lists what it
computes beside its code, and tests/test_primitives.py holds every list and id to the table and runs the FP64
scalar reference against the table's torch formula: an activation or rule added without its formula on a tier
fails there, naming the tier and the file. Documented in docs/PLUGINS.md (Shared primitives). -
model-template's GGUF names are held to the converter's own table:
ConverterNamesTestschecks that every Hugging
Face name the reader maps a GGUF part to is one gguf-py'sTensorNameMap(the table crit-eval's reference reads a
GGUF through) writes as a part the reader maps back to that name, for every architecture a finished plugin's layout
reads and gguf-py knows. The GGUF fixture writes by the reader's own tables, so nothing held them to the converter
before. The two maps stay two: they run in opposite directions over different authorities (the reference's is the
outside oracle), and merging them would either make crit engines depend on gguf-py or let the reference read a GGUF
through crit's table. -
The drafter techniques' engine tests (dflash-drafter's and eagle-drafter's, which build a target of one family)
live in the model plugin that serves them (models/cache/llama-qwen3-model/tests/test_dflash_drafter.pyand
test_eagle_drafter.py), so no model name appears in a technique's folder (tests/test_models.py); each technique
keeps its own name-free tests. The model-neutral guard finds a published drafter's engine tests astest_SOURCE.py
in a plugin's checkpoint layouts. -
dflash-drafter drafts from published DSpine drafters (format
dspine, which Core'sread_drafternow gives a
DSpinearchitecture instead of reading it as DFlash): DFlash layers, causal inside the block, with DSpine's code
bridge after each writing layer (each row's predicted code gated into the row after it), and each draft's last
write redone with the exact code of the token before it over the row'shead_topkcandidates, so the drafter's
argmax is DSpine's serial chain over its refinement table. A config the reference does not serve (a terminal
bridge, non-causal drafts, another second pass, disagreeing widths, bridge versions other than 1, a nonzero
terminal projection) is refused, naming why. Engine-tested on tiny random checkpoints against a reference composed
from published parts, since DSpine's own runs on SGLang's CUDA kernels alone: the official DFlash layers with
DSpine's plain-torch references between them (ref_bridge_forward,ref_refine_table); the host arithmetic and a
CPU engine's device head draft its tokens in both layouts. -
draft-trees runs on model plugins: model-template's MTP head drafts trees (
draft:head-tree, which qwen3-5-model and
qwen4-exp-model now provide). Each depth's frontier entries join the MTP layer's own tree in a round (an entry's KV
at frontier + its column, its rotary position frontier + depth - 1, its input its parent entry's feature), run in
one pass under ancestor masks, so an entry's logits are those of the chain along its path; at mostwidthentries
a round. The models core verifies a tree round's nodes under their ancestor masks (the attention block passes
parents, blocks.Context reads a batch'stree_positions_tandtree_parents_t), each at frontier + its depth,
and the MTP head's commit lays the accepted path's verified features where the next catch-up reads them
(idempotent, a held row keeps its own). A load that asks trees of a model that cannot verify them is refused,
naming why: a recurrent state, a convolution or token window, a mixer that reads no ancestor masks or a sliding
window, an attention plugin withoutattention:tree, or a draft head that drafts one chain. The hybrid recurrent
checkpoints those two families publish are refused so; dense attention models with an MTP layer draft trees.
Tests: tests/test_draft_trees.py (each frontier entry's logits are the chain's along its path over a model whose
rows read their ancestors, the commit along the path, the plugins' facts) and crit_models.testing's manifest test;
tree rounds on a GPU are due in the validation run. -
eagle-drafter, a model technique (models/techniques/drafters): the published EAGLE-3 drafter (format
eagle3: the
speculators format or anEagle3architecture) as the device draft head of any model plugin, through option
draft_folder. One decoder layer overfcof the target's taps beside the next token's embedding (the drafter's
own table),norm_before_residualas the speculators format sets it, a draft vocabulary itsd2tmaps back
(hidden-state-drafters maps the drafts), and the chain fed each step's own output. Its cache rows at a position
depend on that position's taps and the token after it alone, so the prompt's chunks and each catch-up write them
without attention (the models core's FeatureCache gainsnext_token: cache rows that read the token after their
position, a prompt's last one written by the first catch-up); one step at the last committed position starts the
chain. Every query reads one span of the cache, with row-ops'span_attentionon CUDA. Engine-tested against the
EAGLE authors' reference (SafeAILab'seagle/model/cnets.py) on tiny random checkpoints: the host arithmetic gives
the official logits and greedy chain, and a CPU engine's device head drafts the official tokens, the drafter in the
speculators spelling and in the EAGLE repository's (midlayer., mapped back by a layout'scompanionsnames); on a
GPU drafted greedy replies are the plain ones (due in the validation run). The rotary helpers the drafters share
(rotate,rope_of) moved from dflash-drafter into the models core's draft_cache. -
dflash-drafter, a model technique (models/techniques/drafters): the published DFlash and DFlash 2 block drafters as
the device draft head of any model plugin (formatsdflashanddflash2, the folder optiondraft_foldernames).
Its context rowshidden_norm(fc(taps))go through each layer's own k and v projections into the drafter's cache
(a ring for a sliding layer); a block pass fillsblock_size - 1drafts from the pending token and mask tokens,
each layer's queries masked by its window and, inside the block, its causality as the reference readsis_causal;
the target's head gives the logits, times the drafter'soutput_multiplier, capped by its own cap. DFlash 2 adds
the grouped dynamic convolutions around each layer's attention and MLP and the candidate selector, whose scores
logits(depth)gives at the candidates so the drafter's argmax or the sampler's draw is the selector's. Full
non-causal layers read their span with row-ops'span_attentionon CUDA, the rest with torch's masked attention.
Engine-tested against the publishers'dflashpackage on tiny random checkpoints: the host arithmetic gives the
official block rows, logits and greedy drafts, and on a CPU engine of llama-qwen3-model the prompt keeps
transformers' hidden states at the taps and the device head drafts the official tokens, the drafter as published
and under another spelling a layout'scompanionsnames map back; on a GPU drafted greedy replies are the plain
ones (due in the validation run). The model-neutral guard counts a published drafter's technique as composed by the
model plugin whose checkpoints.json lists its own engine tests in two layouts. The models core's draft_cache gains
matmul(a drafter's rows through the projections slot, which block-drafter now calls too) andpositions_of. -
The models core drafts from a published hidden-state drafter on any finished model plugin (
taps:hidden-states):
where optiondraft_foldernames a folder whose config Core's reader describes (EAGLE-3, DFlash, DFlash 2, DSpark:
crit_core.model.drafters.read_drafter, whoseDrafter.formatnow names the published format, aDFlash2
architecture its own), the library's drafter technique registered under that format is the device draft head,
whatever the layout's draft names. Its taps, Core's residual-stream indices (tap k: the hidden state after k
layers), are the rows on entry to layer applications k (companion.entry_taps; a tap at the last layer's output is
refused), which the target's verify and prompt chunks keep for the head as they keep a stored block drafter's. A
layout's newcompanionsfield maps a format to thenamesrules of a release's own spelling. Every finished
model plugin whose residual gives its running row (all but the streams residual's) now provides
taps:hidden-stateswithdraft:headanddraft:head-device, so hidden-state-drafters resolves on them;
crit_models.testing's manifest test holds that.crit run preflight'sdrafting_companionscenario hands such a
folder to the model asdraft_folder, and recon's scaffold says how one is served. -
NVFP4 KV pages (
nvfp4) for quality modespeed, opt-in for long context (about 1.45x the context and 41% less KV
memory than fp8:row; decode at par with fp8:row (the 27B hybrid at 60K: 155.6 against 154.3 tok/s); prompts slower
from 30K up (the 27B's TTFT +17% at 30K, +27% at 60K, +35% at 100K; a dense 33B's +14% at 15K, +23% at 30K); drift
within the speed gate, the dense model's long-prompt p99 near its limit (4.1 against 4.0) on an RTX 5090):
attention-state stores a position's KV head row ofdimvalues indim / 2 + dim / 16bytes (E2M1 codes two a
byte, an E4M3 scale per 16 values) beside an FP32 scale per position and head, 9/32 of BF16's bytes and 9/16 of
fp8:row's. The encoding is the NVFP4 host codec's block rule at a global scale of the row's own
(crit_plugins.encodings.nvfp4_kv_rows, the one copy:encode()'s NVFP4 path and the KV rows share
nvfp4_blocks), which paged-kv-attention's write kernel reproduces code for code in FP64 (crit_kcore's new
e4m3_nearest_f64ande2m1_codes_f64). paged-kv-attention reads nvfp4 pages in its split and fused launches,
block lists, fresh rows and Triton prompt chunk, decoding a tile in registers to the queries' 16-bit type, so any
GPU from sm_80 on runs them (no FP4 tensor cores). The CUDA tile reads them too (window, fused and prompt
structures,KIND4): it stages a block's packed rows as stored and converts them once a block into its 16-bit
buffer, exactly, the row scale a position's factor as forfp8:row; the Triton flash structures refuse them, and
attention-state reads an nvfp4 pool through the CUDA tile where its readerautoorcudatakes it, as the other
page kinds, and with the split reader under readerflashorsplit. model-template'skvoption takesnvfp4in
quality mode speed only (auto never picks it; preserve refuses it), and its own KV pricing is now attention-state's
position_bytes(one table of the page types). Tests: the KV rows against quantized-projections' reference codec
row by row (tests/test_encodings.py), the pool's rows, forks, exports and pricing (attention-state), and
paged-kv-attention's tests/test_nvfp4.py: writes code for code the host codec's, windows, trees, block lists, fresh
rows and prompt chunks against float64 attention over the decoded rows, the refusals, and every nvfp4 structure
compiled offline for sm_80 to sm_120. -
Core's round driver gains the
loadwidth policy (crit_plugins.rounds.LoadWidth, model-template's
width_policy=load): RateWidth's tokens-per-round-time choice, made from each row's own acceptance counts (its slot's,
smoothed toward the pooled rate, following the row throughmoveand reset bystart_row) rather than one pool of
every row, with round costs indexed by a context-length bucket (context_bucket: doubling buckets of the deepest
decoding row's position) as well as row count and width, and corrected online from the rounds actually run: each
round's device time (RoundClock, a one-thread timestamp kernel captured inside the round where the device has a
global timer; without one the calibrated costs stand) over its table cost, shrunk toward its row count's, bucket's and
every round's mean. Each decoding row also gets a width of its own (row_widths()).
Like every width policy it changes which drafts are verified, never what a row emits (tests/test_round_widths.py:
greedy rounds are plain greedy decoding and sampled rounds the host forms' at the widths they ran, underloadtoo).
The default policy staysfixed. -
token-sampling gains a
drawoption,racebeside the defaultinverse(Core's inverse-CDF walk): an exponential
race keyed by (seed, position, stream, token) (crit::core::race_uniformandDrawPurpose::racein Core's
crit/sampling.h, step 12's alternative in Core's sampling README), the same law with other text for a seed. A
drafter races its own law with the target's keys, so a sampled draft keeps no law and stands exactly when it equals
the target's own draw: drafted text is plain race sampling's for the same seed, and drafts land more often than
independent draws from the drafter's law (tests: the law over 16,384 seeds on the host and 32,768 rounds on the
device forms, the drafts' landing rate against sum p q and the coupling's bound, the device forms against the host
mirror). The CUDA sampler races the fast path in FP64 and the full law over every kept token; the torch law and the
staged form race too. -
crit profile --package P --model M [--prompt-tokens 512 --tokens 128 --json FILE](crit.profile): where a served
token's time goes on the device, from one request through the package's engine under torch's profiler: for the
prompt and the decode (split at the first output token), GPU time and launches per token by kernel family (a table
of kernel name patterns), and the time between kernels, which says whether a phase loses its time between kernels
(what fewer launches or a persistent kernel win back) or inside them. The roadmap's step-profiling item. -
Host and disk tiers for Core's prompt cache (
crit_plugins.prompt_tiers.PromptTiers,PromptCache(tiers=...);
off without one). Every sequence the cache keeps is copied behind its request, off every request's path: its rows
as blocks of whole pages, gathered into a device staging buffer and copied asynchronously on a low-priority side
stream into one pinned host arena (slabs touched on a thread of their own and registered with the driver on the
engine's thread between steps, up tohost_bytesorPromptTiers.sized(share)of the host memory Core reports).
Blocks are keyed by a hash chain of their tokens under the engine's fingerprint and each pool's storage format, so
a turn copies only the blocks its last turn lacked, conversations that share a head share its blocks, and a prompt
is matched by walking its block keys. Before a kept sequence or a mark's state copy closes, the reuse of its memory
waits for the copies still reading it (on the engine's stream, or on the host where a pool's freed memory may go
elsewhere). A prompt that shares more with the tiers than with the device restores from them where the copy is
predicted to cost less than the prefill it saves (bytes over the bandwidths measured on the machine, against the
step budget'sprefill_seconds): the blocks copied into freshly taken pages on another side stream, the engine's
stream waiting on them. A disk tier (checkpoint-storage'sRawStore) is written behind from the arena by a thread
of its own and read back with direct I/O, and survives a restart (the next engine of the same fingerprint indexes
its headers). A cache that resumes at marks (hybrid recurrent models) keeps a stand at each place its states stood,
the state pools' states and the model's payload there, and restores at the deepest one a prompt still shares.
Pools give their rows and states throughtier_rows,tier_stores,tier_slots,tier_take(attention-state's
KVPool, but a sliding ring; model-template's MTP rows sit one behind) andtier_views(recurrent-state-recovery's
StatePool, its chunk form too). model-template's optionsprompt_cache_host_share,prompt_cache_disk("") and
prompt_cache_disk_gib(0: half the folder's free space) set them, keyed by Core's engine fingerprint. The host
tier is on by default:prompt_cache_host_share0.1 pins a tenth of the host memory available once the engine
loaded (8.1 GB of 81 GB available on the machine measured, about 1.5 s more load time), which holds two to seven 30K
conversations, and a follow-up whose device copy was evicted restores from it instead of prefilling (a 30K turn
29x faster on a dense 33B, 44x on a hybrid 27B, a 100K one 115x, on an RTX 5090).
prompt_cache_host_share: 0turns it off. The disk tier stays off untilprompt_cache_disknames a folder. The
tiers are off, with the reason in the facts (prompt_tiers) and nothing pinned, where a KV pool is a sliding
ring, the load gives no engine fingerprint, the device is not a CUDA device (its pools are host memory already;
a disk tier asked still runs), the prompt cache is off (prompt_cache: 0), or the share of what is available holds
no block (PromptTiers.refused,PromptCache.tiers_off); an engine's close gives its arena back (unregistered and
unmapped), so a process loading engines one after another holds one arena at a time. A package keeps the options of
the model-template it vendored: one packaged before this default keeps its host tier off until it is packaged again.
checkpoint-storage lends its code to model-template for the disk tier and is no longer one ofcrit plugins'
engine services. The tiers' telemetry reports what they copied, restored, recomputed and waited for, at which
bandwidths. -
Core's step budget predicts a prefill:
StepBudget.prefill_seconds(start, stop), the chunks rows() spans from
starttostop, each at its depth's measured ratio (what the prompt cache's tiers weigh a restore against). -
checkpoint-storage's
RawStore(code/raw_files.py): raw extents behind a small CRC-checked JSON header, 4 KiB
aligned, written atomically and read with direct I/O (O_DIRECT) where the OS and file system take it, in a folder
whose budget drops the least recently used files first. -
Core's engine fingerprint (
crit_plugins.fingerprint.engine_fingerprint,LoadContext.fingerprint()): one digest
of the checkpoint's identity (config.json, every weight file's name, size and safetensors header), the plugins'
selection and options, the kernels the engine loaded with their sources and tunings, its decisions' digest, the
torch build and the device's capability: what any state kept beyond the process is keyed by. The prompt cache's
tiers take it as a callable, resolved at their first use once the engine has loaded. -
serve --check's tool_call check warns when a reply made more than two tool calls and every one is the same call
(name and arguments): the check still passes, but its detail and the serve log carry awarning:line, so a model
that repeats one call instead of answering is looked at rather than passed silently
(crit.run.checks.repeated_calls; tests/test_run_actions.py). -
docs/BUILDING_ENGINES.md lists the library's speed levers, each with its default, one line and a link (the draft
width policy, token-sampling's race draw, a published hidden-state drafter throughdraft_folder, NVFP4 KV pages,
the prompt cache's host and disk tiers, expert-offload'skeep_routes,misses, residencypolicyandswaps,
prefill_chunkandactivations_mib), and AGENTS.md's build step points to it: a build used two of the
post-0.25.0 levers, the others being described only in PLUGINS.md and the techniques' READMEs. -
Hybrids whose layers are each one block, and the pieces they need, from a build of a checkpoint no plugin served
(Mamba-2 mixers, latent relu² experts, attention layers without rotary positions, an MTP layer):- recurrent-scans'
pool_deltaand recurrent-state-recovery take alinearrule beside the delta rule (rule: linearin the geometry: the decayed linear recurrence of Mamba-2's state-space scan, residual β·v; stash,
checkpoints and replay unchanged); the chunked prompt kernels stay the delta rule's, so the linear rule's prompt
rows run the scan. Kernel test: recurrent-scans' tests/test_linear_rule.py (GPU, run in the build). - Ungated relu² experts (
relu2, activation 3: a bundle's gate_up rows are its up rows alone, relu(up)²) in
grouped-experts (tensor and declared arithmetic, kernel test tests/test_relu2.py, GPU, run in the build), its
bundle layouts (gated=False), expert-offload (the miss path, the CPU tier), host-expert-tier and
host-expert-arithmetic (the CPU tier's relu² rows,crit_tier_create_gated), experts-reference and
expert-streamed-prefill's reference. - model-template: a layer type
mambais linear attention; the config's layer types may name its routed layers
(moe); the recurrence's state pool takes its shape from the linear-attention block where the block gives one
(state_shape); the layout'sexpert_hiddennames the config key of a latent expert width; the draft layer's FFN
may sit in a later sublayer (the layout's draftffn_at); the activation may be keyedmlp_hidden_act. crit plugins offloadsizes latent and ungated experts, finds routed layers by layer type and reads an
llm_configsection; the preflight's cut reads configs that list their layer kinds (layers_block_type) instead
ofnum_hidden_layersand anllm_configsection, keeps draft tensors under a prefix, and its facts apply the
model plugin's layoutnamesrules.- nemotron-h-model, the finished model plugin of those checkpoints (models/cache/nemotron-h-model), engine-tested
against transformers in two checkpoint layouts.
- recurrent-scans'
-
crit_models.checkpoint: a checkpoint's conventions read once (CheckpointView,open_view): its text config
whatever the key it is nested under (text_key), its layers and their kinds and types, routed layers, draft layers,
activation, the experts' latent width, and its tensor names under a layout's names rules: the decoder's prefix (the
prefix of layer 0's anchor tensor, outside the draft prefixes, holding as many layers as the config states), the
output head (lm_head.weightat the root or under a leading part of the decoder's prefix) and the draft prefix. The
keys of the new fields are data in crit_models' config_keys.json. Tests: tests/test_checkpoint_view.py, held to
transformers' own configs and state dicts of tiny dense, routed, hybrid, block-typed and multimodal models and to a
published multimodal release's config and tensor names (its manifest). -
A model plugin's layout declares the checkpoint tensors it knowingly leaves unread (
unread: a pattern over the
renamed names, optionally the dtype the matrix's weight is stored in, and a reason). The manifest coverage test
(tests/test_checkpoint_manifests.py) excuses those alone and still fails on any other unread tensor. nemotron-h-model
declares the static FP8 activation scales beside its FP8 projections and head (the projections scale activations
per row at run time) and the draft layer's static KV scales (its pool is fp8:row or BF16), so the Nemotron VL
release's manifest now passes.
Changed
-
crit run check --from-evaljudges crit Eval'shost_quietgate (crit-eval-v0.9.1: an engine that computes on
the host was measured on a quiet one) with the resources gate where the result has it; a result of an earlier
protocol has none and is judged as before. Test: tests/test_run_actions.py. -
crit smoke's
decode_matches_prefillanddecode_longprice a decode gap that is rounding by crit Eval's drift
budget in quality mode speed. Over the decode limit, when the rounding diagnosis (decode_via_prompt) shows the
prompt path reproduces prefill, KV, positions and masking are proven right and the gap is the decode arithmetic's:
in speed the test passes, its item stating the measured gap, the limit it is over and the suspect plugins. Every
other mode keeps the limit, as does a comparison judged strictly (--strict, or an engine asking the bits of its
decode rows). A real bug fails in every mode: afaultverdict, no verdict, or top-1 disagreements beyond the
limit.serve --checkandablatepass the run's quality mode;crit smoke --quality-modesets it by hand.
Three builds hit the limit with engines Eval passed (one model at 0.57 and 0.60 nats, another at about 0.43 with
all its routes, which then blocked route cuts Eval's budget allowed). Documented in smoke/README.md (Rounding or
fault) and docs/PLUGINS.md. Tests: tests/test_smoke.py, a planted gap over the limit with the same top-1 (passes in
speed only) and one that moves every decode row's top-1 (fails in speed too). -
Recon reads its architecture keys as Core reads the config: the text section's keys over the root's
(crit_core.model.config.text_section), null values left out. The root won before, so a multimodal wrapper's
model_typeandarchitecturesstood for its text model. On the local checkpoints this changes recon.json for
the 10 multimodal ones (for exampleqwen4_exp→qwen4_exp_text, Nemotron VL'snemotron_h_omni→
nemotron_hand itsarchitectures) and leaves the text-only ones identical. The fingerprint is now
crit-fingerprint-v2, so a recon.json written before is compared only aftercrit run recon --force, never
reported as a different architecture. -
model-template finds the output head through the checkpoint view (
CheckpointView.head_matrix):lm_headat the
root, else beside the decoder under a leading part of its prefix (a multimodal release'slanguage_model.lm_head
besidelanguage_model.model.), tested by the projections' own matrix test so a quantized head counts. The seven
literallm_headreads are gone, so a release needs no names rule for its head, and a drafter technique's folded
head reads the embeddings where the head is tied. Tests: tests/test_checkpoint_view.py and
tests/test_model_template.pyHeadBesideTheDecoderTests(the Llama engine under that spelling with no names rules;
it failed before, its head read as tied). -
Readers of a checkpoint's conventions read them through
crit_models.checkpoint(or Core's text section where they
sit under Core) instead of parsing config.json and tensor names themselves:crit plugins offload(the experts'
shape, gating and format: a text section nested under any key, root keys beneath it), the preflight's cut (text
section, layer count and kinds), recon's drafter target (layers counted by their kinds where the config gives no
num_hidden_layers),crit models tinyandcrit diff(text section, layer count, vocabulary), crit_kernels' Model
and Core'smodel_type:facts (anllm_configsection too), and model-template's decoder prefix, activation and
stop tokens. The decoder's prefix is the one holding as many layers as the config states where several prefixes
store a layer 0 (a vision tower beside the decoder), the shortest among equals. -
crit_models' mechanism keys spell the experts a token routes to as
moe_top_ktoo, and an expert's width as
expert_intermediate_sizetoo (config_keys.jsonexperts_per_token,moe_intermediate_size), so Eval's limits
and every planner read them alike; the planning tools' own*_alsospellings and the checkpoint view's fallbacks
to them are gone. Verified identical, before and after, on every local checkpoint (the 12 folders and the GGUF
under /llm/models, crit's 8 test manifests) and on the configs crit-eval's tests build: none of them routes experts
under these spellings.
Fixed
-
grouped-experts in the experts slot of its own loads relu2 experts: its layout, pack, load and store reads took
every bundle as gated, so an ungated block's up rows were refused at load (only expert-offload, which lays out
its own bundles, served relu2 through its kernel). Test: grouped-experts tests/test_device.py, a relu2 block
against the FP64 reference on every path. -
grouped-experts' torch fallback computes relu2 blocks: an ungated bundle's up rows went through the gated split
and the GELU branch. The host form (run) took half an ungated bundle's rows as its width. grouped-experts with
arithmetic declared accepts relu2 blocks, which its kernel's declared path computes (the plugin refused them).
The table's tier test found all three. -
model-template's
mtp_encode: autoin quality mode speed takes the smallest draft-only re-encoding the projections
plugin says it makes (its factsprojections:draft-nvfp4,projections:draft-fp8, defined by projections-dense
and provided by quantized-projections), else keeps the matrices as stored. Before, it always asked NVFP4, so a
speed engine with an MTP layer or a drafter on a BF16 checkpoint (served by projections-dense) refused to load. -
Core refuses a
crit_core_stepslibrary built from other Core source than its own (another checkout's, an older
build, or one from before this stamp): the library exportscrit_core_steps_source, the SHA-256 of the source it
was built from, and the loader compares it with the digest of the source it runs with, naming the library, both
stamps and the command to rebuild. Before, such a library loaded silently and failed later withundefined symbol. -
token-sampling asks Core for its kernel for every engine: it kept the loaded module process-wide, so a later engine
of a package in one process never asked, and its record of loaded kernels (its facts, and Core's engine
fingerprint, which keys the prompt cache's copies) lacked the kernel the first engine's named: a disk copy written
by the first engine was never found by the next one. -
crit profilefiled int-block-experts' prompt GEMM under "routing" by its template's folder (experts), also where
quantized-projections runs it for a dense model's NVFP4 matrices: 2.2 s of a dense 27B's 30,000-token prompt. A
kernel.json may stateprofile_family(int-block-experts and grouped-experts:gemm), and the name patterns file
every matrix product as gemm, an expert's too (a fused MoE or grouped GEMM), ascrit run ... profiledoes, with
routing kept for choosing and ordering routes (top-k, gating, sorting and aligning). -
crit profilefiles crit's own kernels under the family of the kernel template that launches them (kernel.json
familyandlaunches, read ascrit_kernels.launchesreads a traced name), and name patterns only for the
others. Before, paged-kv-attention's CUDA flash tile (cw_window,cw_merge,cw_merge2), latent-attention's
prompt kernel and sparse-indexer's select kernel matched no pattern: a 30,000-token prompt's profile on the 27B
engine filed 34% of its kernel time, the CUDA tile's prompt chunks, under "other".crit_kernels.launches.plain
drops a traced name's return type too (torch's profiler writesvoid ...). -
crit run ... profilefiled a device expert cache's copy-in (expert-directory'sfill_kernel, which copies the
admitted bundles into the cache's slots, reading mapped host memory over the link) under "other", andcrit profile
under its template's family (routing): an offloaded engine's profile showed 74.5% of decode GPU time as "other"
without naming it. A kernel.json may statelaunch_families({launch: family}) for a launch that does other work
than its template's family; both profiles file it there first (crit_kernels.launches.declared_family).
expert-directory files its fills (fill_kernel, andprogram_kernelandprogram_exceptions_kernelof a
compressed store's fills) under copies; its plan stays routing. Tests: tests/test_profile.py,
tests/test_run_profile.py. -
crit run ... ablatenever drops a variant silently: the variants an attempt did not serve (its reserved deadline
passed first, or it was stopped) are named in the report and the result (not_run, each with why), in the blame
table (a plugin's row names the comparisons of it that did not run; an option variant that did not run gets a row
of its own, verdictnot_run), on stderr and in the attempt's error, with thecrit run ... ablatecommands that
serve them (follow_up: the full selection again beside them, base where an only:ID is among them, this attempt's
other arguments, split over several attempts with a--secondseach where the median time a variant took here
says they do not fit in one check cap). Tests: tests/test_run_ablate.py. -
A candidate whose selection drafts trees (
draft:head-tree) over layers that cannot verify them (a recurrent state,
a convolution window, a mixer that reads no ancestor masks, an attention plugin withoutattention:tree) is refused
as it is created, with the load's text, not at its first load after a build: model-template's resolve() runs the
load's tree check from the layout and the config alone (Shape.check_trees, which the load's_check_treesnow
calls with what only the made blocks know), andcrit runasks the candidate's plugins' resolve() at every
candidate's creation, not only where its plan states a KV budget (crit.run.plans.check_kv). Tests:
tests/test_model_template.py (TreeRefusalTests), tests/test_run_plans.py. -
crit run ... preflightkept the cut's run and its candidate (runs.json) and the plugin cache by the checkpoint's
revision and the quality mode alone, so a preflight after a new crit commit served the candidate an earlier commit
had packaged (a build saw "no plugin mtp-decode" over five preflights). They are now kept in
.plugin-cache/preflight/REVISION/builds/KEY/, KEY a digest of crit's code (the report'scrit_key: the commit's
trees an engine is built from and their uncommitted changes) and the library selection and plugins the candidate
packages (crit.preflight.run.build_folder); the cut stays keyed by the checkpoint's revision. Tests:
tests/test_preflight.py. -
serve --check's step_memory failure says what its counts point at and what sizes that memory: steps past the arena
name what the arena is (the most a step of the load's warm requests took, or the model'sstep_byteswhere more: a
model-template plugin's full prompt chunk,prefill_chunkrows at the bytes a row its calibration measured, with
ARENA_SLACKbeyond), and segments under the headroom with every step within the arena say the shortfall is outside
the arena (memory held beside the step pool: the givers' regrowth, pools retired with tensors alive, with their
bytes, or a plugin's own device memory). Both say thatactivations_mibplans the load's activations before Core
measures a step and sizes neither the arena nor what the givers leave free: a build raised it 512 to 1024 MiB on such a
failure, the arena stayed 572 MiB and the least free memory fell. Tests: tests/test_run_serve.py. -
serve --check's tool_call check answered only the first of several tool calls a reply made, so its follow-up
request was an incomplete conversation; every call now gets its result. -
One copy of a layout's
namesrules,crit_models.names.renamed: the models core's Checkpoint, the preflight's
facts (whose copy dropped a rule's layer shift) and the manifests' dry load read a checkpoint under the same names.
The dry load renamed nothing, so the first covered manifest whose plugin renames (a multimodal release's
language_model.text model) found its draft layer as the decoder; it also counts a vision projector
(vision_projector.,mlp1.) among the parts a text decoder never reads. Tests: tests/test_checkpoint_view.py,
tests/test_checkpoint_manifests.py.
Removed
crit_core.model.layer_prefix, a decoder-prefix finder nothing but its test called:crit_models.checkpoint's
decoder_prefixis the one rule.