detectSharded

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

Return

Pair of (isSharded, indexPath) or (false, null) if not sharded

Parameters

path

Path to check (can be index file or shard file)