openFromShard
suspend fun openFromShard(shardPath: String, allowPartial: Boolean = false): StreamingShardedSafeTensorsReader(source)
Open a sharded SafeTensors model from any shard file.
Automatically discovers the index file in the same directory.
Return
Reader with aggregated tensor metadata
Parameters
shardPath
Path to any shard file (e.g., model-00001-of-00003.safetensors)
allowPartial
If true, continue loading even if some shards are missing
Throws
if index not found or shards cannot be read