kvcdn verify

Generate or verify a local .kv artifact against a model context and optional question.

Usage

kvcdn verify --kv-path <FILE> --context-file <FILE> [OPTIONS]

Options

OptionRequiredDescription
--kv-pathyesPath where the .kv artifact will be written or read
--context-fileyesPath to the context file used to produce the artifact
--questionnoOptional question to verify the artifact against

Example

kvcdn verify \
  --kv-path ./context.kv \
  --context-file ./context.txt \
  --question "Summarize the key claim."
If ./context.kv does not exist, the command runs the model, saves the KV cache, then loads it and compares generation output against a full prefill. If the file exists, it loads the cache directly and runs only the verification pass.

Output

The command prints:
  • generated artifact path,
  • number of cached tokens,
  • layer count,
  • dtype,
  • verification result (PASS or mismatch details).

See also