Message codes: Model fields¶
See also: Message codes (the index of every code) and Messages and codes (the line grammar, what a code guarantees and when to trust one).
Trust a code only when the line is one of the lines below, a value in place of
each <name>, after at most one prefix: the index lists the prefixes and
message-codes-values.md the values.
Codes¶
| Code | Level | Means | Since |
|---|---|---|---|
field-not-recordable |
INFO | A model holds a value for a G7 SBOM for AI element that SPDX 3.0.1 has no property for (the model architecture). | 0.23.0 |
hyperparameter-conflict |
WARNING | A model states a hyperparameter named parameters, the key the SBOM holds its parameter count under. | 0.22.0 |
model-field-conflict |
WARNING | A model states one key twice: a GGUF file states the length of an array as a key of its own, or an ONNX file repeats a metadata_props key. | 0.23.0 |
model-field-unreadable |
WARNING | A model reader read the file but not one of its parts (a fastText call, a PyTorch pickle, a PT2 archive member, a Keras or HDF5 attribute or config): the fields the line names are not recorded, or are recorded weaker. | 0.23.0 |
parameter-count-invalid |
WARNING | A model's parameter count cannot be had: a tensor dimension in the file, or the count its metadata or the Hugging Face Hub states, is not a non-negative integer. | 0.22.0 |
field-not-recordable¶
- Level: INFO.
- Means: A model holds a value for a G7 SBOM for AI element that SPDX 3.0.1 has no property for (the model architecture).
- SBOM effect: weaker: what the SBOM says is less sure.
- Pitloom did: Wrote the value in the broader property the line names (ai_typeOfModel, after the type), or did not record it; the SBOM is otherwise unchanged.
- Nothing to do: SPDX 3.0.1 has no property for the element; the line says where its value is written, if anywhere.
- Lines:
INFO: FORMAT=<format> FILE=<file>: no SPDX 3.0.1 property: <elements> [field-not-recordable]
hyperparameter-conflict¶
- Level: WARNING.
- Means: A model states a hyperparameter named parameters, the key the SBOM holds its parameter count under.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Recorded the parameter count (summed from the model's tensors, or stated by the Hugging Face Hub) under the parameters key, in place of the model's own value.
- Nothing to do: the parameters entry is the parameter count, as the package's comment says; the model's own value is still in the model.
- Lines:
WARNING: FORMAT=<format> FILE=<file>: hyperparameter parameters replaced by the parameter count [hyperparameter-conflict]
model-field-conflict¶
- Level: WARNING.
- Means: A model states one key twice: a GGUF file states the length of an array as a key of its own, or an ONNX file repeats a metadata_props key.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Recorded what the file's own reader sees: the GGUF key as the file states it, not the length Pitloom would derive; the last value of each repeated ONNX key, as protobuf keeps it.
- Nothing to do: the SBOM states what the model's own reader sees; the other value is still in the model.
- Printed after:
FORMAT=<format> FILE=<file>: <text>(a model scan, before a model reader's own line), on its WARNING lines; the prefix is not part of the line. - Lines:
WARNING: GGUF key <entry> is in the file; the length of array <name> is not a property [model-field-conflict]
WARNING: ONNX metadata_props: <number> key(s) appear more than once; kept the last value of each: <name> [model-field-conflict]
model-field-unreadable¶
- Level: WARNING.
- Means: A model reader read the file but not one of its parts (a fastText call, a PyTorch pickle, a PT2 archive member, a Keras or HDF5 attribute or config): the fields the line names are not recorded, or are recorded weaker.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Recorded the rest of the model; the line names the fields skipped (not recorded) or degraded (kept in a weaker form, such as raw text), and what the reader reported.
- Tell the user: which model and which fields the SBOM lacks, and what the reader reported, as the line says: a damaged or unusual file, or a format version Pitloom does not read. The rest of the model is read. Do not edit or replace the file for them.
- Printed after:
FORMAT=<format> FILE=<file>: <text>(a model scan, before a model reader's own line), on its WARNING lines; the prefix is not part of the line. - Lines:
WARNING: Failed to read fastText model.f.getArgs(): <error> | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: Failed to read fastText model labels: <error> | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: fickling failed to parse pickle bytes: <error> | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: fickling parsed pickle but AST walk failed: <error> | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: Failed to inspect <entry> in <name>: <error> | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: Failed to parse PT2 metadata entry <entry>: <error> | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: Failed to read PT2 extra file <entry>: <error> | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: Failed to parse PT2 extra/tags as JSON: <error> | Field(s) affected (degraded): <fields> [model-field-unreadable]
WARNING: Failed to parse PT2 model graph <entry>: <error> | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: Failed to read PT2 <entry>: <error> | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: <part> attribute cannot be read; <error> | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: <part> <error>; kept as properties.model_config_raw | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: <part> <error>; kept as properties.model_config_raw, the first <limit> of <number> characters | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: <part> <error>; the fields read before it are kept | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: <part> <error>; reading stopped there | Field(s) affected (skipped): <fields> [model-field-unreadable]
WARNING: <part> <error>; the other archive members are read | Field(s) affected (skipped): <fields> [model-field-unreadable]
parameter-count-invalid¶
- Level: WARNING.
- Means: A model's parameter count cannot be had: a tensor dimension in the file, or the count its metadata or the Hugging Face Hub states, is not a non-negative integer.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Recorded no parameter count, never a partial one, and read the rest of the model.
- Tell the user: the SBOM has no parameter count for the model, and why, as the line says: a malformed tensor shape, or a malformed count its metadata or the Hub states. The rest of the model is read. Do not edit the file or state a count for them.
- Printed after:
FORMAT=<format> FILE=<file>: <text>(a model scan, before a model reader's own line), on its WARNING lines; the prefix is not part of the line. - Lines:
WARNING: tensor dimension <value> is not a non-negative integer; parameter count not recorded [parameter-count-invalid]
WARNING: FORMAT=<format> FILE=<file>: stated parameter count is not a non-negative integer; parameter count not recorded [parameter-count-invalid]