Skip to content

Type Alias: GgufFileInfoSourceData

ts
type GgufFileInfoSourceData = 
  | {
  type: "path";
  path: string;
  length: number;
}
  | {
  type: "buffer";
  buffer: Readonly<Buffer>;
};

Defined in: gguf/types/GgufFileInfoTypes.ts:98

Type Declaration

ts
{
  type: "path";
  path: string;
  length: number;
}

type

ts
type: "path";

path

ts
path: string;

length

ts
length: number;

The length of the GGUF metadata section in bytes, including the header, key-value pairs, tensor info and alignment padding up to the tensor data section.

ts
{
  type: "buffer";
  buffer: Readonly<Buffer>;
}

type

ts
type: "buffer";

buffer

ts
buffer: Readonly<Buffer>;