Skip to content

Type Alias: GgufMetadataGeneral<A>

ts
type GgufMetadataGeneral<A> = {
  architecture: A;
  quantization_version: string;
  alignment?: number;
  name?: string;
  basename?: string;
  size_label?: string;
  author?: string;
  url?: string;
  description?: string;
  license?: string;
  license.name?: string;
  license.link?: string;
  source?: {
     url?: string;
     huggingface?: {
        repository?: string;
     };
  };
  file_type?: GgufFileType;
  base_model?: {
   [key: `${bigint}`]: {
     name?: string;
     author?: string;
     version?: string;
     organization?: string;
     url?: string;
     doi?: string;
     uuid?: string;
     repo_url?: string;
   };
     count: number;
  };
};

Defined in: gguf/types/GgufMetadataTypes.ts:143

Type Parameters

Type ParameterDefault type
A extends GgufArchitectureTypeGgufArchitectureType

Properties

architecture

ts
readonly architecture: A;

Defined in: gguf/types/GgufMetadataTypes.ts:144


quantization_version

ts
readonly quantization_version: string;

Defined in: gguf/types/GgufMetadataTypes.ts:154

The version of the quantization format. Not required if the model is not quantized (i.e. no tensors are quantized). If any tensors are quantized, this must be present. This is separate to the quantization scheme of the tensors itself; the quantization version may change without changing the scheme's name (e.g. the quantization scheme is Q5_K, and the quantization version is 4).


alignment?

ts
readonly optional alignment: number;

Defined in: gguf/types/GgufMetadataTypes.ts:162

the global alignment to use, as described above. This can vary to allow for different alignment schemes, but it must be a multiple of 8. Some writers may not write the alignment. If the alignment is not specified, assume it is 32.


name?

ts
readonly optional name: string;

Defined in: gguf/types/GgufMetadataTypes.ts:169

The name of the model. This should be a human-readable name that can be used to identify the model. It should be unique within the community that the model is defined in.


basename?

ts
readonly optional basename: string;

Defined in: gguf/types/GgufMetadataTypes.ts:170


size_label?

ts
readonly optional size_label: string;

Defined in: gguf/types/GgufMetadataTypes.ts:171


author?

ts
readonly optional author: string;

Defined in: gguf/types/GgufMetadataTypes.ts:172


url?

ts
readonly optional url: string;

Defined in: gguf/types/GgufMetadataTypes.ts:177

URL to the model's homepage. This can be a GitHub repo, a paper, etc.


description?

ts
readonly optional description: string;

Defined in: gguf/types/GgufMetadataTypes.ts:183

free-form description of the model including anything that isn't covered by the other fields


license?

ts
readonly optional license: string;

Defined in: gguf/types/GgufMetadataTypes.ts:190

License of the model, expressed as a SPDX license expression (e.g. MIT OR Apache-2.0). Should not include any other information, such as the license text or the URL to the license.


license.name?

ts
readonly optional name: string;

Defined in: gguf/types/GgufMetadataTypes.ts:191


ts
readonly optional link: string;

Defined in: gguf/types/GgufMetadataTypes.ts:192


source?

ts
readonly optional source: {
  url?: string;
  huggingface?: {
     repository?: string;
  };
};

Defined in: gguf/types/GgufMetadataTypes.ts:200

Information about where this model came from. This is useful for tracking the provenance of the model, and for finding the original source if the model is modified. For a model that was converted from GGML, for example, these keys would point to the model that was converted from.

url?

ts
readonly optional url: string;

URL to the source of the model. Can be a GitHub repo, a paper, etc.

huggingface?

ts
readonly optional huggingface: {
  repository?: string;
};
huggingface.repository?
ts
readonly optional repository: string;

file_type?

ts
readonly optional file_type: GgufFileType;

Defined in: gguf/types/GgufMetadataTypes.ts:214

An enumerated value describing the type of the majority of the tensors in the file. Optional; can be inferred from the tensor types.


base_model?

ts
readonly optional base_model: {
[key: `${bigint}`]: {
  name?: string;
  author?: string;
  version?: string;
  organization?: string;
  url?: string;
  doi?: string;
  uuid?: string;
  repo_url?: string;
};
  count: number;
};

Defined in: gguf/types/GgufMetadataTypes.ts:216

Index Signature

ts
[key: `${bigint}`]: {
  name?: string;
  author?: string;
  version?: string;
  organization?: string;
  url?: string;
  doi?: string;
  uuid?: string;
  repo_url?: string;
}

count

ts
readonly count: number;