Class SafeTensors

java.lang.Object
ai.beestream.jitnn.io.SafeTensors

public final class SafeTensors extends Object
Reads and writes the safetensors format (Hugging Face): an 8-byte little-endian header length, a JSON header that maps each tensor name to its dtype, shape and byte range, optional __metadata__ string pairs, then the raw little-endian data. jitNN's checkpoints use it, so they open in Python with safetensors.torch.load_file.