parse

fun parse(jsonContent: String): SafeTensorsIndex(source)

Parse a SafeTensors index from JSON content.

Return

Parsed SafeTensorsIndex

Parameters

jsonContent

The raw JSON string from index.json

Throws

if the JSON is invalid or malformed