openFromIndex
suspend fun openFromIndex(indexPath: String, allowPartial: Boolean = false): StreamingShardedSafeTensorsReader(source)
Open a sharded SafeTensors model from its index file.
Return
Reader with aggregated tensor metadata
Parameters
indexPath
Path to model.safetensors.index.json
allowPartial
If true, continue loading even if some shards are missing
Throws
if index is invalid
if shards cannot be read