ComponentInfo
One weight component of a multi-component model (e.g. a diffusion stack).
componentNameComponentname (string)required
Logical name of this component (e.g. text_encoder, transformer).
componentPathComponentpath (string)required
Repo-relative subdirectory holding this component's weights.
storageSize objectrequired
On-disk size of this component's weights.
inBytesInbytes (integer)
Default value:
0nLayers object
Layer count for this component when it is shardable; None otherwise.
- integer
- null
integer
Possible values: > 0
canShardCanshard (boolean)required
Whether this component may be split across nodes (vs. loaded whole).
safetensorsIndexFilename object
The component's *.safetensors.index.json filename when sharded across
files; None for a single-file component.
- string
- null
string
ComponentInfo
{
"componentName": "string",
"componentPath": "string",
"storageSize": {
"inBytes": 0
},
"nLayers": 0,
"canShard": true,
"safetensorsIndexFilename": "string"
}