crit

v0.17.2
io.github.crit-labs/crit Checked 17 hours ago Published 22 days ago

Build, evaluate and serve a bespoke LLM inference engine for your own GPU with crit's commands.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

crit_run_create crit run create

Create a run and its first segment from a request

ParameterTypeDescription
record *object | array | stringA JSON object (written to a file for the command) or a JSON file's path
from_enginestringStart from a crit-hub engine: its engines/<owner>/<name>/ folder (card.yaml, card.lock.json, evidence/) is recorded as the run's origin_engine
idstringExisting run identity
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_resolve crit run resolve

Freeze the verified model and input identities

ParameterTypeDescription
id *stringExisting run identity
record *object | array | stringA JSON object (written to a file for the command) or a JSON file's path
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_plan crit run plan

Record the next candidate's plan

ParameterTypeDescription
id *stringExisting run identity
record *object | array | stringA JSON object (written to a file for the command) or a JSON file's path
checkbooleanRun the plan's checks and print the record crit would store, recording nothing (the plan command of a replay)
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_check crit run check

Append a case's check evidence to a candidate

ParameterTypeDescription
candidate *string
id *stringExisting run identity
from_evalboolean | stringInstead of --record: record the arithmetic, functional and resources check of every case from the candidate's retained Eval result (default its newest). true gives --from-eval alone
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
recordobject | array | stringA JSON object (written to a file for the command) or a JSON file's path
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_benchmark crit run benchmark

Append a case's benchmark evidence to a candidate

ParameterTypeDescription
candidate *string
id *stringExisting run identity
record *object | array | stringA JSON object (written to a file for the command) or a JSON file's path
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_stop crit run stop

Stop the run with its reason, critique, headroom and cleanup

ParameterTypeDescription
id *stringExisting run identity
record *object | array | stringA JSON object (written to a file for the command) or a JSON file's path
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_candidate crit run candidate

Allocate a candidate ID and retain its source and proposal

ParameterTypeDescription
id *stringExisting run identity
record *object | array | stringlabel, rationale, strategy, configuration, store_decisions, parent/origin IDs. A JSON object (written to a file for the command) or a JSON file's path
source *string
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_recon crit run recon

Gather the model's sampling, stop tokens, chat template and config into work/recon.json

ParameterTypeDescription
id *stringExisting run identity
comparestringInstead: compare the run's model fingerprint with another checkpoint's (architecture, weight layout, tokenizer, template) and print what differs
drafterarrayA companion drafter to record (EAGLE-3, DFlash, DSpark or crit models drafter output); repeatable
forcebooleanGather again over an existing work/recon.json
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_capture crit run capture

Write a case's chat request (captured/CASE/request.json) that renders to the workload's prompt tokens with the template variables candidates serve

ParameterTypeDescription
id *stringExisting run identity
casestring
inputsstringSet the case's manifest row in this resolve payload (created when missing)
instructionstringLine after the text (default: a summary request; '' for none)
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
systemstringA leading system message
template_kwargsstringchat_template_kwargs the request renders with, over recon's frozen template_variables (text or a file)
textstringFile of the user message's text (default: a neutral passage); it is cut to whole words and padded to the exact count
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_build crit run build

Build a candidate's retained source with the recipe's build.command under a build attempt (log kept, attempt settled), then package the result

