Companion

Functions

Link copied to clipboard

Detect if a path is part of a sharded SafeTensors model.

Link copied to clipboard
suspend fun openFromIndex(indexPath: String, allowPartial: Boolean = false): StreamingShardedSafeTensorsReader

Open a sharded SafeTensors model from its index file.

Link copied to clipboard
suspend fun openFromShard(shardPath: String, allowPartial: Boolean = false): StreamingShardedSafeTensorsReader

Open a sharded SafeTensors model from any shard file.