Skip to main content

Module model_helper

Module model_helper 

Source
Expand description

Canonical Q42 v3 model-metadata volume for converted .p64 packages. Model metadata for a converted .p64, stored as a canonical unified .q42 v3 volume.

GGUF/safetensors remain import-only. A native model package consists of:

  • .p64 — weights plus the compact Q42T tokenizer section;
  • .q42 — behavioural metadata and provenance represented as NQuins with an embedded Q42LEX lexicon.

CBOR-LD encode/decode remains available as an interchange projection. It is not the on-disk .q42 representation.

Structs§

ModelHelper
Behavioural + provenance metadata for a converted model package.
ModelHelperTokenizer

Constants§

LEGACY_MODEL_HELPER_EXT
Former raw self-describe-CBOR sidecar, accepted read-only during migration.
MODEL_HELPER_CONTEXT
JSON-LD / CBOR-LD context IRI for this document type.
MODEL_HELPER_EXT
Canonical file extension for the model metadata volume.

Functions§

has_model_helper_magic
Magic sniff for the legacy CBOR-LD interchange projection.
helper_path_for_p64
{dir}/{stem}.q42 for a given .p64 path (preserves layout suffixes in the stem).
legacy_helper_path_for_p64