Skip to main content

Module safetensor

Module safetensor 

Source

Structsยง

Index ๐Ÿ”’
ShardIndex ๐Ÿ”’

Functionsยง

dtype ๐Ÿ”’
inspect ๐Ÿ”’
open ๐Ÿ”’
optional_json ๐Ÿ”’
read
Read one safetensors header through a byte source. Tensor payloads remain in that source; successful inspection does not claim their bytes were verified.
read_span ๐Ÿ”’
shard_names ๐Ÿ”’
validate_index ๐Ÿ”’