ParameterTypeDescription
candidate *string
id *stringExisting run identity
record *object | array | stringRecipe: build {toolchain, command[, dependencies]}; the build's outputs are bound as dependencies, and the package is the plugin package Core's loader runs. A JSON object (written to a file for the co…
droparrayRemove these build-folder paths (intermediates) before packaging; repeatable
no_packagebooleanBuild and settle only
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
secondsnumberReservation length (default: the build process cap)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_package crit run package

Package a candidate's runnable files and manifest

ParameterTypeDescription
candidate *string
id *stringExisting run identity
record *object | array | stringRecipe: build {toolchain, command[, dependencies]}. A JSON object (written to a file for the command) or a JSON file's path
source *string
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_reserve crit run reserve

Consume an attempt before a launch

ParameterTypeDescription
id *stringExisting run identity
operation *string
candidatestringCandidate owner; omit only for discovery
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
secondsnumber
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_settle crit run settle

Settle a reserved attempt: exit, logs, cleanup

ParameterTypeDescription
id *stringExisting run identity
record *object | array | stringA JSON object (written to a file for the command) or a JSON file's path
reservation *stringReservation path relative to run
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_measure crit run measure

Benchmark the run's cases on a packaged candidate through crit serve, once its checks are recorded (check --from-eval)

ParameterTypeDescription
candidate *string
id *stringExisting run identity
exploratorybooleanMeasure even when the candidate's checks would leave its benchmarks exploratory (not recorded, or a required one did not pass), for telemetry or memory: a benchmark that does not qualify keeps the can…
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
secondsnumberReservation length (default: the benchmark process cap)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_eval crit run eval

Run Eval on a packaged candidate through crit serve, quality against the run's model's scores of the fixed texts (scored once into the data)

ParameterTypeDescription
candidate *string
data *stringEval data directory prepared from the run's model
id *stringExisting run identity
baselinestringEarlier Eval result to show KPI changes against
budget_minutesnumberEval's wall-clock budget, loads included (default: crit-eval's 45)
certifybooleanThe candidate that will ship: stage 3 whatever the budget, then one request at the run's kv_tokens, which the resources check needs. On the candidate ladder the full Eval of candidate 5 on and of the…
labelstring
onlyarrayRun only these Eval parts (repeatable); default all
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
resumeboolean | stringGo on from an Eval attempt that stopped (interrupted, failed, timed out, a disturbed or hung engine): its journal's requests are answered again, the engine loads for the requests left; default the can…
rootstringRun root; defaults to PROJECT/runs
secondsnumberReservation length (default: to the segment's deadline; each request is bounded by the rates the engine measured)
stagestringHow far Eval measures (crit-eval's protocol stages): by default as far as its budget allows at the candidate's measured rates; 1, 2 or 3 at most that far; full every part as before stages. On the cand…
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_serve crit run serve

Serve a packaged candidate before it is sealed through crit serve, under a check attempt, until Ctrl+C: for the checks a candidate passes before sealing

ParameterTypeDescription
candidate *string
id *stringExisting run identity
checkbooleanRun the standard serving checks (consecutive requests, system message, streaming, stop string, cancelling, tool call, logprobs, template switch, stopping), keep their report and record a functional ch…
datastringWith --check: crit-eval's prepared data for the run's model; the report adds the gate pre-check (honesty of short replies and one long reply, request history, device memory, the lower context), the ga…
hoststring
no_smokebooleanWith --check: leave out crit smoke, the quality component tests --check runs at the run's context and at a quarter of it (smoke/README.md)
portinteger
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
secondsnumberReservation length (default: the check process cap)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_ablate crit run ablate

Serve a candidate built from plugins with each variant of its plugins (as built, at its base, without each and with each alone): a short bench of the run's cases and crit smoke per variant, and what each plugin adds, costs or breaks (docs/PLUGINS.md)

ParameterTypeDescription
candidate *string
id *stringExisting run identity
no_smokebooleanLeave out crit smoke on each variant
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
repetitionsintegerRepetitions per case and variant (default 3)
rootstringRun root; defaults to PROJECT/runs
secondsnumberReservation length (default: the check process cap)
smoke_testarrayRun only this crit smoke test on each variant (repeatable)
variantarrayServe only this variant (repeatable), e.g. full, base, without:ID, only:ID; crit plugins variants lists them
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_seal crit run seal

Close a candidate (sealed candidates are immutable)

ParameterTypeDescription
candidate *string
id *stringExisting run identity
lifecycle *string
failurestringRetained failure message
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_select crit run select

Select a sealed eligible candidate

ParameterTypeDescription
candidate *string
id *stringExisting run identity
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_resume crit run resume

Open a new segment for more candidates, optionally amending the quality terms

ParameterTypeDescription
id *stringExisting run identity
approved_bystringWho approved the amendment (required with --quality-budget or --exactness)
attempt_limitinteger
candidatesintegerCandidates this segment builds (no working time budget)
exactnessstringAmend the speculative exactness mode
external_agent_stoppedboolean
minutesintegerTime-budget segment instead, or the safety window with --candidates
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
quality_budgetstringAmend the drift budget: any of ppl_ratio_max, kld_mean_max, kld_p99_max
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_cost crit run cost

Account the run's build cost from the agent's transcripts: wall time, tokens and API price per candidate, written to cost.json

ParameterTypeDescription
id *stringExisting run identity
transcript *arrayA Claude Code session, Codex rollout or plain usage JSONL (repeatable)
agentstringThe agent and model that built the run, as the record names it
pricesstringJSON object or file of {model: {input, cache_read, cache_write_5m, cache_write_1h, output}} in USD per million tokens, over the list prices
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
untilstringCount requests up to this UTC timestamp (default: the run's stop, else now)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_replay crit run replay

Copy the run as it stood when a candidate's Eval finished, for an agent to say what it would do next with today's crit and crit-eval (records nothing)

ParameterTypeDescription
id *stringExisting run identity
out *stringFolder of the replays: replay-1 ... replay-N, each a run root
agentstringStart an agent on every replay at once with this command (any harness; {brief}, {folder}, {root} and {number} name the replay's), wait for all, then collect
atstringThe candidate whose newest completed Eval the replays start from
beforestringInstead: the run as it stood just before this plan was recorded (with the work done toward it since its parent's Eval, without drafts of the plan)
collectbooleanInstead: check and list the plans the replays under --out wrote
countintegerReplays to make, one per agent (default 1)
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_show crit run show

Print the run, its state and its candidates as JSON

ParameterTypeDescription
id *stringExisting run identity
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_run_recover crit run recover

Explicit dead-owner lease recovery and projection rebuild; never resets attempts/deadlines

ParameterTypeDescription
id *stringExisting run identity
projectstringcrit checkout the run follows, whose settings.toml it reads (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
rootstringRun root; defaults to PROJECT/runs
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_eval_run crit eval run

Evaluate one engine (prepares the data first when missing)

ParameterTypeDescription
data *stringPrepared suite directory for this model
model *stringModel directory passed to the adapter
out *stringResult JSON path
adapterstringPython file exporting create_eval_engine(context)
adaptive_sampledstringRepeat each sampled speed case at further seeds until its relative standard error reaches the protocol's target or its repetition cap (protocol sampled_speed.adaptive), recorded in the result; off by…
attribute_driftbooleanAfter quality, score it again on an engine opened with each of the adapter's exact_variants (one matrix group or arithmetic choice exact) and report each one's share of the drift budget
bandwidthnumberAchievable device memory bandwidth in GB/s; overrides the --device value
baselinestringEarlier result of the same data to show KPI changes against
budget_minutesnumberThe staged run's wall-clock budget, loads included (default: the protocol's 45)
certifybooleanThe candidate that will ship: stage 3 whatever the budget, then one request at the required context itself, which the capacity gate needs
chat_templatestringChat template (jinja) to render the prompts with, for a model that carries none (default: the one crit ships for the model's family); it becomes part of the model's identity; data prepared already mus…
configstringJSON configuration overrides for the adapter, text or a file, over the configuration.json packaged beside it
contextintegerContext (prompt plus output) every engine is built and measured for: the run's kv_tokens. Default: crit-eval's max context for the model on the --device
context_reserve_gibnumberDevice memory kept out of the KV cache when crit-eval computes the max context: activations, workspaces, graphs and speed techniques (default: settings.toml context_reserve_gib, else the protocol's re…
devicestringDevice ceilings from `crit eval probe` (bandwidth and GEMM rates)
exactnessstringreported (default): agreement with plain greedy is shown and the quality budget judges the output; required: any difference fails the gate
jitter_seedintegerDraw the held-out prompts' and the long-context curve's lengths from this seed, a recorded result's jitter.seed, to measure at its lengths again (default: a new seed per run; a resumed round's from it…
keep_disturbedbooleanFinish the round even when a speed case's repetitions show a disturbed device (by default the round stops there; protocol speed.disturbed_spread)
labelstringName shown in comparisons
no_journalbooleanWrite no journal beside the result (by default every engine opened and request served is one line of OUT's .journal.jsonl, synced as it completes)
onlyarrayRun only these parts (repeatable); default is all. context: the long-context curve and retrieval up to the required context and the speed cases again at a lower context; history: the same requests on…
packagestringA crit engine package (plugins/ and configuration.json), which Core's eval-v1 adapter opens through Core's loader
profilestringA protocol profile fixing what the run measures (protocol profiles). hub: crit-hub submissions, 200,000 tokens of context, the curve at its two ends, one engine load
quality_budgetstringDrift limits over the protocol defaults, e.g. '{"ppl_ratio_max": 1.02}'; keys ppl_ratio_max, kld_mean_max, kld_p99_max
quality_modestringThe quality mode: how much output drift from the checkpoint the engine may trade for speed, whatever format the checkpoint is stored in; both modes judge against the same reference (its stored weights…
repetitionsintegerOverride the protocol's measured repetitions
requested_contextintegerThe longest request wanted, which caps the max context crit-eval computes without --context (default: settings.toml context_tokens, else 200,000)
resumestringGo on from a round that stopped (interrupted, crashed, a disturbed device, a hung engine): its journal (R.journal.jsonl beside its result R.json) answers the requests it served, the engine loads only…
served_modelstringWith --url: the model to request (default: the one the server lists)
stagestringHow far a run without a profile measures (protocol stages): by default as far as the budget allows at the engine's measured rates; 1, 2 or 3 at most that far; full every part at the protocol's repetit…
urlstringBase URL of an OpenAI-compatible server the engine runs behind, for example http://127.0.0.1:8000/v1 (needs --context: the context the server was started with)
vram_headroom_gibnumberDevice memory left free when crit-eval computes the max context (default 1)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)
warmupsintegerOverride the protocol's warmup runs

crit_eval_precheck crit eval precheck

In minutes, the gates a candidate most often fails a whole round on: honesty of short replies and of one long reply, the request history around them, device memory and (with an adapter) the lower context

ParameterTypeDescription
context *integerContext the engine is built for (the run's kv_tokens)
data *stringPrepared suite directory for this model
model *stringModel directory passed to the adapter
adapterstringPython file exporting create_eval_engine(context)
chat_templatestringChat template (jinja) to render the prompts with, for a model that carries none (default: the one crit ships for the model's family); it becomes part of the model's identity
configstringJSON configuration overrides for the adapter
no_lowerbooleanSkip the lower-context reopen
outstringWrite the items as JSON here
packagestringA crit engine package, opened through Core's loader
quality_modestringThe run's quality mode (default speed): speed bounds honesty as Eval does and lets history part at near-ties; preserve does neither
served_modelstringWith --url: the model to request
urlstringBase URL of an OpenAI-compatible server the engine runs behind (no lower-context check: a server cannot be opened again)
vram_headroom_gibnumberDevice memory to find free after the load (default: settings.toml vram_headroom_gib, else 1)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_eval_context crit eval context

The max context for a model on a device: the model's positions and the KV cache that fits next to its weights

ParameterTypeDescription
device *stringDevice file from `crit eval probe`
model *stringModel directory
context_reserve_gibnumberDevice memory kept out of the KV cache for workspaces and speed techniques (default: settings.toml context_reserve_gib, else the protocol's reserve_gib)
drafterarrayA companion drafter the engine may load beside the model; its stored weights are kept out of the KV cache (repeatable)
jsonbooleanPrint the computation as JSON
ram_headroom_gibnumberHost memory left free, for the placement scenario (default: settings.toml ram_headroom_gib, else 2)
requested_contextintegerThe longest request wanted (default: settings.toml context_tokens, else 200,000)
vram_headroom_gibnumberDevice memory left free (default: settings.toml vram_headroom_gib, else 1)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_eval_probe crit eval probe

Measure device bandwidth and GEMM rates per weight format (needs nvcc, or hipcc on ROCm)

ParameterTypeDescription
out *stringDevice JSON path for `run --device`
backendstringDevice API to probe (default: cuda when nvcc is found, else hip when hipcc is)
devicesstringProbe several GPUs (CUDA): each one's figures and the copy rate between each pair, for multi-GPU limits (default: device 0 alone)
hipccstringhipcc to build the HIP probe with (default: PATH, ROCM_PATH, /opt/rocm*)
nvccstringnvcc to build the probe with (default: PATH, CUDA_HOME, /usr/local/cuda*)
repeatsintegerProbe runs; each value is the median
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_eval_status crit eval status

Gates, goals, KPIs against their physical limits, gaps and missing inputs

ParameterTypeDescription
result *string
baselinestringEarlier result to show KPI changes against
datastringThe data directory the result was measured on: its model arithmetic prices prefill for a result that does not record it
devicestringPrice prefill and time to first token with this `crit eval probe` result's rates instead of the result's own device
jsonbooleanPrint the status as JSON
kernelsstringA kernel trace of the engine (crit eval kernels): its prefill GPU time per floor term against the term's floor, with a gap each
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_eval_prepare crit eval prepare

Freeze the suite as token ids for one model

ParameterTypeDescription
data *string
model *string
chat_templatestringChat template (jinja) to render the prompts with, for a model that carries none (default: the one crit ships for the model's family); it becomes part of the model's identity
samplingstringThe user's sampling for the sampled speed suite in place of the model's generation_config.json, e.g. temperature=0.6,top_p=0.95,top_k=20 (temperature required; top_p, top_k, min_p optional). Results r…
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_eval_reference crit eval reference

Score the prepared quality texts once on the checkpoint they were prepared from and store the scores under the data (torch + transformers, GPU; stop any engine first)

ParameterTypeDescription
data *stringPrepared suite directory
model *stringThe checkpoint the data was prepared from
allowancebooleanAlso score the texts with the activations quantized as the checkpoint declares and store how far that lands from the scores (allowance.json): what the format itself costs, reported, not judged; a seco…
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_eval_fetch crit eval fetch

Fetch the checkpoint's reference package (prepared data and reference scores) into the data, so a run needs only the engine

ParameterTypeDescription
data *stringData directory to write
model *stringThe checkpoint the engine serves
chat_templatestringChat template (jinja) to render the prompts with, for a model that carries none (default: the one crit ships for the model's family); it becomes part of the model's identity; the package was prepared…
packagesstringPackage source: a folder or an https base URL (default: settings.toml's eval_packages)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_eval_pack crit eval pack

Add prepared data scored by the reference to a package folder

ParameterTypeDescription
data *stringPrepared suite directory holding reference scores
packages *stringPackage folder to add it to
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_eval_journal crit eval journal

How far a round got: its journal's engines, parts and requests, replayed and live, and how it ended

ParameterTypeDescription
journal *stringA round's journal (R.journal.jsonl beside its result R.json)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_eval_compare crit eval compare

Print a side-by-side table of result files

ParameterTypeDescription
results *array
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_eval_pin crit eval pin

Record one engine's plain greedy output of every speed case as the data directory's pinned continuation (decode is then measured on that text)

ParameterTypeDescription
data *stringPrepared data directory to pin the continuation in
model *stringModel directory passed to the adapter
adapterstringPython file exporting create_eval_engine(context)
configstringJSON configuration overrides for the adapter, text or a file, over the configuration.json packaged beside it
contextintegerContext the engine is built for (the run's kv_tokens)
packagestringA crit engine package, opened through Core's loader
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_eval_ab crit eval ab

Alternate two engines' speed runs in one session and report paired ratios

ParameterTypeDescription
data *string
model *string
out *stringResult JSON path
adapterstringAdapter of engine A
adapter_bstringAdapter of engine B (default: engine A's adapter)
configstringJSON configuration overrides of engine A (text or a file), over its packaged configuration.json
config_bstringJSON configuration overrides of engine B (text or a file), over its packaged configuration.json
contextintegerContext both engines are built for (the run's kv_tokens)
packagestringEngine A's crit package, opened through Core's loader
package_bstringEngine B's crit package (default: engine A's engine)
repetitionsintegerMeasured repetitions per engine and round
roundsintegerRounds; each round runs both engines, order alternating
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)
warmupsintegerWarmup runs per engine and round

crit_eval_kernels crit eval kernels

Trace every kernel of the speed cases (CUPTI, Linux) and rank them per phase by time, launch width and share of peak

ParameterTypeDescription
data *stringPrepared suite directory for this model
model *stringModel directory passed to the adapter
out *stringKernel report JSON path
adapterstringPython file exporting create_eval_engine(context)
backendstringDevice API the engine runs on: cuda (CUPTI) or hip (rocprofiler-sdk)
casearrayTrace only these speed cases (repeatable); default all
configstringJSON configuration overrides for the adapter, text or a file, over the configuration.json packaged beside it
contextintegerContext the engine is built for (the run's kv_tokens)
devicestringDevice ceilings from `crit eval probe` for share of peak
hipccstringhipcc of a ROCm that ships rocprofiler-sdk (--backend hip)
nvccstringnvcc of a CUDA toolkit that ships CUPTI
packagestringA crit engine package, opened through Core's loader
topintegerKernels listed per phase
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)
workstringkernel_work rules ahead of the adapter's own, as JSON text or a file: [{"match": NAME_PART, "term": matmul|attention|recurrent|other|draft, "format": nvfp4|fp8|bf16, ...}]

crit_eval_workbench crit eval workbench

Check, time or profile a kernel on its workbench folder (crit kernels new): reference, floor, yardstick

ParameterTypeDescription
action *string
folder *stringThe workbench folder
devicestringbench: a `crit eval probe` result, for the floor
itersintegerbench: timed calls per shape and column count
ncustringprofile: Nsight Compute's ncu, to add its sections
outstringcheck and bench: the result JSON (default FOLDER/check.json, bench.json)
pythonstringThe engine's Python (torch and the GPU); default this one
shapeintegerOne shape of kernel.json by index (profile: default the first)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_pull crit pull

crit pull OWNER/NAME: install a crit-hub engine, so that crit serve --engine OWNER/NAME serves it. It reads the engine's card (from a crit-hub checkout with --hub, else crit-hub's index.json), checks the card's requirements against this machine (a crit eval probe result, and nvcc), fetches the engine's source at the commit the card pins (from a crit-engines checkout with --engines, else its repository), checks its configuration against the sealed run's in card.lock.json, fetches the checkpoint at its pinned Hugging Face revision (or takes a local folder with --model) and checks every file agai…

ParameterTypeDescription
build_from_sourcebooleanBuild even when one of the card's prebuilt artifacts matches this machine
build_timeoutnumberSeconds the build may take (default: 1800)
checkpointstringThe checkpoint, when the engine was measured on several
contextintegerContext the engine serves at (default: the context its card measured)
devicestringA crit eval probe result to check the requirements against (default: settings.toml's device, else a probe run now)
downloadarrayA local copy of one of the card's downloads (a drafter's folder, an artifact's file), checked like a download (repeatable; default: fetch it from Hugging Face)
enginestringThe crit-hub engine, as OWNER/NAME
enginesstringTake the source from this crit-engines checkout, which holds the pinned commit (default: fetch that commit from the card's source repository)
forcebooleanInstall again over an installed engine
hubstringRead the card from this crit-hub checkout (default: crit-hub's index.json)
ignore_requirementsbooleanInstall even when this machine does not meet the card's requirements
indexstringcrit-hub's index.json, a URL or file (default: https://crit-hub.dev/index.json)
listbooleanList the installed engines instead
modelstringA local copy of the checkpoint, checked file by file and hard-linked into the store (default: download it at the pinned Hugging Face revision)
projectstringcrit checkout whose settings.toml gives the device and headroom and whose engines/ is the default store (default: this checkout); a crit installed without a checkout takes any folder (default: the cur…
storestringEngine store (default: PROJECT/engines)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_serve crit serve

crit serve: load a sealed candidate once and answer OpenAI-compatible requests until stopped.

ParameterTypeDescription
api_keyarrayRequire this bearer key; repeat for several (default: the comma-separated keys in the CRIT_API_KEY environment variable, else none)
api_key_filestringAlso accept the keys in this file, one per line; blank lines and lines starting with # are skipped
candidatestringCandidate ID (default: the run's selected candidate)
cors_originstringAllow browser requests from this origin, for example http://localhost:3000 or *
enginestringServe an engine crit pull installed, as OWNER/NAME
hoststringAddress to listen on (default: 127.0.0.1, this machine only)
idle_unloadnumberUnload the engine's weights after this many seconds without a request; the next request loads it again (default: stay loaded)
lenientbooleanIgnore request parameters crit does not apply (unknown ones, sampling fields the package does not declare, extra samplers) instead of refusing them with 400; responses list them in X-Crit-Ignored-Para…
load_timeoutnumberSeconds loading the candidate at startup may take (default: 600 plus the model's size at 200 MB/s, or at 50 MB/s with --verify-model)
max_concurrencyintegerRun at most N requests at once, below the engine's declared capacity (max_concurrent_requests; default: the engine's)
max_queueintegerRequests that may wait while the engine is busy; one more is refused at once with 429 (Anthropic 529, /api/chat 503) and Retry-After (default: 64)
model_namestringModel ID reported to clients (default: RUN_ID/CANDIDATE_ID)
modelsstringJSON catalog of named models from sealed runs (docs/SERVING.md)
portintegerPort (default: 8000)
projectstringcrit repository (default: this checkout); a crit installed without a checkout takes any folder (default: the current one)
queue_timeoutnumberSeconds a request may wait for the engine before it is refused the same way (default: no limit; --timeout starts when the engine takes the request)
reasoning_aliasbooleanReturn reasoning under "reasoning" as well as "reasoning_content", for clients that read the field reasoning (off by default: a client that joins every field of a delta, as crit Eval does, would read…
recover_runtimebooleanRecover a dead runtime owner after verifying its processes settled, then exit
resident_ram_gibnumberOptional cap on retained model bytes in host memory
resident_vram_gibnumberOptional cap on retained model bytes in device memory
runstringRun ID (default: the workspace's only run)
sse_ping_intervalnumberSend a keep-alive ping on an OpenAI or Anthropic stream after this many quiet seconds, so proxies and clients do not close it while a model loads or a prompt prefills; 0 sends none (default: 15)
ssl_certfilestringServe HTTPS with this PEM certificate chain
ssl_keyfilestringThe certificate's PEM private key (default: the key in --ssl-certfile)
storestringInstalled-engine store --engine reads (default: PROJECT/engines, where crit pull installs)
timeoutnumberSeconds one request may run (default: 600)
verify_modelbooleanRead and SHA-256 every model file against the run's frozen manifest before loading (default: check file sizes only and load right away)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)
workspacestringFolder containing the run-* project directories
write_launchersbooleanWrite serve.cmd and serve.sh into the run folder, which start this exact command, then exit

crit_kernels_target crit kernels target

Observe host OS/architecture; ABI remains explicit

ParameterTypeDescription
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_kernels_inventory crit kernels inventory

Hash local artifact files without importing them

ParameterTypeDescription
root *string
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_kernels_inspect crit kernels inspect

Explain every declared applicability match, rejection or unknown

ParameterTypeDescription
catalog *string
request *string
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_kernels_retain crit kernels retain

Copy and verify a selected dependency into a new directory

ParameterTypeDescription
catalog *string
destination *string
reason *string
request *string
root *string
select *string
max_bytesinteger
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_kernels_verify crit kernels verify

Recheck a retained dependency's bytes and applicability

ParameterTypeDescription
directory *string
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_kernels_new crit kernels new

Scaffold a workbench folder for a kernel: reference, shapes, yardstick, harness (measure it with crit eval workbench)

ParameterTypeDescription
name *string
op *stringgemv or gemm (a working start in bf16, fp8 or nvfp4), or any other operation name for a harness to fill in
column_invariantstring
columnsstringcolumn (token) counts, comma-separated
formatstringbf16, fp8 or nvfp4 (NVFP4 weights against bf16 activations) for gemv and gemm
fromstringa kernel-builder project to start src/ from (a crit-kernels project, a Hub kernel's source); without it, kernel-builder init starts one
modelstringtake the shapes from this checkpoint's matrices in the format
repeatablestringno: the kernel may give other bits on a repeat (atomics, a split the workload chooses); the check judges repeats within the tolerance. For quality mode speed engines
rootstring
runstringthe run folder, for --starter
shapearrayN,K (repeatable)
starterbooleanthe kernel --from copies is the starter (crit-kernels' workbench-starter: a simple, correct gemv/gemm in bf16 and fp8); allowed from a run's fourth candidate on
tolerancenumber
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)
yardstickstringthe provider to time beside the kernel (provider syntax of plan levers)

crit_models_plan crit models plan

Resolve a recipe against a checkpoint's headers: targets and bytes

ParameterTypeDescription
recipe *stringmodels_recipe JSON
source *stringUnquantized source model directory
jsonbooleanPrint the resolved recipe and plan as JSON
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_models_ptq crit models ptq

Quantize a checkpoint and write its models_transform record

ParameterTypeDescription
out *stringNew or empty directory for the transformed checkpoint
recipe *stringmodels_recipe JSON
record *stringNew models_transform JSON outside the source and output
source *stringUnquantized source model directory
calibrationstringJSONL of {"text": ...} documents unrelated to Eval (gptq only)
devicestringtorch device (default: cuda when available, else cpu)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_models_drafter crit models drafter

Distill a draft head for speculative decoding from the target itself and write its models_transform record

ParameterTypeDescription
calibration *stringJSONL of {"text": ...} documents unrelated to Eval
out *stringNew or empty directory for the drafter
recipe *stringmodels_recipe JSON with method drafter
record *stringNew models_transform JSON outside the source and output
source *stringThe target model directory (the checkpoint the engine serves)
devicestringtorch device (default: cuda when available, else cpu)
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_models_eval crit models eval

Bind the Eval result of an engine serving the output to its record, with its quality replies scored on the source checkpoint

ParameterTypeDescription
data *stringEval data directory prepared from the source checkpoint
evaluation *stringNew models_evaluation JSON
record *stringmodels_transform JSON
result *stringcrit eval run --url result of the engine serving the output; stop the server first
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_models_verify crit models verify

Re-hash a transform's output and source against its record

ParameterTypeDescription
record *string
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_inference_list crit inference list

List the techniques by category

ParameterTypeDescription
jsonboolean
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_inference_show crit inference show

One technique's guidance, symbols and files

ParameterTypeDescription
query *string
jsonboolean
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_inference_check crit inference check

Check the techniques' code against their metadata

ParameterTypeDescription
wait_secondsnumberSeconds to wait for the command to end before returning its job to wait on with crit_job_wait (the command keeps running)

crit_job_wait Wait on a job

Wait for a job to end, at most SECONDS; returns its result once it ended, else its state and newest errors

ParameterTypeDescription
job *stringThe job a command's call returned, such as job-3
secondsnumberLongest wait (at most 3600); call again to go on

crit_job_output Read a job's logs

A job's command output (its JSON result) or errors (progress and reports) from a byte offset; offset -1 reads the end

ParameterTypeDescription
job *stringThe job a command's call returned, such as job-3
limitinteger
offsetinteger
streamstring

crit_job_stop Stop a job

Interrupt a running job as Ctrl+C would (crit releases its leases and settles what it can), ending its process tree after grace_seconds; an Eval stopped so goes on with crit_run_eval resume

ParameterTypeDescription
job *stringThe job a command's call returned, such as job-3
grace_secondsnumber

crit_jobs List jobs

This server's jobs: state, exit code, logs

crit_serve_status Ask crit serve

A running crit serve's /health (loaded engine, readiness, capacity) and /v1/models

ParameterTypeDescription
api_keystringOne of the server's --api-key values, if it has any
urlstringThe server, without /v1