Skip to main content

SafetensorsEntries

A safetensors checkpoint read in the file's own order: entries, the (name, tensor) pairs as the header lists them, and metadata, the checkpoint-level metadata as (key, value) string pairs in header order (empty when the file has none). load_safetensors_entries returns one; dict(x.entries) is the ordered dict.

entries (property)​

The (name, tensor) pairs in header order.

metadata (property)​

The (key, value) string pairs of the checkpoint-level metadata, in header order.

__init__​

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.