Type Alias: GgufFileInfo
type GgufFileInfo = {
version: 2 | 3 | number;
tensorCount: number | bigint;
metadata: GgufMetadata;
metadataSize: number;
architectureMetadata: MergeOptionalUnionTypes<Exclude<GgufMetadata[GgufArchitectureType], undefined>>;
tensorInfo: GgufTensorInfo[];
tensorInfoSize: number;
splicedParts: number;
totalTensorCount: number | bigint;
totalMetadataSize: number;
fullTensorInfo: GgufTensorInfo[];
totalTensorInfoSize: number;
};
Defined in: gguf/types/GgufFileInfoTypes.ts:13
Properties
version
readonly version: 2 | 3 | number;
Defined in: gguf/types/GgufFileInfoTypes.ts:14
tensorCount
readonly tensorCount: number | bigint;
Defined in: gguf/types/GgufFileInfoTypes.ts:15
metadata
readonly metadata: GgufMetadata;
Defined in: gguf/types/GgufFileInfoTypes.ts:16
metadataSize
readonly metadataSize: number;
Defined in: gguf/types/GgufFileInfoTypes.ts:17
architectureMetadata
readonly architectureMetadata: MergeOptionalUnionTypes<Exclude<GgufMetadata[GgufArchitectureType], undefined>>;
Defined in: gguf/types/GgufFileInfoTypes.ts:20
Same value as metadata[metadata.general.architecture]
, but with merged types for convenience
tensorInfo?
readonly optional tensorInfo: GgufTensorInfo[];
Defined in: gguf/types/GgufFileInfoTypes.ts:23
can be null if readTensorInfo
is set to false
tensorInfoSize?
readonly optional tensorInfoSize: number;
Defined in: gguf/types/GgufFileInfoTypes.ts:26
can be null if readTensorInfo
is set to false
splicedParts
readonly splicedParts: number;
Defined in: gguf/types/GgufFileInfoTypes.ts:34
For spliced metadata of multiple file parts, this will be the number of files parts read and spliced into this metadata.
Whe no splicing is done, this will be 1
.
totalTensorCount
readonly totalTensorCount: number | bigint;
Defined in: gguf/types/GgufFileInfoTypes.ts:41
For spliced metadata of multiple file parts, this will be the total tensor count from all the parts
When no splicing is done, this will be the same as tensorCount
.
totalMetadataSize
readonly totalMetadataSize: number;
Defined in: gguf/types/GgufFileInfoTypes.ts:48
For spliced metadata of multiple file parts, this will be the total metadata size from all the parts
When no splicing is done, this will be the same as metadataSize
.
fullTensorInfo?
readonly optional fullTensorInfo: GgufTensorInfo[];
Defined in: gguf/types/GgufFileInfoTypes.ts:56
For spliced metadata of multiple file parts, this will be the spliced tensorInfo from all the parts. Can be null if readTensorInfo
is set to false
When no splicing is done, this will be the same as tensorInfo
.
totalTensorInfoSize?
readonly optional totalTensorInfoSize: number;
Defined in: gguf/types/GgufFileInfoTypes.ts:63
For spliced metadata of multiple file parts, this will be the total tensor info size from all the parts
When no splicing is done, this will be the same as tensorInfoSize
.