Skip to content

Type Alias: GgufTensorInfo ​

ts
type GgufTensorInfo = {
  name: string;
  dimensions: readonly (number | bigint)[];
  ggmlType: GgmlType;
  offset: number | bigint;
  fileOffset: number | bigint;
  filePart: number;
};

Defined in: gguf/types/GgufTensorInfoTypes.ts:3

Properties ​

name ​

ts
readonly name: string;

Defined in: gguf/types/GgufTensorInfoTypes.ts:4


dimensions ​

ts
readonly dimensions: readonly (number | bigint)[];

Defined in: gguf/types/GgufTensorInfoTypes.ts:5


ggmlType ​

ts
readonly ggmlType: GgmlType;

Defined in: gguf/types/GgufTensorInfoTypes.ts:6


offset ​

ts
readonly offset: number | bigint;

Defined in: gguf/types/GgufTensorInfoTypes.ts:7


fileOffset ​

ts
readonly fileOffset: number | bigint;

Defined in: gguf/types/GgufTensorInfoTypes.ts:14

Adjusted offset relative to the file.

Added by the GGUF parser - not part of the file's metadata.


filePart ​

ts
readonly filePart: number;

Defined in: gguf/types/GgufTensorInfoTypes.ts:22

For spliced metadata of multiple file parts, this will be the file part number. Starts from 1.

Added by the GGUF parser - not part of the file's metadata.