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:1

Properties

name

ts
readonly name: string;

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


dimensions

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

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


ggmlType

ts
readonly ggmlType: GgmlType;

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


offset

ts
readonly offset: number | bigint;

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


fileOffset

ts
readonly fileOffset: number | bigint;

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

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:20

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.