Package-level declarations
Types
Maps between SafeTensors dtype strings and unified DataType enum.
SafeTensors data types as strings (as they appear in JSON).
Represents a parsed model.safetensors.index.json file for sharded SafeTensors models.
Represents the metadata from a SafeTensors index file.
Exception thrown when parsing a SafeTensors index file fails.
Parser for model.safetensors.index.json files.
ParametersLoader implementation for SafeTensors format using streaming.
Exceptions specific to sharded SafeTensors operations.
Writer for creating SafeTensors format files.
Tensor info with shard location information.
Streaming SafeTensors reader that parses metadata without loading tensor data.
Streaming reader for sharded/multi-file SafeTensors models.
Properties
Functions
Android implementation of createRandomAccessSource.
Platform-specific factory for creating RandomAccessSource instances.
JS implementation of createRandomAccessSource.
JVM implementation of createRandomAccessSource.
Native implementation of createRandomAccessSource.
WASM/JS implementation of createRandomAccessSource.
WASM/WASI implementation of createRandomAccessSource.
Android implementation: Read a text file.
Read a text file. Platform-specific implementation.
JS implementation: Read a text file. Note: Browser JS cannot read local files directly. For sharded models, the index should be fetched via HTTP.
JVM implementation: Read a text file.
Native implementation: Read a text file. Note: Full implementation requires platform-specific file I/O. For sharded models, the index file reading should be done through the existing RandomAccessSource mechanism.
WASM JS implementation: Read a text file. Note: WASM/Browser cannot read local files directly.
WASM WASI implementation: Read a text file. Note: WASM/WASI cannot read local files directly via this API.