SafeTensorsIndex
data class SafeTensorsIndex(val metadata: SafeTensorsIndexMetadata, val weightMap: Map<String, String>)(source)
Represents a parsed model.safetensors.index.json file for sharded SafeTensors models.
The index file maps tensor names to their containing shard files:
{
"metadata": { "total_size": 14483464192 },
"weight_map": {
"model.embed_tokens.weight": "model-00001-of-00003.safetensors",
"model.layers.0.self_attn.q_proj.weight": "model-00001-of-00003.safetensors",
...
}
}Content copied to clipboard